id,summary,reporter,owner,description,type,status,milestone,component,resolution,keywords,cc
51,pthreads detection broken on OS X,dmacks@…,lennart,"Trying to build avahi-0.6.10 on OS X 10.3 (gcc3.3):

{{{
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... -D_THREAD_SAFE
checking for cc_r... gcc
checking whether to check for GCC pthread/shared inconsistencies... yes
checking whether -pthread is sufficient with -shared... no
checking whether -lpthread fixes that... no
checking whether -lc_r fixes that... no
configure: WARNING: Impossible to determine how to use pthreads with shared libraries
configure: error: Missing POSIX Threads support
}}}

The configure tests related to pthread/shared all pass -Wl-z,defs in addition to the flags being tested, but -z isn't valid at all for my compiler. All tests therefore fail, not because of the specific feature being tested but because of a test artifact. If I remove -Wl,-z,defs, configure successfully tests for the features it's trying to test:

{{{
checking how to hardcode library paths into programs... immediate
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... -D_THREAD_SAFE
checking for cc_r... gcc
checking whether to check for GCC pthread/shared inconsistencies... yes
checking whether -pthread is sufficient with -shared... yes
}}}

and ./configure doesn't abort.
",defect,closed,Avahi 0.6.13,other,fixed,,
