OpenLDAP
Up to top level
Build   Contrib   Development   Documentation   Historical   Incoming   Software Bugs   Software Enhancements   Web  

Logged in as guest

Viewing Build/5020
Full headers

From: h.b.furuseth@usit.uio.no
Subject: configure needs -pthread to find pthread.h
Compose comment
Download message
State:
0 replies:
1 followups: 1

Major security issue: yes  no

Notes:

Notification:


Date: Fri, 15 Jun 2007 18:20:47 GMT
From: h.b.furuseth@usit.uio.no
To: openldap-its@OpenLDAP.org
Subject: configure needs -pthread to find pthread.h
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?


Followup 1

Download message
From: Hallvard B Furuseth <h.b.furuseth@usit.uio.no>
Date: Fri, 15 Jun 2007 22:50:47 +0200
To: openldap-its@openldap.org
Subject: Re: (ITS#5020) configure needs -pthread to find pthread.h
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


Up to top level
Build   Contrib   Development   Documentation   Historical   Incoming   Software Bugs   Software Enhancements   Web  

Logged in as guest


The OpenLDAP Issue Tracking System uses a hacked version of JitterBug

______________
© Copyright 2013, OpenLDAP Foundation, info@OpenLDAP.org