Tuesday, February 27, 2007

[Oracle Perl DBD-oracle]/usr/bin/ld: final link failed: Bad value

gcc -shared Oracle.o dbdimp.o oci8.o -L$ORACLE_HOME/lib/ -L$ORACLE_HOME/rdbms/lib/ -lclntsh `cat $ORACLE_HOME/lib/sysliblist` -ldl -lm -lpthread -o blib/arch/auto/DBD/Oracle/Oracle.so/usr/bin/ld: $ORACLE_HOME/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 valuecollect2: ld returned 1 exit status

on 64bit


Edit "Makefile" file after " perl Makefile.PL"
remove:`cat $ORACLE_HOME/lib/sysliblist`

No comments: