ACLiC problem in 5.17/04

Dear all,

I have some strange problem in ROOT 5.17/04 on my SUSE 10.3 with default kernel and gcc set.

System variables are:

lap-zwe:/usr/local/root/test # echo $ROOTSYS
/usr/local/root
lap-zwe:/usr/local/root/test # echo $LD_LIBRARY_PATH
/usr/local/root/lib
lap-zwe:/usr/local/root/test # which root
/usr/local/root/bin/root
lap-zwe:/usr/local/root/test # echo $PATH
/opt/kde3/bin:/home/zwe/bin:/usr/local/bin:/usr/bin:/sbin:
/usr/sbin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:
/usr/lib/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:
/usr/lib/qt3/bin:/usr/local/root/bin

Trying to run minexam with aclic

lap-zwe:/usr/local/root/test # root -l "minexam.cxx+"
root [0]
Processing minexam.cxx+...
Info in <TUnixSystem::ACLiC>: creating shared 
library /usr/local/root/test/./minexam_cxx.so
/usr/lib/gcc/i586-suse-linux/4.2.1/../../../../i586-suse-linux/bin/ld: cannot 
find -lCore
collect2: ld returned 1 exit status
Error in <ACLiC>: Compilation failed!
Error: Function minexam() is not defined in current scope  :0:
*** Interpreter error recovered ***

Does it find libCore?

lap-zwe:/usr/local/root/test # find / -name libCore.*
/usr/local/root/lib/libCore.so.5.17
/usr/local/root/lib/libCore.rootmap
/usr/local/root/lib/libCore.so
/usr/local/root/lib/libCore.so.5

Please note that minexam compilation with g++ and root-config as below:

lap-zwe:/usr/local/root/test # root-config --cflags --glibs
-pthread -m32 -I/usr/local/root/include -L/usr/local/root/lib 
-lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree 
-lRint -lPostscript -lMatrix -lPhysics -lGui -pthread -lm -ldl 
-rdynamic

is successful!

ROOT has been configured both with and without --prefix but i’ve had the same problem. Above is the case with ROOT configured without --prefix but with $ROOTSYS

Thanks in advance!

root [0] gSystem->Load("libMinuit") root [1] .x minexam.cxx+
Rene

Rene,

your code calls the same error with “ld”. :frowning:
Any other ideas?

At this point, I am afraid that you will have to provide more information about your setup;
-which version of gcc
-did you install ROOT from source yourself?
-can you run the most basic tutorisls, eg in $ROOTSYS/tutorials/fit, can you execute
.x FittingDemo.C
.x FittingDemo.C+
-can you run tutorials in general
in $ROOTSYS/test can you run the executable minexam?

Rene

Thanks for your patience.

-which version of gcc
4.2.1

-did you install ROOT from source yourself?
Yes, from source myself.

-can you run the most basic tutorisls, eg in $ROOTSYS/tutorials/fit, can you execute
.x FittingDemo.C
.x FittingDemo.C+

I can run almost all basic tutorials without aclic.
I can’t run tutorials which use aclic.
It gives me the same error with “ld”.

-can you run tutorials in general

I can.

in $ROOTSYS/test can you run the executable minexam?

I can compile minexam with
g++ minexam.cxx root-config --cflags --glibs
a.out file runs perfectly.

Which source version did you take?
Compiling with gcc4.2 requires one of the most recent versions.
Are using the latest source from the SVN trunk? if not could you install this version?

Rene

I’ve downloaded:
ftp://root.cern.ch/root/root_v5.17.04.source.tar.gz
Builing ROOT from SVN is a really good idea, but i have some personal problems with this :frowning:
When could we expect the next ROOT version for gcc 4.2?

you can take the current SVN trunk from
ftp://root.cern.ch/root/root_v5.17.05.source.tar.gz

Rene