Re: Undefined symbol 'NAN'
Pascal Terjan <[email protected]> Mon, 02 Aug 2010 19:42:43 +0200
| Newsgroups | gmane.linux.lib.dietlibc |
|---|---|
| Organization | Mandriva |
| Message-ID | <1280770963.2125.0.camel@plop> |
Le lundi 02 août 2010 à 19:05 +0200, [email protected] a écrit : > Hi, > > I'm trying to compile the package 'gpsd'. > Its configure script automatically searches (and finds) > '/opt/diet/bin/diet gcc' as the C compiler. > The problem is that the source code uses the symbol 'NAN' in > sentences like: > > fixp->time = NAN; > > and this causes a compile error: > > gpsutils.c: In function 'gps_clear_fix': > gpsutils.c:35:18: error: 'NAN' undeclared (first use in this function) > ... > > Is it supposed to happen ? > Is there a workaround for this in dietlibc ? As the code there says, they should really check it in configure... http://git.berlios.de/cgi-bin/gitweb.cgi?p=gpsd;a=blobdiff;f=gpsd.h;h=9e6504c04f3de528d5545587b84b0f32171b8312;hp=1ee735dd9c52007b19724a0cb273b042045753e1;hb=61bed386cdc2dbb3a9c512012d744abec5a43179;hpb=f4e46d7f5d827f47fa60f1e52b23837eab7f030e