[Date Prev][Date Next]
Re: configure: error: could not link with POSIX Threads (ITS#1318)
On Thu, 6 Sep 2001, Matti Palaste <firstname.lastname@example.org> wrote:
> RH 7.0, GLIBC 2.2.12
> Ran the configure command and got this:
> Copyright 1998-2001 The OpenLDAP Foundation, All Rights Reserved.
> Restrictions apply, see COPYRIGHT and LICENSE files.
> Configuring OpenLDAP 2.0.12-Release ...
> checking for pthread link with -lpthreads -lexc... no
> checking for pthread link with -lpthreads... no
> configure: error: could not link with POSIX Threads
I guess, I have the same problem. Maybe I can provide some additional
In my case, the system is based on SUSE 7.1 with glibc-2.2-7 and
When I run configure without any arguments, it aborts with the
error message above (configure --without-threads works). I don't
know enough about autoconf to figure out where the problem might
be. The message itself is obviously misleading: both, "-pthread"
as well as "-lpthread" would work to link with posix threads.
When I try it manually using the same arguments as configure, I
can compile and link the test program; when it is run, it returns
an exit code of 3, I assume that the same happens during the
"./configure" run. "onfigure.log" does not give contain any hints
that a problem occurred.
This is true for all versions of openldap between 2.0.11 and
2.0.15. With version 2.0.7, the configure script (and also
compiling and running the program with pthread support) works
without any problems.