Re: [BUGS] 8.0.0beta1: -lpthread missing

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-16 15:49:31
Message-ID: 4120D78B.6000300@betrusted.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-patches pgsql-www

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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Bruce Momjian 2004-08-16 15:56:30 Re: BUG #1208: Invalid page header
Previous Message Bruce Momjian 2004-08-16 15:44:31 Re: [BUGS] 8.0: Absolute path required for INITDB?

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2004-08-16 15:58:49 Re: [BUGS] 8.0.0beta1: -lpthread missing
Previous Message Bruce Momjian 2004-08-16 15:44:31 Re: [BUGS] 8.0: Absolute path required for INITDB?

Browse pgsql-www by date

  From Date Subject
Next Message Bruce Momjian 2004-08-16 15:58:49 Re: [BUGS] 8.0.0beta1: -lpthread missing
Previous Message Justin Clift 2004-08-16 15:35:20 Re: time to move to the new code