Hi!

On Tue, Jan 15, 2008 at 06:55:46PM +0100, Christian Stalp wrote:
> /tmp/cc5VfITp.o: In function `soap_float2s':
> stdsoap2.c:(.text+0x1c434): undefined reference to `isnan'
> /tmp/cc5VfITp.o: In function `soap_double2s':
> stdsoap2.c:(.text+0x1d050): undefined reference to `isnan'
> collect2: ld returned 1 exit status

As stated in the last line, these are linker-errors. So you're missing
the symbols in libm.so.

> So there is that symbol 'isnan' that cannot resolved!!??!! I thought its
> in the math.h but since yesterday I have a math.h also on my
> target-platform.

You did enable "Support ISO C99 math functions"? Also tried 
"make cleandir && make" ?

> Does anybody know how to handle this, or did I make so mistake in my
> makefile.

No, looks good. I did some tests on my system:
| [EMAIL PROTECTED] freewrt $ grep isnan cross_mipsel/target/lib/libm.so
| Binary file cross_mipsel/target/lib/libm.so matches

I also wrote sample code:
| #include <math.h>
| void main(void) {
|       isnan(9);
| }

Then compiled it:
| [EMAIL PROTECTED] tmp $ mipsel-linux-gcc \
|   -I/home/n0-1/svn/freewrt/cross_mipsel/target/include/ \
|   -I/home/n0-1/svn/freewrt/cross_mipsel/target/usr/include/ \
|   -L/home/n0-1/svn/freewrt/cross_mipsel/target/lib/ isnan.c
| isnan.c:0: note: someone does not honour COPTS correctly, passed 0 times
| isnan.c: In function `main':
| isnan.c:3: warning: return type of 'main' is not `int'
| [EMAIL PROTECTED] tmp $ file a.out 
| a.out: ELF 32-bit LSB executable, MIPS, MIPS-I version 1 (SYSV),
| dynamically linked (uses shared libs), not stripped

good luck,
Phil
_______________________________________________
freewrt-developers mailing list
[email protected]
https://www.freewrt.org/lists/listinfo/freewrt-developers

Reply via email to