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

(ITS#6976) Build OpenLDAP on Solaris : error : could not locate usable POSIX Threads



Full_Name: Samarasooriyage Gayan Chathuraka Senaratne
Version: 3
OS: Solaris 64bit
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (202.69.193.78)


When I try to configure OpenLDAP on Solaris I get the following error messages.
I think I've set the library path environment variable to include the location
of libpthread.

configure: WARNING: pthread.h: present but cannot be compiled
configure: WARNING: pthread.h:     check for missing prerequisite headers?
configure: WARNING: pthread.h: see the Autoconf documentation
configure: WARNING: pthread.h:     section "Present But Cannot Be Compiled"
configure: WARNING: pthread.h: proceeding with the preprocessor's result
configure: WARNING: pthread.h: in the future, the compiler will take precedence
configure: WARNING:     ## --------------------------------------------- ##
configure: WARNING:     ## Report this to <http://www.openldap.org/its/> ##
configure: WARNING:     ## --------------------------------------------- ##
checking for pthread.h... yes
checking POSIX thread version... 6
checking for LinuxThreads pthread.h... no
checking for GNU Pth pthread.h... no
checking sched.h usability... yes
checking sched.h presence... yes
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 locate usable POSIX Threads


Please help to solve this.

Thanks Gayan