Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZCwbT-0007ou-FJ for pgsql-committers@arkaria.postgresql.org; Wed, 08 Jul 2015 21:10:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZCwbS-0004Qq-J8 for pgsql-committers@arkaria.postgresql.org; Wed, 08 Jul 2015 21:10:02 +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 1ZCwaq-0003fb-PV for pgsql-committers@postgresql.org; Wed, 08 Jul 2015 21:09:24 +0000 Received: from mail-wi0-x233.google.com ([2a00:1450:400c:c05::233]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZCwao-0006n8-0v for pgsql-committers@postgresql.org; Wed, 08 Jul 2015 21:09:23 +0000 Received: by wiwl6 with SMTP id l6so565239wiw.0 for ; Wed, 08 Jul 2015 14:09:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:reply-to:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=Pz8uEf5z5+eVuXp9YqzjKYqIdlZt/Dl0+avLYXPlk0c=; b=Me6MOX6fch6R+bamfSEbWCaRTMTtFHV6h9jg5TPfZF/rINWO+UdzjLaajoPmu+CMnN uOVBp/srPAHO8wNzRP7ecdUQj/pQYQyCuonBscyRqhB7b/RGnQjJ2taArpZ2SIvwD1DT jFb5htsz0h8WRNKSxJQf9GkeRFeFRJWwGiFE9wIqk/b9VenDIJ3ZrAHIBoWbDFAdneO5 kUfuZlrEk3gE0LLwhCsju0FZcVsamSWCOVG1POtHHTUWpZqQEdTneYzAyD+2Uabifvyc L+B1Jg2UT1Gc2ArPH1WmaWYa7E6mM1vj1M/j/bW9d3aq8ejilVqiP+yROfsVY/3+5QG0 qdig== X-Received: by 10.194.100.104 with SMTP id ex8mr24894643wjb.69.1436389759172; Wed, 08 Jul 2015 14:09:19 -0700 (PDT) Received: from [192.168.1.110] (dsl-hkibrasgw1-58c38f-82.dhcp.inet.fi. [88.195.143.82]) by smtp.gmail.com with ESMTPSA id um5sm5347973wjc.1.2015.07.08.14.09.17 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Jul 2015 14:09:18 -0700 (PDT) Message-ID: <559D917C.6030201@iki.fi> Date: Thu, 09 Jul 2015 00:09:16 +0300 From: Heikki Linnakangas Reply-To: hlinnaka@iki.fi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-Version: 1.0 To: Tom Lane , Peter Eisentraut 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; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.4 (--) 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 07/08/2015 11: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. Pushed that. Should make shearwater happy, but I'm not very sure what the problem on gharial is. -lrt is not used there, but one of the other libraries is having a similar effect there. > 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"? Hmm, yeah, although it's not clear what category the pthread check falls into. - Heikki -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers