Compilation fails with gcc 4.1.2 on CentOS 5.9
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
igraph |
Fix Committed
|
Medium
|
Tamás Nepusz |
Bug Description
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -I/usr/
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -I/usr/
plfit/gss.c: In function 'gss':
plfit/gss.c:92: error: 'NAN' undeclared (first use in this function)
plfit/gss.c:92: error: (Each undeclared identifier is reported only once
plfit/gss.c:92: error: for each function it appears in.)
plfit/gss.c:93: error: 'INFINITY' undeclared (first use in this function)
make[3]: *** [gss.lo] Error 1
make[3]: Leaving directory `/home/
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/
make: *** [all] Error 2
[csardi@localhost igraph-0.6.5]$ gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-54)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[csardi@localhost igraph-0.6.5]$ uname -a
Linux localhost.
Interesting; NAN and INFINITY are defined in plfit/platform.h exactly to avoid this problem. Maybe it's picking up a different platform.h from somewhere else?