Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDGd6-0005qa-F1 for pgsql-committers@arkaria.postgresql.org; Thu, 09 Jul 2015 18:33:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZDGd5-0002VF-T4 for pgsql-committers@arkaria.postgresql.org; Thu, 09 Jul 2015 18:33:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZDGcp-0002GE-Ky for pgsql-committers@postgresql.org; Thu, 09 Jul 2015 18:32:47 +0000 Received: from mout.gmx.net ([212.227.17.22]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84) (envelope-from ) id 1ZDGcm-0005Sf-I6 for pgsql-committers@postgresql.org; Thu, 09 Jul 2015 18:32:47 +0000 Received: from auth1-smtp.messagingengine.com ([66.111.4.227]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0MAQMg-1ZJGuR2eAk-00Bb2o for ; Thu, 09 Jul 2015 20:32:41 +0200 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailauth.nyi.internal (Postfix) with ESMTP id 4521F204A3 for ; Thu, 9 Jul 2015 14:32:40 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute3.internal (MEProxy); Thu, 09 Jul 2015 14:32:40 -0400 X-Sasl-enc: SgWO8K+ZkEd/q0o3KICoiro9ZfIw2TUKka+Yi8pV0EU0 1436466760 Received: from [192.168.1.146] (unknown [204.145.120.11]) by mail.messagingengine.com (Postfix) with ESMTPA id 16429C00026; Thu, 9 Jul 2015 14:32:40 -0400 (EDT) Message-ID: <559EBE47.9070607@gmx.net> Date: Thu, 09 Jul 2015 14:32:39 -0400 From: Peter Eisentraut User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Tom Lane , hlinnaka@iki.fi CC: pgsql-committers@postgresql.org Subject: Re: pgsql: Replace our hacked version of ax_pthread.m4 with latest upstream References: <10166.1436386332@sss.pgh.pa.us> <11970.1436386843@sss.pgh.pa.us> <559D8887.6020005@iki.fi> <13340.1436387986@sss.pgh.pa.us> In-Reply-To: <13340.1436387986@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:ssAfUEmRB3jdlI/eupwPLP3miXUTRZZhezgnf7KSikkGhMEaCaV VYoM0MRgP1RuKlTmZ6eYSMPjoT5EQc7a0Wro/hGsY/rufiO/RbEm/2dYouUgzrBJnkZ3vcN sAD0ULF/6gEkH1woOD6pxBNwm/jxsTloTQButs4BLMJpaCLHvb1/Dv75MYOYZ4bcQ2cl+Sx VQAXP+VBGdwxrBkvqTQLA== X-UI-Out-Filterresults: notjunk:1;V01:K0:mPCwB0NhtXg=:ngJBD9flSk7zLxXru8XVSp gmV6OFasOFxYKChxMDrg5qY5NXVEM07uNUspm7/6mtE9mOQm2rwXFyIAJ4vAuVV2FroqSGFq/ ZGMIJeo3n43d8jVnJhLr/cjAVwcpFoE/NkDm8Nr55MM5nyIYw9PqyxRcmTYKDRaen5//lF2wB USpUHb8chfpTqO07Vo0eEG4lUUpu8n4Ns4EBHiGL6DmOME/pQCJj4i78Xudkky2fwqAJzhT0I MkNC4zPm7EYPdivaASFs4pWx2WkAVIj23YhERGRGcVePhNHFPeKJh2kJ0AANxk5dE4Jv2tCOr ka0Icgd2nafYN+0w2FE7iqn+UhONC4CQ0awLz4/z91cVTKP6/O0fuzPOezR5ce7n39CVmBSNM yMH0ie/FjL6Uy/wh7KewiXOP0YsE6uzsqRhTrCX87IumjdbzmkUDpc3UyMEmsY3IJpXxq0ipH 160wKIyIRAxeUhhWsNQI1Qn6jTH1JUzinhyMJGW86azh48ZE+FVSv1p6GsYiaimChWCZ5jaik 1twMCnCYiATxtx2F1KbRVmxcupiEG9Fz+BMNsm0QMYS+tlUW+gjtLqvYGXYbVtdp+DqyQp1Gh z8fiyZko+suFgFBnzCMuliYzqnCwscHxoYscbe9R88gE2m9vY25qkcbZU8MDWfbnVcBxsr/Ai 0isyQHcJCSY1Y9IIb8383ig9xwrpz6N6yt5YaBnQtX6rG5sc2+d1W5wEWGDnzAzFjN4g= X-Pg-Spam-Score: -2.2 (--) 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 On 7/8/15 4:39 PM, Tom Lane wrote: > 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"? 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