pg.ddx.io  pgsql-ports@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Seneca Cunningham <scunning@ca.afilias.info>
To: 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 12:16:23 -0500
Message-ID: <44199D67.60408@ca.afilias.info> (raw)
In-Reply-To: <259a55900603160838p4a529a4l590a9baa444a5575@mail.gmail.com>
References: <259a55900603160748v2646acd4l2909650eab5a4737@mail.gmail.com>
	<44198CBB.9070608@ca.afilias.info>
	<259a55900603160811h6d797ddeud9efb0b91c22a51f@mail.gmail.com>
	<4419912A.1070903@ca.afilias.info>
	<259a55900603160838p4a529a4l590a9baa444a5575@mail.gmail.com>

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



view thread (14+ messages)  latest in thread

Message-ID: <44199D67.60408@ca.afilias.info>
Permalink:  ../44199D67.60408@ca.afilias.info/
Also on:    postgresql.org/message-id/44199D67.60408@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, multix@gmail.com
  Subject: Re: fails to compile with undefined symbol (FP_PLUS_INF)
  In-Reply-To: <44199D67.60408@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> <44199D67.60408@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