pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: hlinnaka@iki.fi
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Replace our hacked version of ax_pthread.m4 with latest upstream
Date: Thu, 09 Jul 2015 14:32:39 -0400
Message-ID: <559EBE47.9070607@gmx.net> (raw)
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>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

On 7/8/15 4:39 PM, Tom Lane wrote:
> 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"?

Compiler characteristics are things like sizeof and alignof, for which
you need header files and types, for which you might need libraries.

There will surely be some complicated cases, but I think as a guideline
the order is sound.


-- 
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: <559EBE47.9070607@gmx.net>
Permalink:  ../559EBE47.9070607@gmx.net/
Also on:    postgresql.org/message-id/559EBE47.9070607@gmx.net

 · 

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: peter_e@gmx.net, tgl@sss.pgh.pa.us, hlinnaka@iki.fi
  Subject: Re: pgsql: Replace our hacked version of ax_pthread.m4 with latest upstream
  In-Reply-To: <559EBE47.9070607@gmx.net>
  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> <559EBE47.9070607@gmx.net>

* 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