[Olsr-dev] pud plugin (nmea lib) does not compile on OpenWRT backfire

Ferry Huberts (spam-protected)
Fri Jun 8 17:44:50 CEST 2012



On 03-06-12 21:13, Jo-Philipp Wich wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> [again to the list, sorry Saverio]
>
> Hi,
>
> isnan() on uClibc is protected by __USE_ISOC99 or __USE_BSD so appending
> either -D_GNU_SOURCE or -std=c99 / -std=gnu99 to TARGET_CFLAGS in
> OpenWrt should work.

First of all, thanks for fixing the backfire build on F17!!!

I've tried all your suggestions by I'm still getting

> [CC] src/gmath.c
> mipsel-openwrt-linux-uclibc-gcc -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -msoft-float -fpic  -I/home/ferry/vcs/nbs/openwrt/backfire/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/include -I/home/ferry/vcs/nbs/openwrt/backfire/staging_dir/target-mipsel_uClibc-0.9.30.1/include -I/home/ferry/vcs/nbs/openwrt/backfire/staging_dir/toolchain-mipsel_gcc-3.4.6_uClibc-0.9.30.1/include  -ggdb -fPIC -ggdb -Werror -D_GNU_SOURCE -I nmealib/include -I wireformat/include -DGIT_SHA=\"Unknown\" -DPLUGIN_VER=\"1.1.0\" -fPIC -ggdb -D__USE_ISOC99 -I ./include -c src/gmath.c -o build/gmath.o
> src/gmath.c: In function `nmea_move_horz':
> src/gmath.c:244: error: `isnan' undeclared (first use in this function)
> src/gmath.c:244: error: (Each undeclared identifier is reported only once
> src/gmath.c:244: error: for each function it appears in.)
> src/gmath.c: In function `nmea_move_horz_ellipsoid':
> src/gmath.c:283: error: `isnan' undeclared (first use in this function)
> make[5]: *** [build/gmath.o] Error 1

Do you know what's going on?


-- 
Ferry Huberts




More information about the Olsr-dev mailing list