[Kc] Trouble with DBD::Oracle

Daryl Fallin darylvf at gmail.com
Tue May 27 11:43:36 PDT 2008


All -

I am trying to install DBD::Oracle and have run into the following problem.

After I run 'perl Makefile.PL' (which completes successfully)
I try and run 'make' and get the following error.

# make
rm -f blib/arch/auto/DBD/Oracle/Oracle.so
LD_RUN_PATH="/home/daryl/app/daryl/product/11.1.0/client_1/lib:/home/daryl/app/daryl/product/11.1.0/client_1/rdbms/lib"
cc  -shared -L/usr/local/lib64 Oracle.o dbdimp.o oci8.o -m32
-L/home/daryl/app/daryl/product/11.1.0/client_1//rdbms//lib32/
-L/home/daryl/app/daryl/product/11.1.0/client_1//lib32/
-L/home/daryl/app/daryl/product/11.1.0/client_1//lib32/stubs/
-lclntsh   `cat
/home/daryl/app/daryl/product/11.1.0/client_1//lib/sysliblist` -ldl
-lm  -lpthread -o blib/arch/auto/DBD/Oracle/Oracle.so  \
                \

/usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld:
cannot find -lclntsh
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/DBD/Oracle/Oracle.so] Error 1

Then from the DBD readme files I have tried the following

run $ORACLE_HOME/bin/genclntsh

# ./bin/genclntsh
/usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld:
skipping incompatible /usr/lib64/gcc/x86_64-suse-linux/4.2.1/libgcc.a
when searching for -lgcc
/usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld:
cannot find -lgcc
collect2: ld returned 1 exit status
genclntsh: Failed to link libclntsh.so.11.1

I have tried to modify genclntsh to include the correct c libs problem
by modifying SYSLIBS, but they all fail

Ones I have tried
============
SYSLIBS="-Wl,-relax `cat ${OLIB}/sysliblist` -lc ${LAIO}"

SYSLIBS="-Wl,-relax `cat ${OLIB}/sysliblist` -lc ${LAIO}
-L/usr/lib/gcc/i586-suse-linux/2.95.3 -lgcc"

SYSLIBS="-Wl,-relax `cat ${OLIB}/sysliblist` -lc ${LAIO}
-L/usr//lib64/gcc/x86_64-suse-linux/4.2.1/ -lgcc"

SYSLIBS="-L/usr/lib/gcc/i586-suse-linux/2.95.3 -lgcc"


Any help would be appreciated.

- Daryl


More information about the kc mailing list