You will need to figure out where the u_short conflict is coming from. My first guess would be to use gcc rather than g++.
Brad >>> On 6/7/2008 at 8:35 PM, in message <[EMAIL PROTECTED]>, "Fábio Firmo" <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I'm about to introduce Ganglia in a project to take care of the > monitoring of clusters. We need to know the cpu and memory usage for > some specifics processes, so I'm trying to write a C module for gmond > to do this. > I've installed ganglia 3.1.0.1361 snapshot (devel, libganglia and > gmond), but the mod_example doesn't compiles. Here the error: > > $ g++ mod_example.c -I/usr/include/apr-1/ #there's a problem finding > apr.h, so the need for -I > In file included from /usr/include/gm_metric.h:7, > from mod_example.c:33: > /usr/include/gm_protocol.h:73: error: declaration of 'u_short > Ganglia_gmetric_ushort::u_short' > /usr/include/sys/types.h:36: error: changes meaning of 'u_short' from > 'typedef __u_short u_short' > /usr/include/gm_protocol.h:94: error: declaration of 'u_int > Ganglia_gmetric_uint::u_int' > /usr/include/sys/types.h:37: error: changes meaning of 'u_int' from > 'typedef __u_int u_int' > mod_example.c:117: warning: deprecated conversion from string constant > to 'char*' > mod_example.c:117: warning: deprecated conversion from string constant > to 'char*' > mod_example.c:117: warning: deprecated conversion from string constant > to 'char*' > mod_example.c:117: warning: deprecated conversion from string constant > to 'char*' > mod_example.c:117: warning: deprecated conversion from string constant > to 'char*' > mod_example.c:117: warning: deprecated conversion from string constant > to 'char*' > mod_example.c:117: warning: deprecated conversion from string constant > to 'char*' > mod_example.c:117: warning: deprecated conversion from string constant > to 'char*' > mod_example.c:117: warning: deprecated conversion from string constant > to 'char*' > mod_example.c:117: warning: deprecated conversion from string constant > to 'char*' > mod_example.c:119: error: redefinition of 'mmodule example_module' > mod_example.c:42: error: 'mmodule example_module' previously declared here > > Can someone help me? > > Thanks in advance, > Fábio > > ------------------------------------------------------------------------- > 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-general mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ganglia-general ------------------------------------------------------------------------- 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-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ganglia-general

