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

Re: POSIX threads configure error



pthreads on Redhat 7 is broken...  see the FAQ and/or archives
of this list for details.  http://www.openldap.org/faq/index.cgi?file=546

At 05:36 AM 5/21/01, Sebastian Szuber wrote:
>When I try to configure OpenLDAP 2.0.9 on my system it can't find POSIX threads.
>OS is RedHat 7.0 with kernel 2.4.0.
>
>Here are config options:
>setenv CPPFLAGS "-I/u1/ldap/local/openssl096a/include -I/u1/ldap/local/db329/include"
>setenv LDFLAGS "-L/u1/ldap/local/openssl096a/lib -L/u1/ldap/local/db329/lib"
>./configure --prefix=/u1/ldap/openldap209 --with-tls --enable-slapd \
>    --enable-cleartext --enable-crypt --enable-modules --enable-aci --enable-dynamic --enable-slurpd
>
>and here config output:
>...
>checking for _beginthread... no
>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
>
>I don't know the cause. Am I lacking some packages?
>
>        S.
>
>
>-- 
>
>/*
> * Sebastian Szuber, Poznan Supercomputing and Networking Center
> * email: szuber@man.poznan.pl
> * phone: (+48 61) 858-20-34, fax: (+48 61) 852-59-54
> *
> */