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): binutils-2.15.92.0.2-15 How reproducible: Install Oracle 10G R2. At link time, it fails with: INFO: /usr/bin/gcc -o libsrvm10.so -u Java_oracle_ops_mgmt_nativesystem_Native_getEnvironment -u Java_oracle_ops_mgmt_nativesystem_Native_getRDBMSVersion -u Java_oracle_ops_mgmt_nativesystem_UnixNative_startDaemon -u Java_oracle_ops_mgmt_nativesystem_UnixNative_validateRawDevice -u Java_oracle_ops_mgmt_nativesystem_UnixNative_getOracleGroup -u Java_oracle_ops_mgmt_nativesystem_UnixNative_getEffectiveGroup -h libsrvm10.so -shared /orasapp/product/10.2.0.1/srvm/lib/libsrvm10.a -L/orasapp/product/10.2.0.1/lib/ -L/or 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' INFO: / INFO: usr/bin/ld: /orasapp/product/10.2.0.1/lib//libirc.a(fast_memcpy.o): relocation 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 behaviour. Could we please have a confirmation that this is the problem, and if so, a patched binutils? Thanks, Iustin Pop
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.