gcc - Building exempi 2.x on mingw64 errors with gmtime_r(), readdir_r(), and realpath() -


i'm building exempi-2.4.3 (latest) in msys2/mingw64 on windows 10 dependency project.

./configure appears succeed, mentioning couple of warnings:

... checking sysroot... no ... checking mt... no checking if : manifest tool... no ... checking if gcc supports -fno-rtti -fno-exceptions... no ... checking toolset name used boost g++... configure: warning: not figure out toolset name use g++ ... checking valgrind/memcheck.h usability... no checking valgrind/memcheck.h presence... no checking valgrind/memcheck.h... no configure: warning: valgrind missing. checks run without ... 

make giving me following errors:

  cxx      host_io-posix.lo host_io-posix.cpp: in function 'void convertposixdatetime(const time_t&, xmp_datetime*)': host_io-posix.cpp:126:2: error: 'gmtime_r' not declared in scope   gmtime_r ( &ostime, &posixutc );   ^~~~~~~~ host_io-posix.cpp:126:2: note: suggested alternative: '_ftime_s'   gmtime_r ( &ostime, &posixutc );   ^~~~~~~~   _ftime_s host_io-posix.cpp: in function 'bool host_io::getnextchild(host_io::folderref, std::__cxx11::string*)': host_io-posix.cpp:524:13: error: 'readdir_r' not declared in scope    int err = readdir_r ( folder, childinfo, &result ); // ! use thread-safe form.              ^~~~~~~~~ host_io-posix.cpp:524:13: note: suggested alternative: 'readdir'    int err = readdir_r ( folder, childinfo, &result ); // ! use thread-safe form.              ^~~~~~~~~              readdir host_io-posix.cpp: in function 'std::__cxx11::string host_io::getcasepreservedname(const string&)': host_io-posix.cpp:550:20: error: 'realpath' not declared in scope          systempath=realpath( inputpath.c_str() , null );                     ^~~~~~~~ host_io-posix.cpp:550:20: note: suggested alternative: '_makepath'          systempath=realpath( inputpath.c_str() , null );                     ^~~~~~~~                     _makepath make[1]: *** [makefile:477: host_io-posix.lo] error 1 make[1]: leaving directory '/c/users/dhkhodabakhsh/projects/exempi-2.4.3/source' make: *** [makefile:441: all-recursive] error 1 

i tried changing

  • gmtime_r -> _ftime_s
  • readdir_r -> readdir
  • realpath -> _makepath

but it's not straightforward expected.

shouldn't mingw64 handle this? missing sort of library has these mappings?


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -