×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

INDI 1.9.9 mkdir() build problem.

  • Posts: 6
  • Thank you received: 0
There seems to be a problem building INDI 1.9.9 on Windows with MSYS2. My build environment is as follows:
  1. MSYS2
  2. clang64 environment

After running cmake and then mingw32-make the build fails with:
indi\libs\indidevice\indiutility.cpp:49:51: error: too many arguments to function 'int mkdir(const char*)'

This appears to be caused by mkdir() requiring one parameter when there are two parameters at line 49 of indiutility.cpp. I have "fixed" this problem by making the following change:
// Remove mode_t from mkdir()
if (errno != ENOENT || ((mdret = mkdir(dir.c_str())) && errno != EEXIST))
{
    return mdret;
}

Is this an acceptable fix or could this introduce undefined problems later on?

Amanda
Last edit: 1 year 3 months ago by Amanda Leigh.
1 year 3 months ago #89252

Please Log in or Create an account to join the conversation.

Time to create page: 0.418 seconds