X-Original-To: pgsql-ports-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 2775A9DC98E for ; Thu, 16 Mar 2006 14:22:39 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 71627-08 for ; Thu, 16 Mar 2006 14:22:36 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.libertyrms.com (vgateway.libertyrms.info [207.219.45.62]) by postgresql.org (Postfix) with ESMTP id 4F3A89DC943 for ; Thu, 16 Mar 2006 14:22:34 -0400 (AST) Received: from dev5.int.libertyrms.com ([10.1.3.42]) by mail.libertyrms.com with esmtp (Exim 4.22) id 1FJx7J-00020Q-M4; Thu, 16 Mar 2006 13:22:33 -0500 Message-ID: <4419AD22.4020108@ca.afilias.info> Date: Thu, 16 Mar 2006 13:23:30 -0500 From: Seneca Cunningham User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: Tom Lane CC: Riccardo Mottola , pgsql-ports@postgresql.org Subject: Re: fails to compile with undefined symbol (FP_PLUS_INF) References: <259a55900603160748v2646acd4l2909650eab5a4737@mail.gmail.com> <44198CBB.9070608@ca.afilias.info> <259a55900603160811h6d797ddeud9efb0b91c22a51f@mail.gmail.com> <4419912A.1070903@ca.afilias.info> <259a55900603160838p4a529a4l590a9baa444a5575@mail.gmail.com> <18237.1142531886@sss.pgh.pa.us> In-Reply-To: <18237.1142531886@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SA-Exim-Mail-From: scunning@ca.afilias.info X-SA-Exim-Scanned: No; SAEximRunCond expanded to false X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.96 required=5 tests=[AWL=0.147, INFO_TLD=0.813] X-Spam-Score: 0.96 X-Spam-Level: X-Archive-Number: 200603/23 X-Sequence-Number: 2347 Tom Lane wrote: > "Riccardo Mottola" writes: >>> The float.h that's part of gcc doesn't contain the defines. > >> yes, exactly. lib/gcc/powerpc-ibm-aix4.2.1.0/3.4.5/include/float.h >> and indeed, it has not those defines. > > Ah-hah. This probably indicates that the gcc you are using was > originally generated on a different version of AIX. It's always bad > news when gcc's copies of the headers don't match the real ones :-( > > These copies are generated during gcc build by a script called > "fixincludes". You might be able to fix them up by just re-running > fixincludes. My inclination would be to rebuild gcc altogether though. My gcc build is like that and I was the one who built it to replace another build of gcc. gcc doesn't seem to like float.h on AIX and just uses its own as part of fixincludes; math.h comes out in a more intact state. This means that on AIX versions where math.h also contains FP_PLUS_INF (and the rest of that block of defines), the defines do occur. It would appear that 4.2 doesn't also contain the necessary defines as part of math.h (protected by an #ifndef on 5.3). -- Seneca Cunningham scunning@ca.afilias.info