Hi all: I'm trying to compile ganglia trunk on Joyent SmartMachine 2.4.5 and I got the following error:
/bin/bash ../libtool --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I/opt/local/include/apr-1 -I.. -I. -I../include/ -D_LARGEFILE64_SOURCE -DSYSCONFDIR='"/opt/ganglia/etc"' -g -O2 -I/opt/local//include -fno-strict-aliasing -Wall -D__EXTENSIONS__ -DHAVE_STRERROR -D_POSIX_C_SOURCE=200112L -MT update_pidfile.lo -MD -MP -MF .deps/update_pidfile.Tpo -c -o update_pidfile.lo update_pidfile.c gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I/opt/local/include/apr-1 -I.. -I. -I../include/ -D_LARGEFILE64_SOURCE -DSYSCONFDIR=\"/opt/ganglia/etc\" -g -O2 -I/opt/local//include -fno-strict-aliasing -Wall -D__EXTENSIONS__ -DHAVE_STRERROR -D_POSIX_C_SOURCE=200112L -MT update_pidfile.lo -MD -MP -MF .deps/update_pidfile.Tpo -c update_pidfile.c -fPIC -DPIC -o .libs/update_pidfile.o In file included from /usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/include/sys/types.h:44, from update_pidfile.c:6: /usr/include/sys/feature_tests.h:353:2: #error "Compiler or options invalid for pre-UNIX 03 X/Open applications and pre-2001 POSIX applications" gmake[2]: *** [update_pidfile.lo] Error 1 I did some googling and came across this: https://bugs.launchpad.net/nexenta/+bug/452667 And after this patch, it allows me to continue: Index: lib/update_pidfile.c =================================================================== --- lib/update_pidfile.c (revision 2550) +++ lib/update_pidfile.c (working copy) @@ -2,7 +2,7 @@ * @file update_pidfile.c Functions for standalone daemons */ /* $Id: daemon_init.c 1986 2009-04-03 13:36:14Z hawson $ */ -#define _XOPEN_SOURCE 500 /* for getpgid */ +#define __EXTENSIONS__ #include <sys/types.h> #include <sys/stat.h> #include <stdio.h> Thoughts? Information regarding the SmartMachine: gcc (GCC) 3.4.3 (csl-sol210-3_4-20050802) GNU Make 3.81 Thanks, Bernard ------------------------------------------------------------------------------ Xperia(TM) PLAY It's a major breakthrough. An authentic gaming smartphone on the nation's most reliable network. And it wants your games. http://p.sf.net/sfu/verizon-sfdev _______________________________________________ Ganglia-developers mailing list Ganglia-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ganglia-developers