Issue 5020 - configure needs -pthread to find pthread.h
Summary: configure needs -pthread to find pthread.h
Status: VERIFIED WONTFIX
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: build (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-15 18:20 UTC by Hallvard Furuseth
Modified: 2020-03-18 20:37 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Hallvard Furuseth 2007-06-15 18:20:47 UTC
Full_Name: Hallvard B Furuseth
Version: HEAD, RE23
OS: OSF1 V5.1 alpha
URL: 
Submission from: (NULL) (129.240.202.105)
Submitted by: hallvard


/configure on OSF1 alpha finds no suitable threading library.

config.log says:
  configure:19993: checking pthread.h usability
  configure:20005: cc -c -g -I/local/include -I/local/gnu/include conftest.c
>&5
  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"
# endif

./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?

Comment 1 Hallvard Furuseth 2007-06-15 18:28:44 UTC
moved from Incoming to Build
Comment 2 Hallvard Furuseth 2007-06-15 20:50:47 UTC
I wrote:
> ./configure CC="cc -pthread" works.

Well, it configures.  Then it fails to build shared libraries because
libtool invokes ld ... -pthread, and ld does not accept -pthread.
But I guess that should be reported to the libtool folks.

./configure --disable-shared CC="cc -pthread" does work.

-- 
Regards,
Hallvard

Comment 3 Quanah Gibson-Mount 2020-03-18 20:37:35 UTC
OSF1 is dead AFAIK, closing.