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

Re: [BUGS] 8.0.0beta1: -lpthread missing

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Martin Münstermann <mmuenstermann(at)betrusted(dot)com>
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 16:35:36
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugspgsql-patchespgsql-www
Martin Mnstermann wrote:
> 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
> > 	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 is used at runtime. :-)
> PTHREAD_CFLAGS          =  -pthreads   -Kthread -kthread -pthread 
> 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'".

Yep, same here.  I am hoping we come up with a cleaner solution someday. :-)

But I am thrilled to have this threading all automated now.

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

In response to

pgsql-www by date

Next:From: Devrim GUNDUZDate: 2004-08-23 09:04:07
Subject: News for new releases
Previous:From: Martin MünstermannDate: 2004-08-19 07:44:43
Subject: Re: [BUGS] 8.0.0beta1: -lpthread missing

pgsql-bugs by date

Next:From: Frank van VugtDate: 2004-08-19 19:38:55
Subject: vacuumlo fails in the presence of a index on expression - demo sql included
Previous:From: Martin MünstermannDate: 2004-08-19 07:44:43
Subject: Re: [BUGS] 8.0.0beta1: -lpthread missing

pgsql-patches by date

Next:From: Andrew DunstanDate: 2004-08-19 17:04:17
Subject: Re: 7.4.3 & 8.0.0beta1 + Solaris 9: default pg_hba.conf
Previous:From: Richard van den BergDate: 2004-08-19 13:32:32
Subject: Added schema selection to pg_restore

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