[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
pthread_sigmask and glibc
From: |
Eric Blake |
Subject: |
pthread_sigmask and glibc |
Date: |
Tue, 02 Aug 2011 12:12:23 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110621 Fedora/3.1.11-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.11 |
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 address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org
- pthread_sigmask and glibc,
Eric Blake <=