[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
ldapsearch does not work when compiling with --without-threads option (ITS#1186)
Full_Name: Sergei Dneprov
Version: 2.0.7, 2.0.11
OS: RedHat 7.0
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (195.151.11.29)
I had OpenLDAP 2.0.7 on RedHat 7.0, that I compilled on original RedHat 7.0
distributive kernel with --with-tls --without-cyrus-sasl options. Is works
fine.
I updated Linux RedHat kernel to 2.2.19-7.0.1 on last week. Old compiled
OpenLDAP version is working wihout problems.
Yesterday I downloaded OpenLDAP 2.0.11 and tryed to configure package, but
failed:
# ./configure --with-tls --without-cyrus-sasl
Copyright 1998-2001 The OpenLDAP Foundation, All Rights Reserved.
Restrictions apply, see COPYRIGHT and LICENSE files.
Configuring OpenLDAP 2.0.11-Release ...
...
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
So I tryed to configure&install package without threads (--without-treads):
# ./configure --with-tls --without-cyrus-sasl --without-threads
# make
# make depend
# make test
# make install
No problems with installation.
But ldapsearch -H ldaps://myserver.mydomain.com
returns error: ldap_bind Can't connect to LDAP server.
OpenLDAP 2.0.7:ldapsearch compiled on original RedHat 7.0 disributive kernel
continues to work.
Configuring OpenLDAP 2.0.7 package fails like OpenLDAP 2.0.11 also.