pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Replace our hacked version of ax_pthread.m4 with latest upstream
Date: Wed, 08 Jul 2015 16:20:43 -0400
Message-ID: <11970.1436386843@sss.pgh.pa.us> (raw)
In-Reply-To: <10166.1436386332@sss.pgh.pa.us>
References: <E1ZCtMW-0001iM-BK@gemulon.postgresql.org>
	<10166.1436386332@sss.pgh.pa.us>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

I wrote:
> Heikki Linnakangas <heikki.linnakangas@iki.fi> writes:
>> Replace our hacked version of ax_pthread.m4 with latest upstream version.

> Well, in fact that did not work.  See gharial: it appears to have picked
> the wrong thread flags.

And even more annoying, now that I've git pull'd, I find it's also broken
the build on my RHEL6 box:

../../../src/interfaces/libpq/libpq.so: undefined reference to `pthread_sigmask'
collect2: ld returned 1 exit status
make[3]: *** [pg_ctl] Error 1
make[2]: *** [all-pg_ctl-recurse] Error 2
make[2]: *** Waiting for unfinished jobs....
../../../src/interfaces/libpq/libpq.so: undefined reference to `pthread_sigmask'
collect2: ld returned 1 exit status
make[3]: *** [pg_receivexlog] Error 1
make[3]: *** Waiting for unfinished jobs....
../../../src/interfaces/libpq/libpq.so: undefined reference to `pthread_sigmask'
collect2: ld returned 1 exit status
make[3]: *** [pg_basebackup] Error 1
../../../src/interfaces/libpq/libpq.so: undefined reference to `pthread_sigmask'
collect2: ld returned 1 exit status
make[3]: *** [pg_recvlogical] Error 1
make[2]: *** [all-pg_basebackup-recurse] Error 2
../../../src/interfaces/libpq/libpq.so: undefined reference to `pthread_sigmask'
collect2: ld returned 1 exit status
../../../src/interfaces/libpq/libpq.so: undefined reference to `pthread_sigmask'
collect2: ld returned 1 exit status
make[3]: *** [pg_dumpall] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [pg_rewind] Error 1
make[2]: *** [all-pg_rewind-recurse] Error 2
../../../src/interfaces/libpq/libpq.so: undefined reference to `pthread_sigmask'
collect2: ld returned 1 exit status
make[3]: *** [pg_restore] Error 1
../../../src/interfaces/libpq/libpq.so: undefined reference to `pthread_sigmask'
collect2: ld returned 1 exit status
make[3]: *** [pg_dump] Error 1
make[2]: *** [all-pg_dump-recurse] Error 2
make[1]: *** [all-bin-recurse] Error 2
make: *** [all-src-recurse] Error 2

It appears the new improved macro doesn't bother with -pthread at all.
Previously I got this in Makefile.global:

PTHREAD_CFLAGS                =   -pthread  -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS
PTHREAD_LIBS          =  -lpthread     

Now I get

PTHREAD_CFLAGS                =  -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS
PTHREAD_LIBS          = 

and that simply doesn't work.  I do not know why the buildfarm isn't
entirely red, but I'm dead in the water.  Please revert this.

			regards, tom lane


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



view thread (16+ messages)  latest in thread

Message-ID: <11970.1436386843@sss.pgh.pa.us>
Permalink:  ../11970.1436386843@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11970.1436386843@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, heikki.linnakangas@iki.fi
  Subject: Re: pgsql: Replace our hacked version of ax_pthread.m4 with latest upstream
  In-Reply-To: <11970.1436386843@sss.pgh.pa.us>
  References: <E1ZCtMW-0001iM-BK@gemulon.postgresql.org> <10166.1436386332@sss.pgh.pa.us> <11970.1436386843@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox