Skip site navigation (1) Skip section navigation (2)

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-19 07:44:43
Message-ID: 41245A6B.3010705@betrusted.com (view raw or flat)
Thread:
Lists: pgsql-bugspgsql-patchespgsql-www
Bruce Momjian wrote:
> OK, I got it working now.  Seems the code needed more help to loop than
> I though, and of course trying to change it as little as possible caused
> me to miss that.
> 
> The attached, applied patch properly aggregates the thread flags.  The
> bad news is that on my platform that needs _no_ thread flags or
> libraries I have:
> 
> 	PTHREAD_CFLAGS          =3D   -Kthread -kthread -pthread -pthreads
> 			-D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS
> 	PTHREAD_LIBS            =3D
> 
> I assume those are just ignored for portability so I assume we are OK.

Current CVS is working for Solaris, too.
Compiles and libthread.so is used at runtime. :-)

PTHREAD_CFLAGS          =  -pthreads   -Kthread -kthread -pthread 
-pthreads  -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS
PTHREAD_LIBS            =  -lpthread            -lpthread

The -Kthread -kthread is not needed here, but is included because gcc 
3.2 does not treat them as error, but just dumps out "gcc: unrecognized 
option `-kthread'".


Regards,
  Martin

In response to

Responses

pgsql-www by date

Next:From: Bruce MomjianDate: 2004-08-19 16:35:36
Subject: Re: [BUGS] 8.0.0beta1: -lpthread missing
Previous:From: Marc G. FournierDate: 2004-08-17 21:29:14
Subject: archive updates

pgsql-bugs by date

Next:From: Bruce MomjianDate: 2004-08-19 16:35:36
Subject: Re: [BUGS] 8.0.0beta1: -lpthread missing
Previous:From: Fabien COELHODate: 2004-08-19 07:42:57
Subject: Re: BUG #1222: database owner should have implicit control

pgsql-patches by date

Next:From: Andreas PflugDate: 2004-08-19 10:02:52
Subject: Re: PGPASSWORD and client tools
Previous:From: Andrej CzapszysDate: 2004-08-19 04:18:28
Subject: Re: PGPASSWORD and client tools

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group