[Date Prev][Date Next]
(ITS#5020) configure needs -pthread to find pthread.h
Full_Name: Hallvard B Furuseth
Version: HEAD, RE23
OS: OSF1 V5.1 alpha
Submission from: (NULL) (22.214.171.124)
Submitted by: hallvard
/configure on OSF1 alpha finds no suitable threading library.
configure:19993: checking pthread.h usability
configure:20005: cc -c -g -I/local/include -I/local/gnu/include conftest.c
cc: Error: /usr/include/pthread.h, line 1251: #error "Please compile the
module including pthread.h with -pthread" (errormessage)
due to this snippet of pthread.h:
# ifndef _REENTRANT
# error "Please compile the module including pthread.h with -pthread"
./configure CC="cc -pthread" works.
Not sure how to deal with that one. Seems a bit excessive to run all
the OL_PTHREAD_TRY()s _before_ detecting that the system has pthread.
Maybe write a special case, like try for pthread.h with -D_REENTRANT
if not found without that?