X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 17A35D1B4E3 for ; Fri, 26 Sep 2003 16:07:42 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 56291-02 for ; Fri, 26 Sep 2003 13:07:31 -0300 (ADT) Received: from megazone.bigpanda.com (megazone.bigpanda.com [64.147.171.210]) by svr1.postgresql.org (Postfix) with ESMTP id CA411D1B4F5 for ; Fri, 26 Sep 2003 13:07:30 -0300 (ADT) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 668B135377; Fri, 26 Sep 2003 09:07:30 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 64C4035373; Fri, 26 Sep 2003 09:07:30 -0700 (PDT) Date: Fri, 26 Sep 2003 09:07:30 -0700 (PDT) From: Stephan Szabo To: Tom Lane Cc: "[ADMIN]" Subject: Re: Fw: Case Insensitive Test In-Reply-To: <15846.1064589042@sss.pgh.pa.us> Message-ID: <20030926082241.A4723@megazone.bigpanda.com> References: <4.2.2.20030925220310.01955f08@localhost> <8975.1064553449@sss.pgh.pa.us> <20030925222934.F96784@megazone.bigpanda.com> <9396.1064556152@sss.pgh.pa.us> <20030926074907.C4723@megazone.bigpanda.com> <15846.1064589042@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1391333285-1064592450=:4723" X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/439 X-Sequence-Number: 10527 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --0-1391333285-1064592450=:4723 Content-Type: TEXT/PLAIN; charset=US-ASCII On Fri, 26 Sep 2003, Tom Lane wrote: > Stephan Szabo writes: > > However, the immediate problem I have seems to come from the fact that > > on Linux at least we're basically lying to configure about what's in the > > system headers when we go to compile. port/linux.h on my system defined > > _GNU_SOURCE which forces most/all of the extension things to be defined > > even if they wouldn't by the command line options. > > Hm. I have to plead guilty to putting that #define in there. It was a > quick-and-dirty workaround to make plperl compile. Perhaps a better > solution would be for template/linux to add the appropriate thing to > CPPFLAGS, so that configure would see the same environment. Can you > try that and see if it fixes your issue? (What exactly is your issue, > anyway?) Configure doesn't find struct addrinfo (because it's in a __USE_POSIX block) so it looks like we use our own version, but, when we're actually then compiling getaddrinfo.c, there's a redefinition error because this time struct addrinfo is found (because _GNU_SOURCE forces __USE_POSIX). It looks like commenting it out of linux.h and adding it to template/linux works for the main build, it compiles and links fine both with and without --std=c89 and the latter also passes regression. I didn't try to build plperl however. --0-1391333285-1064592450=:4723 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="gnusource.diff" Content-Transfer-Encoding: BASE64 Content-ID: <20030926090730.O4723@megazone.bigpanda.com> Content-Description: Content-Disposition: attachment; filename="gnusource.diff" SW5kZXg6IHNyYy9pbmNsdWRlL3BvcnQvbGludXguaA0KPT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PQ0KUkNTIGZpbGU6IC9wcm9qZWN0cy9jdnNyb290L3Bnc3Fs LXNlcnZlci9zcmMvaW5jbHVkZS9wb3J0L2xpbnV4Lmgsdg0KcmV0cmlldmlu ZyByZXZpc2lvbiAxLjM0DQpkaWZmIC1jIC1yMS4zNCBsaW51eC5oDQoqKiog c3JjL2luY2x1ZGUvcG9ydC9saW51eC5oCTE0IFNlcCAyMDAzIDIwOjIxOjE4 IC0wMDAwCTEuMzQNCi0tLSBzcmMvaW5jbHVkZS9wb3J0L2xpbnV4LmgJMjYg U2VwIDIwMDMgMTU6MzQ6NDggLTAwMDANCioqKioqKioqKioqKioqKg0KKioq IDEsOSAqKioqDQotIC8qIEZvcmNlIF9HTlVfU09VUkNFIG9uOyBwbHBlcmwg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