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))
I’m not sure if this is because of the library version
Could you identify the version of ROOT you are trying to install?
if older than 5.20, please try with 5.20
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
For reference, see the following email thread and bug report.