Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZCw8n-0006f1-Rl for pgsql-committers@arkaria.postgresql.org; Wed, 08 Jul 2015 20:40:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZCw8n-0003Rt-BU for pgsql-committers@arkaria.postgresql.org; Wed, 08 Jul 2015 20:40:25 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZCw8X-0003A7-66 for pgsql-committers@postgresql.org; Wed, 08 Jul 2015 20:40:09 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZCw8V-0006Ca-0B for pgsql-committers@postgresql.org; Wed, 08 Jul 2015 20:40:07 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t68KdkBn013341; Wed, 8 Jul 2015 16:39:46 -0400 From: Tom Lane To: hlinnaka@iki.fi, Peter Eisentraut cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Replace our hacked version of ax_pthread.m4 with latest upstream In-reply-to: <559D8887.6020005@iki.fi> References: <10166.1436386332@sss.pgh.pa.us> <11970.1436386843@sss.pgh.pa.us> <559D8887.6020005@iki.fi> Comments: In-reply-to Heikki Linnakangas message dated "Wed, 08 Jul 2015 23:31:03 +0300" Date: Wed, 08 Jul 2015 16:39:46 -0400 Message-ID: <13340.1436387986@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org Heikki Linnakangas 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