Created attachment 800706 [details] makefile to build attached program With Fedora 19 when linking against boost_filesystem one gets these errors: boost_filemapper.o: In function `interlocked_compare_exchange': /usr/x86_64-w64-mingw32/sys-root/mingw/include/boost/interprocess/detail/win32_api.hpp:1192: undefined reference to `InterlockedCompareExchange' /usr/x86_64-w64-mingw32/sys-root/mingw/include/boost/interprocess/detail/win32_api.hpp:1192: undefined reference to `InterlockedCompareExchange' boost_filemapper.o: In function `interlocked_increment': /usr/x86_64-w64-mingw32/sys-root/mingw/include/boost/interprocess/detail/win32_api.hpp:1186: undefined reference to `InterlockedIncrement' /usr/x86_64-w64-mingw32/sys-root/mingw/include/boost/interprocess/detail/win32_api.hpp:1186: undefined reference to `InterlockedIncrement' collect2: error: ld returned 1 exit status make[3]: *** [hashdb_manager.exe] Error 1 This seems related to https://lists.fedoraproject.org/pipermail/fedora-mingw/2013-June/006985.html and http://sourceforge.net/mailarchive/message.php?msg_id=31189847
Created attachment 800707 [details] test program exhibiting problem
What version of mingw64-headers and mingw64-crt do you have installed?
adding #define BOOST_USE_WINDOWS_H before the boost #includes fixed the problem in our code. Versions are 2.0.999-0.30.trunk.r5969.20130721.fc19
This issue was fixed in mingw-headers in the 20130721 snapshot. Apparently mingw-boost wasn't rebuilt for Fedora 19 after that @Thomas: the fix for this bug was applied in mingw-boost 1.53.0-2, but this was only done for rawhide and f20. Are you okay if I also apply this change to f19 (just this one change, not the 1.54.0 update which you did recently in rawhide and f20) ?
Yes please. Thanks!
mingw-boost-1.53.0-2.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/mingw-boost-1.53.0-2.fc19
Package mingw-boost-1.53.0-2.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing mingw-boost-1.53.0-2.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-17347/mingw-boost-1.53.0-2.fc19 then log in and leave karma (feedback).
mingw-boost-1.53.0-2.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.