Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TKwmV-0006Ay-Nz for pgsql-bugs@postgresql.org; Sun, 07 Oct 2012 19:44:55 +0000 Received: from mail.synsport.com ([208.69.230.148] helo=shepard.synsport.net) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TKwmS-0008An-1O for pgsql-bugs@postgresql.org; Sun, 07 Oct 2012 19:44:54 +0000 Received: from [192.168.1.12] (134.red-88-9-108.dynamicip.rima-tde.net [88.9.108.134]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by shepard.synsport.net (Postfix) with ESMTP id 82A14435A3; Sun, 7 Oct 2012 14:44:50 -0500 (CDT) Message-ID: <5071DBB0.8040107@marino.st> Date: Sun, 07 Oct 2012 21:44:48 +0200 From: John Marino User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0) Gecko/20120129 Thunderbird/10.0 MIME-Version: 1.0 To: Tom Lane CC: pgsql-bugs@postgresql.org Subject: Re: BUG #7588: pgsql 9.1 incompatible with zlib 1.27 References: <13048.1349627764@sss.pgh.pa.us> <5071B902.6030505@marino.st> <14190.1349631338@sss.pgh.pa.us> <5071C248.5020206@marino.st> <15810.1349637294@sss.pgh.pa.us> In-Reply-To: <15810.1349637294@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201210/56 X-Sequence-Number: 34356 On 10/7/2012 21:14, Tom Lane wrote: > John Marino writes: >> By the way, I also had to patch 9.1.6 in order to build it with gcc47: >> http://pkgsrc.se/files.php?messageId=20121007102454.6E70D175DD@cvs.netbsd.org > > [ shrug... ] I just tried 9.1.6 with gcc 4.7.0 and 4.7.2 on Fedora, and > saw nothing but a handful of cosmetic warnings. I see the same on our > buildfarm member anchovy, which is running 4.7.1 on Arch Linux. > > We generally don't bother to fix cosmetic warnings introduced by new > toolchains except in HEAD; it's just not worth the trouble. gcc in > particular seems to move the goalposts constantly, and most of the > warnings they've introduced recently are pure pedantry anyway (IMO). > > The comments attached to your patches suggest that you saw errors rather > than warnings, but if so you've got distro-specific compiler bugs to > deal with. There is nothing even faintly non-legitimate about the code > chunks you changed. > > regards, tom lane Hi Tom, Perhaps, you need to take a closer look at this. I guarantee that I didn't do this for cosmetic reasons. GCC behavior changed with GCC 4.5 on this topic. From what I can tell, later version GCC does not consider these arrays declared with a constant expression. Apparently it runs afoul of C99 section 6.6: http://c0x.coding-guidelines.com/6.6.html Things like sizeof, offsetof, etc in cause problems. I don't know why you didn't reproduce it in Fedora. I can speculate that Fedora has modified gcc from a stock vendor configuration or perhaps changes the internal specs. Surely this isn't the first time the topic has been brought up? I'm surprised. The errors were coming something like, "variably modified at file scope". One was a warning, two were errors that broke the compilation. John