Re: [fluka-discuss]: linking problem with ROOT 'TVersionCheck::TVersionCheck(int)'

From: Luigi Salvatore Esposito <luigi.salvatore.esposito_at_cern.ch>
Date: Tue, 15 Sep 2015 12:37:55 +0000

Paolo,
FLUKA and ROOT are two independent softwares and there is no support in either way.
If you downloaded the FLUKA/ROOT example from the FLUKA website, be aware that it is quite old and could be outdated.
However, the error message points to some configuration/installation issues,
since the compiler should normally be able to locate the TVersionCheck header file in $ROOTSYS/include
Best regards, luigi

On 15 Sep 2015, at 12:55, paolo.dicarolo_at_fi.infn.it<mailto:paolo.dicarolo_at_fi.infn.it> wrote:

Dear FLUKA users,

I'm trying to compile rootfluka on my 64bit Fedora 21, with 32bit fluka and 32bit ROOT,
but a problem occurred:

[dicarolo_at_leased-6-078 FROOT]$source Run.sh
/home/dicarolo/FLUKA32/flutil/lfluka -o rootfluka -m fluka usrini.o usrout.o mgdraw.o FluLib.o libResults.so
$FLUPRO = /home/dicarolo/FLUKA32
now linking
/home/dicarolo/FLUKA32
g77
ar x /home/dicarolo/FLUKA32/libflukahp.a fluka.o
g77 -m32 -mcpu=pentiumpro -O3 -g -fexpensive-optimizations -funroll-loops -fstrength-reduce -Wall -fno-automatic -fno-silent -ffortran-bounds-check -I/home/dicarolo/FLUKA32/flukapro -v -o rootfluka -Xlinker -Map -Xlinker rootfluka.map fluka.o usrini.o usrout.o mgdraw.o FluLib.o libResults.so -L/home/dicarolo/FLUKA32 -lflukahp
Driving: g77 -m32 -mcpu=pentiumpro -O3 -g -fexpensive-optimizations -funroll-loops -fstrength-reduce -Wall -fno-automatic -fno-silent -ffortran-bounds-check -I/home/dicarolo/FLUKA32/flukapro -v -o rootfluka -Xlinker -Map -Xlinker rootfluka.map fluka.o usrini.o usrout.o mgdraw.o FluLib.o libResults.so -L/home/dicarolo/FLUKA32 -lflukahp -lfrtbegin -lg2c -lm -shared-libgcc
Reading specs from /usr/lib/gcc/x86_64-redhat-linux/3.4.6/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,f77 --disable-libgcj --host=x86_64-redhat-linux
Thread model: posix
gcc version 3.4.6 20060404 (Red Hat 3.4.6-34.fc21)
/usr/libexec/gcc/x86_64-redhat-linux/3.4.6/collect2 --eh-frame-hdr -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o rootfluka /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib/crt1.o /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib/crti.o /usr/lib/gcc/x86_64-redhat-linux/3.4.6/32/crtbegin.o -L/home/dicarolo/FLUKA32 -L. -L/home/dicarolo/root/root//bin/../lib -L/home/dicarolo/root/root//bin -L/home/dicarolo/root/root//include/../lib -L/home/dicarolo/root/root//include -L/home/dicarolo/root/root//lib/../lib -L/home/dicarolo/root/root//lib -L/home/dicarolo/root/root//lib/../lib -L/home/dicarolo/root/root//lib -L/home/dicarolo/root/root//include/../lib -L/home/dicarolo/root/root//include -L/home/dicarolo/flukawork/FROOT -L/home/dicarolo/root/root//bin/../lib -L/home/dicarolo/root/root//bin -L/home/dicarolo/root/root//include/../lib -L/home/dicarolo/root/root//include -L/home/dicarolo/root/root//lib/../lib -L/home/dicarolo/root/root//lib -L/home/dicarolo/root/root//lib/../lib -L/home/dicarolo/root/root//lib -L/home/dicarolo/root/root//include/../lib -L/home/dicarolo/root/root//include -L/home/dicarolo/flukawork/FROOT -L/home/dicarolo/root/root//bin/../lib -L/home/dicarolo/root/root//bin -L/home/dicarolo/root/root//include/../lib -L/home/dicarolo/root/root//include -L/home/dicarolo/root/root//lib/../lib -L/home/dicarolo/root/root//lib -L/home/dicarolo/root/root//lib/../lib -L/home/dicarolo/root/root//lib -L/home/dicarolo/root/root//include/../lib -L/home/dicarolo/root/root//include -L/home/dicarolo/flukawork/FROOT -L/home/dicarolo/root/root//bin/../lib -L/home/dicarolo/root/root//bin -L/home/dicarolo/root/root//include/../lib -L/home/dicarolo/root/root//include -L/home/dicarolo/root/root//lib/../lib -L/home/dicarolo/root/root//lib -L/home/dicarolo/root/root//lib/../lib -L/home/dicarolo/root/root//lib -L/home/dicarolo/root/root//include/../lib -L/home/dicarolo/root/root//include -L/home/dicarolo/flukawork/FROOT -L/home/dicarolo/root/root//bin/../lib -L/home/dicarolo/root/root//bin -L/home/dicarolo/root/root//include/../lib -L/home/dicarolo/root/root//include -L/home/dicarolo/root/root//lib/../lib -L/home/dicarolo/root/root//lib -L/home/dicarolo/root/root//lib/../lib -L/home/dicarolo/root/root//lib -L/home/dicarolo/root/root//include/../lib -L/home/dicarolo/root/root//include -L/home/dicarolo/flukawork/FROOT -L/home/dicarolo/root/root//bin/../lib -L/home/dicarolo/root/root//bin -L/home/dicarolo/root/root//include/../lib -L/home/dicarolo/root/root//include -L/home/dicarolo/root/root//lib/../lib -L/home/dicarolo/root/root//lib -L/home/dicarolo/root/root//lib/../lib -L/home/dicarolo/root/root//lib -L/home/dicarolo/root/root//include/../lib -L/home/dicarolo/root/root//include -L/home/dicarolo/flukawork/FROOT -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6/32 -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6 -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6/32 -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6 -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../.. -L/lib/../lib -L/usr/lib/../lib -Map rootfluka.map fluka.o usrini.o usrout.o mgdraw.o FluLib.o libResults.so -lflukahp -lfrtbegin -lg2c -lm -lgcc_s_32 -lgcc -lc -lgcc_s_32 -lgcc /usr/lib/gcc/x86_64-redhat-linux/3.4.6/32/crtend.o /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib/crtn.o
/usr/bin/ld: FluLib.o: undefined reference to symbol 'TVersionCheck::TVersionCheck(int)'
/home/dicarolo/root/root/lib/libCore.so: error adding symbols: DSO missing from command line
collect2: ld returned 1 exit status

Best Regards

P.R. Dicarolo
--
Paolo R. Dicarolo
INFN di Firenze
Dip. Fisica Sperimentale
Stanza 115
Tel 055/4572683
<Run.sh>
__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Tue Sep 15 2015 - 15:59:13 CEST

This archive was generated by hypermail 2.3.0 : Tue Sep 15 2015 - 15:59:14 CEST