From: | Martin Münstermann <mmuenstermann(at)betrusted(dot)com> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org> |
Subject: | Re: [BUGS] 8.0.0beta1: -lpthread missing |
Date: | 2004-08-17 07:24:37 |
Message-ID: | 4121B2B5.60807@betrusted.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-patches pgsql-www |
Bruce Momjian wrote:
> OK, I found the cause. I forgot to run autoconf after the
> config/acx_pthread.m4 updated. I just did so. Please retest. Thanks.
Ok, I did an cvs update and rerun configure.
Now it gives me an error:
[...]
checking whether pthreads work with -pthread... no
checking whether pthreads work with -pthreads... yes
checking for the pthreads library -lpthread... yes
checking whether pthreads work with -mt... yes
checking for the pthreads library -lpthreads... yes
checking whether pthreads work without any flags... yes
checking whether pthreads work with -Kthread... yes
checking whether pthreads work with -kthread... yes
checking for the pthreads library -llthread... yes
checking whether pthreads work with -pthread... yes
checking whether pthreads work with -pthreads... yes
checking whether pthreads work with -mthreads... yes
checking for the pthreads library -lpthread... yes
checking whether pthreads work with --thread-safe... yes
checking whether pthreads work with -mt... yes
checking for joinable pthread attribute... unknown
configure: WARNING: we do not know how to create joinable pthreads
[Oooops.]
checking if more special flags are required for pthreads... no
checking for cc_r... gcc
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for strerror_r... no
checking for getpwuid_r... no
checking for gethostbyname_r... no
checking whether getpwuid_r takes a fifth argument... no
checking whether strerror_r returns int... no
[...]
checking thread safety of required library functions... no
configure: error:
*** Thread test program failed. Your platform is not thread-safe.
*** Check the file 'config.log'for the exact reason.
***
*** You can use the configure option --enable-thread-safety-force
*** to force threads to be enabled. However, you must then run
*** the program in src/tools/thread and add locking function calls
*** to your applications to guarantee thread safety.
Bruce, I will send you my config.log privately.
Regards,
Martin
>
> -------------------------------------------------------------------------=
> --
>
> Martin M=FCnstermann wrote:
>
>>Bruce Momjian wrote:
>>
>>>>--> We need -lpthread on solaris, too.
>>>
>>>=20
>>>=20
>>>So the current CVS code is good?
>>
>>=20
>>No. At least not for solaris8.
>>=20
>>configure says:
>>checking whether pthreads work with -pthread... no
>>checking whether pthreads work with -pthreads... yes
>>checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
>>checking if more special flags are required for pthreads... no
>>checking for cc_r... gcc
>>checking pthread.h usability... yes
>>checking pthread.h presence... yes
>>checking for pthread.h... yes
>>=20
>>=20
>>Makefile.global:
>>PTHREAD_CFLAGS =3D -pthreads -D_REENTRANT -D_THREAD_SAFE=20
>>-D_POSIX_PTHREAD_SEMANTICS
>>PTHREAD_LIBS =3D
>>=20
>>No -lpthread and the resulting binaries have no dependancy on=20
>>libpthread.so, so at runtime only the stubs are being called.
>>=20
>>Regards,
>> Martin
>>=20
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Jheneffer Taruc | 2004-08-17 07:58:49 | error |
Previous Message | PostgreSQL Bugs List | 2004-08-17 07:20:15 | BUG #1219: pgxs does not work fully |
From | Date | Subject | |
---|---|---|---|
Next Message | Andreas Pflug | 2004-08-17 10:40:58 | Re: [PATCHES] libpq build problem with <io.h> |
Previous Message | PostgreSQL Bugs List | 2004-08-17 07:20:15 | BUG #1219: pgxs does not work fully |
From | Date | Subject | |
---|---|---|---|
Next Message | World Wide Web Owner | 2004-08-17 13:05:10 | New News Entry |
Previous Message | Bruce Momjian | 2004-08-16 23:42:45 | Re: [BUGS] 8.0.0beta1: -lpthread missing |