Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZCw0a-0006I9-9v for pgsql-committers@arkaria.postgresql.org; Wed, 08 Jul 2015 20:31:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZCw0Y-0005B3-QD for pgsql-committers@arkaria.postgresql.org; Wed, 08 Jul 2015 20:31:54 +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 1ZCvzq-0004LH-U3 for pgsql-committers@postgresql.org; Wed, 08 Jul 2015 20:31:11 +0000 Received: from mail-wg0-x236.google.com ([2a00:1450:400c:c00::236]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZCvzn-00064H-BP for pgsql-committers@postgresql.org; Wed, 08 Jul 2015 20:31:09 +0000 Received: by wgck11 with SMTP id k11so206076193wgc.0 for ; Wed, 08 Jul 2015 13:31:06 -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=+3ETlcqo7dBBgn7XRcC6QnKeTqVDeh6klQ8hQrCmePM=; b=h6aEPayE4wq4JlwjKCwKoQNBiHIpR36+q5p9bt99FkLoA6MQXpuoFjiDO37boqYH7w kKsNHxYyNdOPwSc/QBox6pIRdEg7lrmu0G/CgwiYjaMTGnNc8L0s3P91uKGMv/pRqblY kaS1mKypBdexLo6eIh/51qkV8lBNgw/q8ZIR/6yq4l/maO6ApIS8X7BXpP6dgK+IrYgF XFplsSidnC8sXJxn40kU+MksOvWPCyiZXt0Xt6+fIS4X9wrxHBX0RlxqKGdgC8MBoXPs fnDzzMB1QJ3GoyuPd5brv7RiWVqRliAbnzHvGbJFkCsdcmIzpFO+UEk+Ttvfi1QSYNb0 i0pg== X-Received: by 10.194.246.105 with SMTP id xv9mr23446658wjc.135.1436387465986; Wed, 08 Jul 2015 13:31:05 -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 ym2sm5162683wjc.44.2015.07.08.13.31.04 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Jul 2015 13:31:05 -0700 (PDT) Message-ID: <559D8887.6020005@iki.fi> Date: Wed, 08 Jul 2015 23:31:03 +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 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> In-Reply-To: <11970.1436386843@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:20 PM, Tom Lane wrote: > I wrote: >> Heikki Linnakangas writes: >>> Replace our hacked version of ax_pthread.m4 with latest upstream version. > >> Well, in fact that did not work. See gharial: it appears to have picked >> the wrong thread flags. > > And even more annoying, now that I've git pull'd, I find it's also broken > the build on my RHEL6 box: > > ../../../src/interfaces/libpq/libpq.so: undefined reference to `pthread_sigmask' > collect2: ld returned 1 exit status > make[3]: *** [pg_ctl] Error 1 > make[2]: *** [all-pg_ctl-recurse] Error 2 > make[2]: *** Waiting for unfinished jobs.... > ../../../src/interfaces/libpq/libpq.so: undefined reference to `pthread_sigmask' > collect2: ld returned 1 exit status > make[3]: *** [pg_receivexlog] Error 1 > make[3]: *** Waiting for unfinished jobs.... > ../../../src/interfaces/libpq/libpq.so: undefined reference to `pthread_sigmask' > collect2: ld returned 1 exit status > make[3]: *** [pg_basebackup] Error 1 > ../../../src/interfaces/libpq/libpq.so: undefined reference to `pthread_sigmask' > collect2: ld returned 1 exit status > make[3]: *** [pg_recvlogical] Error 1 > make[2]: *** [all-pg_basebackup-recurse] Error 2 > ../../../src/interfaces/libpq/libpq.so: undefined reference to `pthread_sigmask' > collect2: ld returned 1 exit status > ../../../src/interfaces/libpq/libpq.so: undefined reference to `pthread_sigmask' > collect2: ld returned 1 exit status > make[3]: *** [pg_dumpall] Error 1 > make[3]: *** Waiting for unfinished jobs.... > make[3]: *** [pg_rewind] Error 1 > make[2]: *** [all-pg_rewind-recurse] Error 2 > ../../../src/interfaces/libpq/libpq.so: undefined reference to `pthread_sigmask' > collect2: ld returned 1 exit status > make[3]: *** [pg_restore] Error 1 > ../../../src/interfaces/libpq/libpq.so: undefined reference to `pthread_sigmask' > collect2: ld returned 1 exit status > make[3]: *** [pg_dump] Error 1 > make[2]: *** [all-pg_dump-recurse] Error 2 > make[1]: *** [all-bin-recurse] Error 2 > make: *** [all-src-recurse] Error 2 > > It appears the new improved macro doesn't bother with -pthread at all. > Previously I got this in Makefile.global: > > PTHREAD_CFLAGS = -pthread -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS > PTHREAD_LIBS = -lpthread > > Now I get > > PTHREAD_CFLAGS = -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS > PTHREAD_LIBS = > > and that simply doesn't work. I do not know why the buildfarm isn't > entirely red, but I'm dead in the water. Please revert this. 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. - Heikki -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers