[Kc] Trouble with DBD::Oracle

Kit Peters popefelix at gmail.com
Tue May 27 11:53:56 PDT 2008


Have you tried using the 10.x client libs?  You can get them for free
from Oracle.

KP

On Tue, May 27, 2008 at 1:43 PM, Daryl Fallin <darylvf at gmail.com> wrote:
> 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
> _______________________________________________
> kc mailing list
> kc at pm.org
> http://mail.pm.org/mailman/listinfo/kc
>



-- 
GPG public key fingerpint: 1A12 04B6 0C80 306A B292 14FD 2C7A 1037 F666 46A7


More information about the kc mailing list