[ROOT] Re: MacOSX 10.3 (Panther) , compile issue with TProofServ.cxx

From: Edmond Offermann (edmondoffermann@yahoo.com)
Date: Thu Oct 30 2003 - 16:57:45 MET


Oops, lazy me
looking in TProofServ.cxx. The solution is obvious

   37 //#if (defined(__FreeBSD__) && (__FreeBSD__ <
4)) || defined(__APPLE__)
     38 #if (defined(__FreeBSD__) && (__FreeBSD__ <
4))

After this change Root compiles fine and my
root marks increase 25% :
G4 1.42 Ghz 1Gb Ram g++3.3

fatman:~/src/ROOT/root-3.10.00/test> ./stress
******************************************************************
*  Starting  R O O T - S T R E S S test suite with
1000 events
******************************************************************
Test  1 : Functions, Random Numbers, Histogram
Fits............. OK
Test  2 : Check size & compression factor of a Root
file........ OK
Test  3 : Purge, Reuse of gaps in
TFile......................... OK
Test  4 : Test of 2-d histograms, functions, 2-d
fits........... OK
Test  5 : Test graphics &
Postscript............................ OK
Test  6 : Test subdirectories in a Root
file.................... OK
Test  7 : TNtuple, selections, TCut, TCutG,
TEventList.......... OK
Test  8 : Trees split and compression
modes..................... OK
Test  9 : Analyze Event.root file of stress
8................... OK
Test 10 : Create 10 files starting from
Event.root.............. OK
Test 11 : Test chains of Trees using the 10
files............... OK
Test 12 : Compare histograms of test 9 and
11................... OK
Test 13 : Test merging files of a
chain......................... OK
Test 14 : Check correct rebuilt of Event.root in test
13........ OK
Test 15 : Divert Tree branches to separate
files................ OK
Test 16 : CINT test (3 nested loops) with LHCb
trigger.......... OK
******************************************************************
*  Darwin fatman.local 7.0.0 Darwin Kernel Version
7.0.0: Wed 
******************************************************************
stress    : Total I/O =  705.1 Mbytes, I =  536.7, O =
168.4
stress    : Compr I/O =  558.4 Mbytes, I =  426.6, O =
131.8
stress    : Real Time =  71.74 seconds Cpu Time = 
69.64 seconds
******************************************************************
*  ROOTMARKS = 524.9   *  Root3.10/01   20031030/945
******************************************************************

some Panther installation pointers:

1) Install MacOSX panther and the Xcode tools.
   I chose in "customize" also to install
   the X11 stuff
2) Upgraded my fink stuff .
   No prisoners here, did rm -rf /sw .
   bootstrapped from the fink-0.6.0-full.tar.gz
   source .
3) installed some other goodies through
   fink install xdvi

--- Edmond Offermann <edmondoffermann@yahoo.com>
wrote:
> Dear all,
> 
> Made a (smooth) jump to MacOSX 10.3 Panther but
> got a problem with the compilation of
> ROOT Version 3.10/01 (and the cvs version of today)
> in TProofServ.cxx, see below.
> Anybody solved this already ?
> 
> compiler specs:
> ~/tmp> g++ -v
> Reading specs from
> /usr/libexec/gcc/darwin/ppc/3.3/specs
> Thread model: posix
> gcc version 3.3 20030304 (Apple Computer, Inc. build
> 1495)
> 
> error message:
> 
> g++ -O -pipe -W -Wall -fsigned-char -fno-common
> -I/usr/X11R6/include -Iinclude -DHAVE_CONFIG
> -I/Users/eddyo/include/root-3.10.00/ 
> -DPower_Macintosh -DDarwin -w  -pipe -fsigned-char
> -fno-common -fsigned-char      -g  -I./     
> -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 include/Riosfwd.h:23,
>                  from include/TObject.h:40,
>                  from include/TApplication.h:29,
>                  from include/TProofServ.h:28,
>                  from proof/src/TProofServ.cxx:44:
> /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 include/Riosfwd.h:23,
>                  from include/TObject.h:40,
>                  from include/TApplication.h:29,
>                  from include/TProofServ.h:28,
>                  from proof/src/TProofServ.cxx:44:
>
/usr/include/gcc/darwin/3.3/c++/ppc-darwin/bits/gthr-default.h:
> In function `
>    int flock(int, int)':
> 
> 



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