pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: hlinnaka@iki.fi
To: Peter Eisentraut <peter_e@gmx.net>
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:39:46 -0400
Message-ID: <13340.1436387986@sss.pgh.pa.us> (raw)
In-Reply-To: <559D8887.6020005@iki.fi>
References: <E1ZCtMW-0001iM-BK@gemulon.postgresql.org>
	<10166.1436386332@sss.pgh.pa.us>
	<11970.1436386843@sss.pgh.pa.us>
	<559D8887.6020005@iki.fi>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Heikki Linnakangas <hlinnaka@iki.fi> writes:
> I'm debugging this ATM. You're probably seeing a failure similar to 
> shearwater. The problem seems to be that the earlier autoconf tests add 
> "-lrt" to LIBS, and that somehow pulls in pthread_join() and other 
> functions, but not pthread_sigmask(), even when not compiling with -pthread.

> I'll dig a bit deeper, but I think that could be fixed by moving the 
> AX_PTHREAD call in the configure script earlier, or by temporarily 
> clearing LIBS before calling it.

Ah.  The former sounds sensible from here.

This kind of points up that I've always thought the advice at the top of
configure.in is a tad broken:

dnl 0. Initialization and options processing
dnl 1. Programs
dnl 2. Libraries
dnl 3. Header files
dnl 4. Types
dnl 5. Structures
dnl 6. Compiler characteristics
dnl 7. Functions, global variables
dnl 8. System services

Why isn't "Compiler characteristics" a lot earlier in the list, certainly
before "Libraries"?

			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: <13340.1436387986@sss.pgh.pa.us>
Permalink:  ../13340.1436387986@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13340.1436387986@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, hlinnaka@iki.fi, peter_e@gmx.net
  Subject: Re: pgsql: Replace our hacked version of ax_pthread.m4 with latest upstream
  In-Reply-To: <13340.1436387986@sss.pgh.pa.us>
  References: <E1ZCtMW-0001iM-BK@gemulon.postgresql.org> <10166.1436386332@sss.pgh.pa.us> <11970.1436386843@sss.pgh.pa.us> <559D8887.6020005@iki.fi> <13340.1436387986@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