Re: fails to compile with undefined symbol (FP_PLUS_INF)

Поиск
Список
Период
Сортировка
От Seneca Cunningham
Тема Re: fails to compile with undefined symbol (FP_PLUS_INF)
Дата
Msg-id 4419AD22.4020108@ca.afilias.info
обсуждение исходный текст
Ответ на Re: fails to compile with undefined symbol (FP_PLUS_INF)  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: fails to compile with undefined symbol (FP_PLUS_INF)  ("Riccardo Mottola" <multix@gmail.com>)
Re: fails to compile with undefined symbol (FP_PLUS_INF)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-ports
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

В списке pgsql-ports по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: fails to compile with undefined symbol (FP_PLUS_INF)
Следующее
От: "Riccardo Mottola"
Дата:
Сообщение: Re: fails to compile with undefined symbol (FP_PLUS_INF)