On Mon, Jun 23, 2008 at 05:15:42AM -0500, Carlo Marcelo Arenas Belon wrote:
> On Sun, Jun 22, 2008 at 09:10:41PM -0500, Carlo Marcelo Arenas Belon wrote:
> > 
> > * apparently not able to use C99 with GNU extensions :
> > 
> > i486-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..    -O0 -I../lib
> > -I../gmond -I../include  -02 -Wall -fno-strict-aliasing -Wall -D_REENTRANT 
> > -MT
> > type_hash.o -MD -MP -MF .deps/type_hash.Tpo -c -o type_hash.o type_hash.c
> > i486-linux-gnu-gcc: unrecognized option '-02'
> > type_hash.c:90: warning: C99 inline functions are not supported; using GNU89
> > type_hash.c:90: warning: to disable this warning use -fgnu89-inline or the
> > gnu_inline function attribute
> 
> reproduced this with an x86/amd64 lenny installation and also with fedora 9.
> it is a real warning that is probably not worded correctly and will be
> triggered with gcc>=4.2 because the inline functions that were generated by
> gperf are not static and therefore per C99 are not to be inlined as explained
> here :
> 
>   http://gcc.gnu.org/ml/gcc-patches/2007-03/msg00702.html

There are more major inline function problems when using gcc >=4.3:

i486-linux-gnu-gcc -std=gnu99 -O0 -I../lib -I../gmond -I../include -O2 
-Wall -funit-at-a-time -fno-strict-aliasing -Wall -D_REENTRANT -o 
.libs/gmetad gmetad.o cmdline.o data_thread.o server.o process_xml.o 
rrd_helpers.o conf.o type_hash.o xml_hash.o cleanup.o  -L/usr/lib 
-L/net/nightshade/home/stu/src/ganglia/ganglia-3.1.0~r1443/lib/.libs 
/net/nightshade/home/stu/src/ganglia/ganglia-3.1.0~r1443/lib/.libs/libganglia.so
 
/usr/lib/librrd.so -lm -ldl -lnsl /usr/lib/libexpat.so 
/usr/lib/libconfuse.so /usr/lib/libapr-1.so -lpthread
gmetad.o: In function 'write_root_summary':
gmetad.c:(.text+0x78f): undefined reference to 'in_type_list'
gmetad.o: In function 'sum_metrics':
gmetad.c:(.text+0x8a6): undefined reference to 'in_type_list'
server.o: In function 'metric_summary':
server.c:(.text+0x990): undefined reference to 'in_type_list'
process_xml.o: In function 'end':
process_xml.c:(.text+0x17e): undefined reference to 'in_xml_list'
process_xml.o: In function 'finish_processing_source':
process_xml.c:(.text+0x2e8): undefined reference to 'in_type_list'


The undefined reference problems seem to be down to:

http://gcc.gnu.org/gcc-4.3/porting_to.html

I've used -fgnu89-inline for now and it seems to haave worked.

Stu
-- 
>From the prompt of Stu Teasdale

We're only in it for the volume.
                -- Black Sabbath

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Ganglia-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-developers

Reply via email to