[ROOT] strange pb in compiling TProofServ on MacOSX.3

From: buskulic@lapp.in2p3.fr
Date: Wed Nov 19 2003 - 18:58:01 MET


Hi,

I'm trying to compile ROOT on Panther and had the following pb. Did anybody 
see this ?

lapp-dh225:~/root buskulic$ g++ -g -pipe -W -Wall -fsigned-char -fno-common 
-I/usr/X11R6/include -Iinclude  -I/sw/include  -o proof/src/TProofServ.o -c 
proof/src/TProofServ.cxx
In file included from /usr/include/pthread.h:61,
                 from /usr/include/gcc/darwin/3.3/c++/ppc-darwin/bits/gthr-
default.h:37,
                 from /usr/include/gcc/darwin/3.3/c++/ppc-darwin/bits/
gthr.h:98,
                 from /usr/include/gcc/darwin/3.3/c++/ppc-darwin/bits/
c++io.h:37,
                 from /usr/include/gcc/darwin/3.3/c++/bits/fpos.h:44,
                 from /usr/include/gcc/darwin/3.3/c++/iosfwd:49,
                 from /usr/include/gcc/darwin/3.3/c++/bits/stl_algobase.h:
70,
                 from /usr/include/gcc/darwin/3.3/c++/bits/stl_tree.h:86,
                 from /usr/include/gcc/darwin/3.3/c++/map:66,
                 from include/TProof.h:43,
                 from proof/src/TProofServ.cxx:46:
/usr/include/unistd.h:215: error: parse error before `,' token
In file included from /usr/include/gcc/darwin/3.3/c++/ppc-darwin/bits/
gthr.h:98,
                 from /usr/include/gcc/darwin/3.3/c++/ppc-darwin/bits/
c++io.h:37,
                 from /usr/include/gcc/darwin/3.3/c++/bits/fpos.h:44,
                 from /usr/include/gcc/darwin/3.3/c++/iosfwd:49,
                 from /usr/include/gcc/darwin/3.3/c++/bits/stl_algobase.h:
70,
                 from /usr/include/gcc/darwin/3.3/c++/bits/stl_tree.h:86,
                 from /usr/include/gcc/darwin/3.3/c++/map:66,
                 from include/TProof.h:43,
                 from proof/src/TProofServ.cxx:46:
/usr/include/gcc/darwin/3.3/c++/ppc-darwin/bits/gthr-default.h: In function 
`
   int flock(int, int)':
/usr/include/gcc/darwin/3.3/c++/ppc-darwin/bits/gthr-default.h:98: error: 
cannot
   declare static function inside another function
/usr/include/gcc/darwin/3.3/c++/ppc-darwin/bits/gthr-default.h: In function 
`
   int __gthread_active_p()':
...
...
...

It is a fresh install of MacOSX 10.3, with last update (10.3.1) and last 
XCode tools

Any hints ?

Damir



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET