[kaffe] undefined reference to isinf, isnan when cross compiling

Dalibor Topic robilad at kaffe.org
Sun Aug 15 21:09:09 PDT 2004


D greene wrote:
> Thanks Dalibor for your response.
> 
>> thanks for the bug report. Does configure detect isnan and isinf?
>>
>> cheers,
>> dalibor topic
> 
> 
> Seems like I'm not detecting it, here's the relevant snippets from 
> config.log:
> 
> configure:43911: test -s conftest
> configure:43914: $? = 0
> configure:43926: result: yes
> configure:43939: checking for isnan
> configure:43996: mipsel-unknown-linux-uclibc-gcc -o conftest -Os 
> -fomit-frame-pointer -Wall -Wstrict prototypes -fno-omit-frame-pointer  
> -DNDEBUG  conftest.c -lm    >&5
> conftest.c:150: warning: function declaration isn't a prototype
> conftest.c:157: warning: function declaration isn't a prototype
> conftest.c:165: warning: function declaration isn't a prototype
> /tmp/ccYGlYrN.o(.text+0x20): In function `main':
> : undefined reference to `isnan'
> /tmp/ccYGlYrN.o(.data+0x0): undefined reference to `isnan'
> collect2: ld returned 1 exit status
> configure:44002: $? = 1
> configure: failed program was:
> | /* confdefs.h.  */
> ...
> configure:44027: result: no
> configure:44039: checking for isinf
> configure:44096: mipsel-unknown-linux-uclibc-gcc -o conftest -Os 
> -fomit-frame-pointer -Wall -Wstrict-prototypes -fno-omit-frame-pointer  
> -DNDEBUG  conftest.c -lm    >&5
> conftest.c:150: warning: function declaration isn't a prototype
> conftest.c:157: warning: function declaration isn't a prototype
> conftest.c:165: warning: function declaration isn't a prototype
> /tmp/ccMvpRol.o(.text+0x20): In function `main':
> : undefined reference to `isinf'
> /tmp/ccMvpRol.o(.data+0x0): undefined reference to `isinf'
> collect2: ld returned 1 exit status
> configure:44102: $? = 1
> configure: failed program was:
> | /* confdefs.h.  */
> ...
> ac_cv_func_isinf=no
> ac_cv_func_isnan=no

Judging by 
http://www.uclibc.org/cgi-bin/cvsweb/uClibc/include/math.h?annotate=1.12&sortby=file

there is an isnan and isinf implementation as a macro in include/math.h. 
I'm wondering why it doesn't get picked up in your case. Could you put 
your config.log and build.log online?

cheers,
dalibor topic




More information about the kaffe mailing list