Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hTRj2-0002GJ-AD for pgsql-hackers@arkaria.postgresql.org; Wed, 22 May 2019 13:56:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hTRj0-0008AX-W6 for pgsql-hackers@arkaria.postgresql.org; Wed, 22 May 2019 13:56:10 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hTRj0-0008AK-K9 for pgsql-hackers@lists.postgresql.org; Wed, 22 May 2019 13:56:10 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hTRiy-0006vW-3d for pgsql-hackers@lists.postgresql.org; Wed, 22 May 2019 13:56:09 +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 x4MDu7Fc027055 for ; Wed, 22 May 2019 09:56:07 -0400 From: Tom Lane To: pgsql-hackers@lists.postgresql.org Subject: FullTransactionId changes are causing portability issues MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <27053.1558533367.1@sss.pgh.pa.us> Date: Wed, 22 May 2019 09:56:07 -0400 Message-ID: <27054.1558533367@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Our Solaris packager reports that 12beta1 is failing to build for him on some Solaris variants: > The link failure is: > --- > Undefined first referenced > symbol in file > ReadNextFullTransactionId pg_checksums.o > ld: fatal: symbol referencing errors. No output written to pg_checksums > --- > Now, ReadNextFullTransactionId() is implemented in > src/backend/access/transam/varsup.c but I cannot see varsop.o being > included in any of the libraries pg_checksum is linked against > (libpgcommon.a and libpgport.a). > When I check the pg_checksum.o I find that it references > ReadNextFullTransactionId on the platforms that fail but not where it > doesn't. The failed platforms are all sparc variants plus 64-bit x86 > on Solaris 11. > The compiler used in Sun Studio 12u1, very old and and I can try to > upgrade and see if that helps. > [ it didn't ] I'm a bit mystified why we did not see this problem in the buildfarm, especially since we have at least one critter (damselfly) running an OpenSolaris variant. Nonetheless, it sure looks like a "somebody was sloppy about frontend/backend separation" problem. Fix ideas anyone? I think we need to not only solve the immediate problem (which might just take an #ifndef FRONTEND somewhere) but also close the testing gap so we don't get blindsided like this again. regards, tom lane