pg.ddx.io  pgsql-ports@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Seneca Cunningham <scunning@ca.afilias.info>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Riccardo Mottola <multix@gmail.com>
Cc: pgsql-ports@postgresql.org
Subject: Re: fails to compile with undefined symbol (FP_PLUS_INF)
Date: Thu, 16 Mar 2006 13:23:30 -0500
Message-ID: <4419AD22.4020108@ca.afilias.info> (raw)
In-Reply-To: <18237.1142531886@sss.pgh.pa.us>
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>

Tom Lane wrote:
> "Riccardo Mottola" <multix@gmail.com> 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



view thread (14+ messages)  latest in thread

Message-ID: <4419AD22.4020108@ca.afilias.info>
Permalink:  ../4419AD22.4020108@ca.afilias.info/
Also on:    postgresql.org/message-id/4419AD22.4020108@ca.afilias.info

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-ports@postgresql.org
  Cc: scunning@ca.afilias.info, tgl@sss.pgh.pa.us, multix@gmail.com
  Subject: Re: fails to compile with undefined symbol (FP_PLUS_INF)
  In-Reply-To: <4419AD22.4020108@ca.afilias.info>
  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> <4419AD22.4020108@ca.afilias.info>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox