From: Carlo M. A. B. <ca...@sa...> - 2009-10-29 19:02:10
|
On Tue, Oct 27, 2009 at 09:52:52AM +0000, Paul Sobey wrote: > /usr/include/sys/feature_tests.h:336:2: error: #error "Compiler or options > invalid; UNIX 03 and POSIX.1-2001 applications require the use of > c99" > make[2]: *** [getopt1.o] Error 1 > > Googling leads me to try compiling with CFLAGS="-std=gnu99" per: > > http://bugzilla.ganglia.info/cgi-bin/bugzilla/show_bug.cgi?id=215 this is a bug on the autoconf from CentOS 4 which is used to build the release packages, therefore you can also workaround the issue by rebootstrapping the package or making your own with a better version of the autotools. for simplicity I'd uploaded an unofficial release package for 3.1.4 bootstrapped on fedora rawhide in : http://sajino.sajinet.com.pe/ganglia/ganglia-3.1.4.tar.gz > If do that, compilation fails building against Python 2.6.2 (built with > same toolchain): once you use "-std=gnu99" is no longer the same toolchain and therefore building python with the same standard support should solve your problem. Carlo |