Red Hat Bugzilla – Bug 171956
Unable to link Oracle 10G R2
Last modified: 2007-11-30 17:07:21 EST
Description of problem:
Cannot link Oracle 10G R2 on x86_64. It seems to be a problem with the linker.
Version-Release number of selected component (if applicable):
Install Oracle 10G R2. At link time, it fails with:
INFO: /usr/bin/gcc -o libsrvm10.so -u
libsrvm10.so -shared /orasapp/product/10.2.0.1/srvm/lib/libsrvm10.a
INFO: asapp/product/10.2.0.1/lib/ -L/orasapp/product/10.2.0.1/srvm/lib/
/orasapp/product/10.2.0.1/rdbms/lib/config.o -ldl -lm -lpthread -lnsl
-lirc -Wl,-rpath,/orasapp/product/10.2.0.1/lib -lm -ldl -lm -lpthread
-lnsl -lirc -lm -lm -L/orasapp/product/10.2.0.1/lib
INFO: gcc: unrecognized option `-h'
R_X86_64_PC32 against `_memcpy_mem_ops_method' can not be used when
making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
Here, the -h unrecognized option is harmless. Even without it, it fails. From
what I've searched on the net, it seems that it is a bug in binutils, which has
been fixed in 2.15.94. I found the bug
http://sources.redhat.com/bugzilla/show_bug.cgi?id=679 which shows a similar
Could we please have a confirmation that this is the problem, and if so, a
I encountered this problems today on AS4 U2. The solution was to add the patch
from http://sources.redhat.com/ml/binutils/2005-01/msg00232.html to the binutils
src-rpm and rebuild. Oracle then installed without problems and seems to be working.
FYI, Oracle provides an pached (and slightly older) version of binutils, which
works as expected.