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 7F2649DCB5F for ; Thu, 16 Mar 2006 12:24:05 -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 39603-10 for ; Thu, 16 Mar 2006 12:24:03 -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 6F5BB9DC883 for ; Thu, 16 Mar 2006 12:23:59 -0400 (AST) Received: from dev5.int.libertyrms.com ([10.1.3.42]) by mail.libertyrms.com with esmtp (Exim 4.22) id 1FJvFp-0005YU-Bl; Thu, 16 Mar 2006 11:23:13 -0500 Message-ID: <4419912A.1070903@ca.afilias.info> Date: Thu, 16 Mar 2006 11:24:10 -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> In-Reply-To: <259a55900603160811h6d797ddeud9efb0b91c22a51f@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.958 required=5 tests=[AWL=0.145, INFO_TLD=0.813] X-Spam-Score: 0.958 X-Spam-Level: X-Archive-Number: 200603/19 X-Sequence-Number: 2343 Riccardo Mottola wrote: > our faithful grep tool says: > bash-2.01$ grep FP_PLUS_INF * > float.h:#define FP_PLUS_INF 4 > bash-2.01$ grep FP_MINUS_INF * > float.h:#define FP_MINUS_INF 5 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. > On 3/16/06, Seneca Cunningham wrote: >> Riccardo Mottola wrote: >>> gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline >>> -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing >>> -I../../src/port -DFRONTEND -I../../src/include -I/usr/local/include >>> -c isinf.c -o isinf.o >>> isinf.c: In function `isinf': >>> isinf.c:69: error: `FP_PLUS_INF' undeclared (first use in this function) >>> isinf.c:69: error: (Each undeclared identifier is reported only once >>> isinf.c:69: error: for each function it appears in.) >>> isinf.c:71: error: `FP_MINUS_INF' undeclared (first use in this function) >>> make[2]: *** [isinf.o] Error 1 >> Are FP_PLUS_INF and FP_MINUS_INF defined in float.h or math.h? The >> oldest docs that I found were for AIX 4.3 and what I could gather from >> them is that the code should compile. -- Seneca Cunningham scunning@ca.afilias.info