doc/posix-functions/pthread_sigmask.texi does not mention any issues with glibc, but the pthread_sigmask module ends up replacing pthread_sigmask anyways:

configure:7526: checking for pthread_sigmask
configure:7526: gcc -o conftest -g -O2   conftest.c  >&5
/tmp/ccRmi1Nr.o: In function `main':
/home/remote/eblake/gnulib/testdir20236/build/conftest.c:76: undefined reference to `pthread_sigmask'

GNULIB_PTHREAD_SIGMASK='1'
HAVE_PTHREAD_SIGMASK='0'
LIB_PTHREAD_SIGMASK=''
REPLACE_PTHREAD_SIGMASK='1'

Why? Because AC_CHECK_FUNCS_ONCE does not add the mandatory -pthread compiler switch, and glibc only provides pthread_sigmask when compiling for threads. This seems fishy to me; it seems like we have a bug in pthread_sigmask.m4 for not recognizing glibc's version, and populating $(LIB_PTHREAD_SIGMASK) with -pthread as appropriate.

--
Eric Blake   ebl...@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Reply via email to