[Date Prev][Date Next] [Chronological] [Thread] [Top]

Configure doesn't finish, cores (ITS#1012)



Full_Name: Jubal Kessler
Version: 2.0.7
OS: Linux RedHat 7.0 + glibc upgrade
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (63.211.143.38)


While building OpenLDAP 2.0.7 from a vanilla distribution, "./configure"
coredumps when searching for pthreads compatibility. There are no arguments
passed to "./configure". Errored section pasted below. The means to reproduce
this is to compile on a RedHat 7.0 install that has its glibc RPMs upgraded via
the recommended RPMs from http://www.redhat.com/errata/.

The apparent workaround is to pass "--with-threads=no" to "./configure" in this
case.

root@bleu (/usr/local/src/openldap-2.0.7)-75%
[...]
checking for pthread.h... yes
checking POSIX thread version... final
checking for LinuxThreads pthread.h... yes
checking for GNU Pth pthread.h... no
checking for sched.h... yes
checking for pthread_create in default libraries... no
checking for pthread link with -kthread... no
checking for pthread link with -pthread... no
checking for pthread link with -pthreads... no
checking for pthread link with -mthreads... no
checking for pthread link with -thread... no
checking for pthread link with -lpthread -lmach -lexc -lc_r... no
checking for pthread link with -lpthread -lmach -lexc... no
checking for pthread link with -lpthread -Wl,-woff,85... no
checking for pthread link with -lpthread... no
checking for pthread link with -lc_r... no
checking for pthread link with -threads... no
checking for pthread link with -lpthreads -lmach -lexc -lc_r... no
checking for pthread link with -lpthreads -lmach -lexc... no
checking for pthread link with -lpthreads -lexc... no
checking for pthread link with -lpthreads... no
configure: error: could not link with POSIX Threads


root@bleu (/usr/local/src/openldap-2.0.7)-76% ls -l core
-rw-------    1 root     root       118784 Feb  2 19:21 core

The config.log has more pertinent information, but it is too large to post in
its entirety here. I can email the config.log file on request. The key lines I
think are:

configure:9614: checking for pthread link with -lpthreads
configure:9754: cc -o conftest -g -O2   conftest.c -lpthreads -lresolv  1>&5
/usr/bin/ld: cannot find -lpthreads
collect2: ld returned 1 exit status
configure: failed program was:
#line 9693 "configure"
#include "confdefs.h"
/* pthread test headers */

--Jubal