Issue 94 - Configure unable to detect pthread.h
Summary: Configure unable to detect pthread.h
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-03-05 18:38 UTC by chris@dqc.org
Modified: 2014-08-01 21:06 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 chris@dqc.org 1999-03-05 18:38:39 UTC
Full_Name: Chris Cappuccio
Version: 1.2
OS: OpenBSD 2.5-beta
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (12.7.96.12)


With the current (3/1/99) version of OpenBSD (tagged 2.5-beta), OpenLDAP 1.2
is unable to detect /usr/include/pthread.h and does not compile with thread
support.
Comment 1 Kurt Zeilenga 1999-03-05 19:41:38 UTC
Please provide details on how Pthreads should be detected on
OpenBSD 2.5 beta.  If a specific test is failing, provide the
config.log output for this test.
Comment 2 Kurt Zeilenga 1999-03-05 19:41:48 UTC
changed state Open to Feedback
Comment 3 Kurt Zeilenga 1999-03-05 19:42:39 UTC
changed notes
Comment 4 Chris Cappuccio 1999-03-05 20:09:39 UTC
Looks like it isn't doing -pthread with gcc

configure:3494: checking for pthread.h
configure:3504: gcc -E  conftest.c >/dev/null 2>conftest.out
In file included from configure:3500:
/usr/include/pthread.h:317: warning: #warning "included <pthread.h> without
-pth
read compiler option"
configure: failed program was:
#line 3499 "configure"
#include "confdefs.h"
#include <pthread.h>

On Fri, 5 Mar 1999, Kurt Zeilenga wrote:

 | Please provide details on how Pthreads should be detected on
 | OpenBSD 2.5 beta.  If a specific test is failing, provide the
 | config.log output for this test.
 | 

--
Preinstalled OpenBSD systems

http://www.nmedia.net/bsd/


Comment 5 Kurt Zeilenga 1999-03-05 20:37:37 UTC
At 08:11 PM 3/5/99 GMT, chris@nmedia.net wrote:
>Looks like it isn't doing -pthread with gcc

We do, it's the third pthread link test.  

>configure:3494: checking for pthread.h
>configure:3504: gcc -E  conftest.c >/dev/null 2>conftest.out

That's the first pthread link test (with $LIBS).  Look a little
further down in your config.log.

Kurt
Comment 6 Hallvard Furuseth 1999-03-06 19:49:12 UTC
> From: chris@nmedia.net
> 
> Looks like it isn't doing -pthread with gcc

The same happens on alpha and solaris.  Several of the threading checks
that do exist in configure are not executed, including
	-pthread (OpenBSD port of gcc, ITS#94)
	-threads (OSF1 Alpha, ITS#89)
	-mt	 (cc on solaris - I seem to remember it worked recently,
		  the Faq-O-Matic comment on Solaris)

I expect it's the same bug as ITS#89 and the solaris thread problem: If
configure _finds_ pthread_create, it assumes all is well, and doesn't
look for options with which it actually _works_.

I suppose the fix is to run the "pthread-create works?" test instead of
the "pthread-create exists?" test when searching for threading options
to cc.

-- 
Hallvard
Comment 7 Kurt Zeilenga 1999-03-12 23:14:53 UTC
Awaiting details on this issue.  Please provide config.log entries
for pthread tests.  Thanks, Kurt
Comment 8 Kurt Zeilenga 1999-03-12 23:15:12 UTC
changed notes
changed state Feedback to Suspended
Comment 9 Chris Cappuccio 1999-03-12 23:34:13 UTC
Hold on...I think there is new threads stuff in OpenBSD that use
libc_r...Lemme compile get to current and try it again..

On Fri, 12 Mar 1999, Kurt Zeilenga wrote:

 | Awaiting details on this issue.  Please provide config.log entries
 | for pthread tests.  Thanks, Kurt
 | 

--
Preinstalled OpenBSD systems

http://www.nmedia.net/bsd/


Comment 10 Kurt Zeilenga 1999-03-17 05:27:32 UTC
changed notes
changed state Suspended to Closed
Comment 11 OpenLDAP project 2014-08-01 21:06:05 UTC
Need details. 2nd request sent.
Issue with Beta release of OpenBSD.