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 06F009DC827 for ; Thu, 16 Mar 2006 13:15:35 -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 55054-01 for ; Thu, 16 Mar 2006 13:15:33 -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 B0D6A9DC810 for ; Thu, 16 Mar 2006 13:15:31 -0400 (AST) Received: from dev5.int.libertyrms.com ([10.1.3.42]) by mail.libertyrms.com with esmtp (Exim 4.22) id 1FJw4R-0007pI-1D; Thu, 16 Mar 2006 12:15:31 -0500 Message-ID: <44199D67.60408@ca.afilias.info> Date: Thu, 16 Mar 2006 12:16:23 -0500 From: Seneca Cunningham User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: Riccardo Mottola CC: 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> In-Reply-To: <259a55900603160838p4a529a4l590a9baa444a5575@mail.gmail.com> 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.959 required=5 tests=[AWL=0.146, INFO_TLD=0.813] X-Spam-Score: 0.959 X-Spam-Level: X-Archive-Number: 200603/21 X-Sequence-Number: 2345 Riccardo Mottola wrote: > Hello, > >> Is there a float.h in your gcc install directory? Is it #included >> instead of /usr/include/float.h by gcc? My faithful grep tool says: >> >> -bash-2.05b$ grep FP_MINUS_INF /usr/include/* >> /usr/include/float.h:#define FP_MINUS_INF 5 >> /usr/include/math.h:#define FP_MINUS_INF 5 >> >> 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. > As far as I know, the gcc includes have always precedence. Maybe you > should run a configure check? > Do you know a workaround? Something that may work would be to take the block of defines output by: grep -p FP_MINUS_INF /usr/include/* and add it to the math.h in the gcc directory. I don't have a 4.2 box here so I can't test this, but the math.h in my gcc directory does contain the defines. That math.h should be similar to the math.h in /usr/include. -- Seneca Cunningham scunning@ca.afilias.info