Compile error: undefined reference to `loc_'

Hi all,

I met this error when I compiled root in cluster,

lib/libminicern.so: undefined reference to `loc_'
collect2: ld returned 1 exit status
make: *** [bin/h2root] Error 1
rm core/utils/src/RStl_tmp.cxx core/utils/src/rootcint_tmp.cxx

the linux version is : gcc version 4.0.2 20051125 (Red Hat 4.0.2-8))
x86_64 GNU/Linux

I’m not sure if this is because of the library version

Thanks,

Dan

Could you identify the version of ROOT you are trying to install?
if older than 5.20, please try with 5.20

Rene

I also encountered this error.

ROOT version: v5.20.00
Platform: 64 bit Linux Fedora Core 4
gcc version: gcc (GCC) 4.0.2 20051125 (Red Hat 4.0.2-8)
gfortran version: GNU Fortran 95 (GCC 4.0.2 20051125 (Red Hat 4.0.2-8))

It looks like this may be because versions of gfortran prior to 4.2
do not support the LOC command, which appears on lines 4216 and 4223
of misc/minicern/src/kernlib.f.

For reference, see the following email thread and bug report.

http://gcc.gnu.org/ml/fortran/2005-07/msg00006.html

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22282