Mac OSX 10.4.8 and Xpm problems with multiple ROOT versions

I am running Mac OSX 10.4.8 and using gcc-4.0.1 build 5363.

Last month I successfully installed ROOT 5.14.00c from source with relatively few problems.
last week I tried to switch over to v5.12.00f in order to test if there is an incompatibility between the newer version of root and some software written by my DAQ group for earlier versions. I switched back to 5.14.00c and installed afresh (configure->make clean->make->make install in $ROOTSYS) but although compilation succeeds, ROOT opens with the following errors (shown here for v5.12):

s01060017f2caaebf:/usr/local/cern-root/5.12 chris$ root
rootx xpm error: XpmOpenFailed


  •                                     *
    
  •    W E L C O M E  to  R O O T       *
    
  •                                     *
    
  • Version 5.12/00f 23 October 2006 *
  •                                     *
    
  • You are welcome to visit our Web site *
  •      [root.cern.ch](http://root.cern.ch)            *
    
  •                                     *
    

Compiled on 17 February 2007 for macosx with thread support.

CINT/ROOT C/C++ Interpreter version 5.16.13, June 8, 2006
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 “vector” (tmpfile):2:
*** Interpreter error recovered ***
Error: cannot open file “pair” (tmpfile):2:
*** Interpreter error recovered ***
Error: cannot open file “RtypesCint.h” (tmpfile):2:
*** Interpreter error recovered ***
root [0]

This error persists regardless of which version I compile. libX11 and libXpm are both present and referenced in the directories /usr/X11R6/lib, and the configure command is:
./configure macosx --prefix=$ROOTSYS --with-xpm-libdir=/usr/X11R6/lib

I do remember to correctly set the $ROOTSYS environment variable every time I switch between versions using the setup script:

export ROOTSYS=/usr/local/cern-root/5.14
export PATH=$PATH:$ROOTSYS/bin
export MANPATH=$MANPATH:$ROOTSYS/man
export LD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATH
export DYLD_LIBRARY_PATH=$ROOTSYS/lib:$DYLD_LIBRARY_PATH

Before compilation, this script is edited to point to the correct directory, and executed on a new log in from the shell.

Any help anyone can give would be greatly appreciated.

Hi,

please build ROOT like this:

./configure
make

–prefix and the --with-xpm-libdir should not be specified.

Cheers, Fons.

Thanks Fons,
That worked! I don’t understand why adding the prefix messes things up though?