Undefined reference to `pythia6_common_address'

Hello all,

Currently trying to build AliRoot v4.02-Rev-00 with Root V4.04.02.
The compilation worked in our lab environment (SL302/gcc 3.2.3) but fails
at the CCIN2P3 with the message :

/afs/in2p3.fr/throng/alice/alioffline/alice/head-120505/root/lib/libEGPythia6.so: undefined reference to `pythia6_common_address’
collect2: ld returned 1 exit status
make[1]: *** [bin/tgt_linux/alimdc] Error 1

Looks like a ROOT problem with the Pythia library.
ROOT is build against an empty library :

ln -s ${PYTHIALIB}/LibPythia6_vide.so lib/libPythia6.so
#ln -s ${PYTHIALIB}/libPythia6.so lib/libPythia6.so
./configure linux
–enable-pythia
–with-pythia6-libdir=${ROOTSYS}/lib
–disable-globus
–disable-rfio --enable-cern

But this way of compiling ROOT and AliRoot work well usually and it did in our lab.

Any clue ?

Thanks.

Jean-Michel BARBET.

Import an uptodate version of pythia6.tar.gz. See:
root.cern.ch/root/Install.html

Rene

[quote=“brun”]Import an uptodate version of pythia6.tar.gz. See:
root.cern.ch/root/Install.html

Rene[/quote]

Thanks very much René,

Thats it, I recompiled my empty library (libPythia_vide.so) this way:

g77 -c -fPIC -fno-second-underscore tpythia6_called_from_cc.F
gcc -c -fPIC pythia6_common_address.c
gcc -c -fPIC empty.c
g77 -shared -Wl,-soname,LibPythia6.so -o LibPythia6_vide.so empty.o tpythia6_called_from_cc.o pythia6_common_address.o

and the AliRoot compilation succeeds
(but I don’t understand why I did’nt have this problem on a similar platform here
in the lab).

Jean-Michel.