Compilation problem

Hi ROOTers,
I have a problem in compiling the new (CVS) ROOT version on my Mac 10.3.9. I configure ROOT with

./configure macosx --enable-minuit2 --enable-roofit

then the “make” process dies with the last words

[…]
In file included from proofd/src/XProofProtUtils.cxx:28:
/usr/include/netinet/in.h:255: error: ‘in_addr_t’ is used as a type, but is not
defined as a type.
/usr/include/netinet/in.h:312: error: ‘u_char’ is used as a type, but is not
defined as a type.
/usr/include/netinet/in.h:313: error: ‘u_char’ is used as a type, but is not
defined as a type.
/usr/include/netinet/in.h:314: error: ‘u_short’ is used as a type, but is not
defined as a type.
In file included from /usr/include/netinet/in.h:518,
from proofd/src/XProofProtUtils.cxx:28:
/usr/include/netinet6/in6.h:123: error: parse error before [' token /usr/include/netinet6/in6.h:124: error: parse error before[’ token
/usr/include/netinet6/in6.h:125: error: parse error before [' token /usr/include/netinet6/in6.h:145: error: 'u_int8_t' is used as a type, but is not defined as a type. /usr/include/netinet6/in6.h:146: error: 'u_int8_t' is used as a type, but is not defined as a type. /usr/include/netinet6/in6.h:147: error: 'u_int16_t' is used as a type, but is not defined as a type. /usr/include/netinet6/in6.h:148: error: 'u_int32_t' is used as a type, but is not defined as a type. /usr/include/netinet6/in6.h:150: error: 'u_int32_t' is used as a type, but is not defined as a type. /usr/include/netinet6/in6.h:615: error: syntax error before;’ token
/usr/include/netinet6/in6.h:617: error: syntax error before (' token /usr/include/netinet6/in6.h:618: error: syntax error before(’ token
/usr/include/netinet6/in6.h:619: error: syntax error before (' token /usr/include/netinet6/in6.h:621: error: syntax error before*’ token
/usr/include/netinet6/in6.h:622: error: syntax error before (' token /usr/include/netinet6/in6.h:623: error: syntax error before(’ token
/usr/include/netinet6/in6.h:625: error: syntax error before __P' /usr/include/netinet6/in6.h:626: error: syntax error before(’ token
/usr/include/netinet6/in6.h:627: error: syntax error before (' token /usr/include/netinet6/in6.h:629: error: syntax error before(’ token
/usr/include/netinet6/in6.h:633: error: syntax error before (' token /usr/include/netinet6/in6.h:634: error: syntax error before(’ token
/usr/include/netinet6/in6.h:635: error: syntax error before (' token /usr/include/netinet6/in6.h:637: error: syntax error before(’ token
/usr/include/netinet6/in6.h:638: error: syntax error before (' token /usr/include/netinet6/in6.h:640: error: syntax error before(’ token
/usr/include/netinet6/in6.h:641: error: syntax error before (' token /usr/include/netinet6/in6.h:643: error: syntax error before(’ token
/usr/include/netinet6/in6.h:645: error: syntax error before (' token /usr/include/netinet6/in6.h:647: error: syntax error before(’ token
/usr/include/netinet6/in6.h:648: error: syntax error before __P' /usr/include/netinet6/in6.h:649: error: syntax error before(’ token
/usr/include/netinet6/in6.h:650: error: syntax error before (' token /usr/include/netinet6/in6.h:651: error: syntax error before(’ token
/usr/include/netinet6/in6.h:652: error: syntax error before (' token /usr/include/netinet6/in6.h:653: error: syntax error before(’ token
In file included from /usr/include/machine/ansi.h:33,
from /usr/include/stdlib.h:61,
from xrootd/src/xrootd/src/XrdSys/XrdSysPlatform.hh:17,
from proofd/src/XProofProtUtils.cxx:30:
/usr/include/ppc/ansi.h:93: error: syntax error before typedef' /usr/include/ppc/ansi.h:96: error: parse error before}’ token
make: *** [proofd/src/XProofProtUtils.o] Error 1

Any suggestion?

Cheers,
fabio

Hi,

we alas don’t have anymore access to a 10.3 Mac OS X machine here (plenty of 10.4 though). Could you try to fix this and let me know what works for you, so I can fix the version in cvs.

First, find the include file that defines in_addr_t and u_char, etc. and add it before the <netinet/in.h> include.

Cheers, Fons.