[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: configure fails with threads again
At 04:44 AM 2/20/99 +0100, Hallvard B Furuseth wrote:
>Configure fails with threads again.
>checking for pthread.h... yes
found Pthread header
>checking POSIX thread version... final
looks like a "final" compatible API
>checking for pthread_create... yes
found pthread_create in $LIBS
>checking if pthread_create() works... no
pthread_create() doesn't work as expected.
>configure: error: pthread.h and pthread_create are not compatible
give up, environment is inconsistent.
I consider this is vendor bug. Sun should provide a consistent
environment.
>It works if it does one of these instead:
> cc -mt ...
>or cc -D_REENTRANT ... -lthread
The configure script always tries to use the environment flags
provided by the installer (ie: the user) to allow the installer
to specify alternative thread packages. If a pthread_create()
exists in the installer provided flags, we expect it to work.
Placing
ac_cv_func_pthread_create=${ac_cv_func_pthread_create='no'}
into an empty config.cache before running ./configure would disable
this test.
I've updated our Solaris hints to include the above as the
recommended workaround.
http://www.openldap.org/faq/index.cgi?file=11
Suggestions on how to beter handle this vendor bug that do not
restrict the use of alternative thread packages would be welcomed.
Kurt