Rootcint compilation problem in macosx (leopard)

Hi,
I got a geant3 compilation error with root v5-20-00.
This error was not there when I was compiling geant3 with root v5-19-04.
Below you will find the error I got.
My colleague Ivana told me that a similar error was reported in this list by voeck root.cern.ch/phpBB2/viewtopic.php?t=5672
I contacted voeck but his problem appeared because when he upgraded ROOT and he forgot to delete the old source directory.
I have cross-checked that I have not mixed several root versions.

I’m under macosx leopard.
This is the configure for the root compilation
./configure macosx
–with-pythia6-uscore=SINGLE
–with-f77=gfortran --enable-globus
–enable-roofit --enable-minuit2 --enable-table
I got my gfortran from macresearch.org/node/4558

Any hint to understand the origin of this problem will be highly appreciated,
Thanks in advance,
Gines

PS. Compilation error:
TGeant3/TGeant3gu.cxx
Generating /Users/ginesmartinez/Work/Geant3/v1-9-Root-v5-20-00/tgt_macosx/TGeant3/geant3Cint.cxx
Error: cannot open file “typeinfo” /Users/ginesmartinez/Work/Root/v5-20-00/include/Rtypeinfo.h:33:
Error: Missing one of ‘
/’ expected at or after line 71.
Error: Unexpected end of file (G__fgetstream():2) /usr/include/sys/cdefs.h:495:
Error: class,struct,union or type __signed not defined /usr/include/i386/_types.h:37:
Error: class,struct,union or type __builtin_va_list not defined /usr/include/i386/_types.h:96:
Error: Symbol extern"C"{ #if __DARWIN_UNIX03 extern FILE*__stdinp is not defined in current scope /usr/include/stdio.h:167:
Error: Symbol type_info is not defined in current scope /Users/ginesmartinez/Work/Root/v5-20-00/include/TGenericClassInfo.h:33:
Error: Symbol fInfo is not defined in current scope /Users/ginesmartinez/Work/Root/v5-20-00/include/TGenericClassInfo.h:33:
Error: cannot open file “iosfwd” /Users/ginesmartinez/Work/Root/v5-20-00/include/Riosfwd.h:34:
Error: Missing one of ‘,;{(’ expected at or after line 5.
Error: Unexpected end of file (G__fgetstream_template():2) /usr/include/stdarg.h:10:
Error: Missing one of ‘{’ expected at or after line 10.
Error: Unexpected end of file (G__fignorestream():3) /usr/include/stdarg.h:10:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TObject.h:148:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TObject.h:148:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TObject.h:148:
Error: Missing one of ‘{’ expected at or after line 96.
Error: Unexpected end of file (G__fignorestream():3) /usr/include/string.h:152:
Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TString.h:355:
Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TString.h:356:
Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TString.h:358:
Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TString.h:359:
Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TString.h:360:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TAttFill.h:48:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TAttFill.h:48:
Internal warning: SaveFillAttributes comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TAttFill.h:48:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TAttLine.h:52:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TAttLine.h:52:
Internal warning: SaveLineAttributes comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TAttLine.h:52:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TAttText.h:53:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TAttText.h:53:
Internal warning: SaveTextAttributes comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TAttText.h:53:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TAttMarker.h:49:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TAttMarker.h:49:
Internal warning: SaveMarkerAttributes comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TAttMarker.h:49:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGGC.h:110:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGGC.h:110:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGGC.h:110:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFont.h:216:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFont.h:216:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFont.h:216:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:110:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:110:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:110:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:189:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:189:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:189:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:200:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:200:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:200:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:223:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:223:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:223:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:234:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:234:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:234:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:268:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:268:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:268:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:301:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:301:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:301:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:313:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:313:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:313:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:329:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:329:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:329:
Error: cannot open file “iterator” /Users/ginesmartinez/Work/Root/v5-20-00/include/TList.h:33:
Error: no such template iteratorstd::bidirectional_iterator_tag,TObject*,std::ptrdiff_t,constTObject**,constTObject*& /Users/ginesmartinez/Work/Root/v5-20-00/include/TList.h:178:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:317:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:317:
Internal warning: SaveUserColor comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:317:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:318:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:318:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:318:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:439:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:439:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:439:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:440:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:440:
Internal warning: SavePrimitiveSubframes comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:440:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:452:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:452:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:452:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:463:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:463:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:463:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:570:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:570:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:570:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:603:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:603:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:603:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:672:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:672:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:672:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGCanvas.h:139:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGCanvas.h:139:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGCanvas.h:139:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGCanvas.h:248:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGCanvas.h:248:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGCanvas.h:248:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGListTree.h:140:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGListTree.h:143:
Syntax Error: SavePrimitive Maybe missing ‘;’ /Users/ginesmartinez/Work/Root/v5-20-00/include/TGListTree.h:143:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGListTree.h:209:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGListTree.h:209:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGListTree.h:209:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGListTree.h:292:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGListTree.h:292:
Internal warning: SaveChildren comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGListTree.h:292:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGListTree.h:457:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGListTree.h:457:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGListTree.h:457:
Error: cannot open file “algorithm” /Users/ginesmartinez/Work/Root/v5-20-00/include/TMath.h:35:
Error: Missing one of ‘,;{(’ expected at or after line 10.
Error: Unexpected end of file (G__fgetstream_template():2) /usr/include/float.h:282:
Error: Missing one of ‘{’ expected at or after line 282.
Error: Unexpected end of file (G__fignorestream():3) /usr/include/float.h:282:
Error: cannot open file “iterator” /Users/ginesmartinez/Work/Root/v5-20-00/include/TObjArray.h:30:
Error: no such template iteratorstd::bidirectional_iterator_tag,TObject*,std::ptrdiff_t,constTObject**,constTObject*& /Users/ginesmartinez/Work/Root/v5-20-00/include/TObjArray.h:114:
Warning: Error occurred during reading source files
Warning: Error occurred during dictionary source generation
!!!Removing /Users/ginesmartinez/Work/Geant3/v1-9-Root-v5-20-00/tgt_macosx/TGeant3/geant3Cint.cxx /Users/ginesmartinez/Work/Geant3/v1-9-Root-v5-20-00/tgt_macosx/TGeant3/geant3Cint.h !!!
Error: rootcint: error loading headers…
make: *** [/Users/ginesmartinez/Work/Geant3/v1-9-Root-v5-20-00/tgt_macosx/TGeant3/geant3Cint.cxx] Error 1
pb-d-128-141-42-20:v1-9-Root-v5-20-00 ginesmartinez$

Hi all,

The reason seems to be an “/” in the DYLD_LIBRARY_PATH.
I added the root library path as
${ROOTSYS}/lib/
If I remove the last “/”
${ROOTSYS}/lib
Then the compilation problem is solved.

For some reason the problem only appeared when I moved from root v5-19.04 to root v5-20.00 (and root v5-21.01-alice).
I do not know if this problem should be still reported to CINT Support forum.
In any case I would have preferred this “/” to behave as a “zero on the left” ‘:(’

If you are an aliroot user, I observed that the previous problem is correlated with the following error messages during the execution of aliroot:
nanpc450:~ ginesmartinez$ aliroot


  •                                     *
    
  •    W E L C O M E  to  R O O T       *
    
  •                                     *
    
  • Version 5.21/01 25 June 2008 *
  •                                     *
    
  • You are welcome to visit our Web site *
  •      [root.cern.ch](http://root.cern.ch)            *
    
  •                                     *
    

ROOT 5.21/01 (trunk@24531, Sep 01 2008, 12:21:00 on macosx)

CINT/ROOT C/C++ Interpreter version 5.16.29, Jan 08, 2008
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
Error: cannot open file “iostream” (tmpfile):2:
*** Interpreter error recovered ***
Error: cannot open file “_string” (tmpfile):2:
*** Interpreter error recovered ***
Error: cannot open file “RtypesCint.h” (tmpfile):2:
*** Interpreter error recovered ***
Error: cannot open file “DllImport.h” (tmpfile):2:
*** Interpreter error recovered ***
root [0]

Regards,