On Tue, Jun 24, 2008 at 02:14:13PM -0600, Brad Nicholes wrote:
> 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++.

the u_short problem is coming from the use of g++ because they are defined
as a type and then reused as a variable name in the generated gm_protocol.h
headers :

$ g++ -fpic -I/usr/include/apr-1 -D_LARGEFILE64_SOURCE -Wall -c mod_example.c
-o mod_example.o
/usr/include/gm_protocol.h:73: error: declaration of 'u_short
Ganglia_gmetric_ushort::u_short'
/usr/include/gentoo-multilib/amd64/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/gentoo-multilib/amd64/sys/types.h:37: error: changes meaning of
'u_int' from 'typedef __u_int u_int'

that was fixed in trunk :

  Committed revision 1464

but it is not the only code that is not C++ clean either :

mod_example.c:119: error: redefinition of 'mmodule example_module'
mod_example.c:42: error: 'mmodule example_module' previously declared here

Carlo

-------------------------------------------------------------------------
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

Reply via email to