From: | Seneca Cunningham <scunning(at)ca(dot)afilias(dot)info> |
---|---|
To: | Riccardo Mottola <multix(at)gmail(dot)com> |
Cc: | pgsql-ports(at)postgresql(dot)org |
Subject: | Re: fails to compile with undefined symbol (FP_PLUS_INF) |
Date: | 2006-03-16 17:16:23 |
Message-ID: | 44199D67.60408@ca.afilias.info |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-ports |
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(at)ca(dot)afilias(dot)info
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2006-03-16 17:58:06 | Re: fails to compile with undefined symbol (FP_PLUS_INF) |
Previous Message | Riccardo Mottola | 2006-03-16 16:38:27 | Re: fails to compile with undefined symbol (FP_PLUS_INF) |