Hi,
While I was trying to build R 2.5.0 src on
Red Hat Enterprise Linux ES release 4 (Nahant Update 4)
Kernel 2.6.9-42.ELsmp on an x86_64
The following errors occurred:

gcc -std=gnu99 -shared -L/usr/local/lib64 -o lapack.so  Lapack.o
-L../../../lib -lRlapack -L../../../lib -lRblas -lg2c -lm -lgcc_s

/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/3.4.6/libg2c.a(s_cat.o):
relocation R_X86_64_32 against `a local symbol' can not be used when making
a shared object; recompile with -fPIC

/usr/lib/gcc/x86_64-redhat-linux/3.4.6/libg2c.a: could not read symbols: Bad
value

collect2: ld returned 1 exit status

make[4]: *** [lapack.so] Error 1

make[4]: Leaving directory `/home/ljiao/R-2.5.0/Build/src/modules/lapack'

make[3]: *** [R] Error 2

make[3]: Leaving directory `/home/ljiao/R-2.5.0/Build/src/modules/lapack'

make[2]: *** [R] Error 1

make[2]: Leaving directory `/home/ljiao/R-2.5.0/Build/src/modules'

make[1]: *** [R] Error 1

make[1]: Leaving directory `/home/ljiao/R-2.5.0/Build/src'

make: *** [R] Error 1
Is this a bug of GCC?
See also https://rhn.redhat.com/errata/RHBA-2006-0509.html
What can I do to proceed?

	[[alternative HTML version deleted]]

