Hi, In our quest to enable winpthreads in Fedora we've stumbled across a new issue. Libvirt fails to build with this linker error:
CCLD libvirt.la ./.libs/libvirt_driver_remote.a(libvirt_net_rpc_client_la-virnetclient.o): In function `virNetClientIOEventLoop': /builddir/build/BUILD/libvirt-0.10.2/build_win32/src/../../src/rpc/virnetclient.c:1521: undefined reference to `pthread_sigmask' /builddir/build/BUILD/libvirt-0.10.2/build_win32/src/../../src/rpc/virnetclient.c:1528: undefined reference to `pthread_sigmask' /builddir/build/BUILD/libvirt-0.10.2/build_win32/src/../../src/rpc/virnetclient.c:1528: undefined reference to `pthread_sigmask' ./.libs/libvirt_driver_remote.a(libvirt_net_rpc_client_la-virnetclient.o): In function `virNetClientSetTLSSession': /builddir/build/BUILD/libvirt-0.10.2/build_win32/src/../../src/rpc/virnetclient.c:795: undefined reference to `pthread_sigmask' /builddir/build/BUILD/libvirt-0.10.2/build_win32/src/../../src/rpc/virnetclient.c:802: undefined reference to `pthread_sigmask' ./.libs/libvirt_driver_remote.a(libvirt_net_rpc_client_la-virnetclient.o):/builddir/build/BUILD/libvirt-0.10.2/build_win32/src/../../src/rpc/virnetclient.c:819: more undefined references to `pthread_sigmask' follow Upon a closer look this particular function is #define'd to a no-op in pthread.h: $ grep pthread_sigmask /usr/i686-w64-mingw32/sys-root/mingw/include/pthread.h #define pthread_sigmask(H, S1, S2) 0 So I tried to report this issue to the upstream libvirt devs: https://bugzilla.redhat.com/show_bug.cgi?id=969231 They replied back to me with the message that according to the official documentation the declaration for pthread_sigmask should be in signal.h: http://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_sigmask.html Can we also do this in winpthreads/mingw-w64-headers? Regards, Erik van Pienbroek Fedora MinGW SIG ------------------------------------------------------------------------------ How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate IT design, transition and operations 2. Dashboards that offer high-level views of enterprise services 3. A single system of record for all IT processes http://p.sf.net/sfu/servicenow-d2d-j _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public