Re: [BUGS] 8.0.0beta1: -lpthread missing - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: [BUGS] 8.0.0beta1: -lpthread missing
Date
Msg-id 200408162342.i7GNgjn10186@candle.pha.pa.us
Whole thread Raw
Responses Re: [BUGS] 8.0.0beta1: -lpthread missing  (Martin Münstermann <mmuenstermann@betrusted.com>)
List pgsql-patches
OK, I found the cause. I forgot to run autoconf after the
config/acx_pthread.m4 updated.  I just did so.  Please retest.  Thanks.

---------------------------------------------------------------------------

Martin M�nstermann wrote:
> Bruce Momjian wrote:
> >>--> We need -lpthread on solaris, too.
> >
> >
> > So the current CVS code is good?
>
> No. At least not for solaris8.
>
> 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
>
>
> Makefile.global:
> PTHREAD_CFLAGS          = -pthreads -D_REENTRANT -D_THREAD_SAFE
> -D_POSIX_PTHREAD_SEMANTICS
> PTHREAD_LIBS            =
>
> No -lpthread and the resulting binaries have no dependancy on
> libpthread.so, so at runtime only the stubs are being called.
>
> Regards,
>   Martin
>

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: PQserverVersion
Next
From: "Marc G. Fournier"
Date:
Subject: Re: Postgresql.conf Documentation change