This is caused by trying to link 32bit perl with 64bit oracle libraries
(which live in $ORACLE_HOME/lib). What happens if you specify
$ORACLE_HOME/lib32 in your LD_LIBRARY_PATH (before any other oracle paths
which may be in there).

Q/      Does DBD::Oracle use LD_LIBRARY_PATH or assume $ORACLE_HOME/lib is the
setting for the oracle libs?

Andy

-----Original Message-----
From: Jochen Hayek [mailto:[EMAIL PROTECTED]
Sent: 27 November 2003 12:25
To: [EMAIL PROTECTED]
Subject: Re: DBD::Oracle / ORACLE_HOME="/app/local/oracle/product/9.2.0"
/ Solaris-2.8 / ...


>>>>> "BN" ==   <[EMAIL PROTECTED]> writes:

    BN> You can ignore that problem ( 92 numeric )

Aha.

    BN> Just make your perl install

Well, that's just like what I have done before,
as I first simply tried this (and I wrote that already in my first posting):

    perl -MCPAN -e 'install DBD::Oracle'

and this is how it ended:

============================================================================
====
LD_RUN_PATH="/app/local/oracle/product/9.2.0/lib:/app/local/oracle/product/9
.2.0/rdbms/lib" gcc  -G -L/usr/local/lib Oracle.o dbdimp.o oci7.o
oci8.o -L/opt/SUNWcluster/lib -R/opt/SUNWcluster/lib -o
build -L/app/local/oracle/product/9.2.0/rdbms/lib/ -L/app/local/oracle/produ
ct/9.2.0/lib/   -lclntsh -lnbeq9 -lnhost9 -lnus9 -lnldap9 -lldapclnt9 -lnssl
b9 -lnnis9 -lnoname9 -lntcp9 -lntcps9 -lnsslb9 -lntcp9 -lntns9 -lnsl -lsocke
t -lgen -ldl -R/app/local/oracle/product/9.2.0/lib -laio -lposix4 -lkstat -l
m -lthread -o blib/arch/auto/DBD/Oracle/Oracle.so
ld: warning: option -o appears more than once, first setting taken
ld: fatal: file /app/local/oracle/product/9.2.0/lib//libclntsh.so: wrong ELF
class: ELFCLASS64
ld: fatal: File processing errors. No output written to build
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/DBD/Oracle/Oracle.so] Error 1
  /app/idse22/cronus/usr/local/bin/make  -- NOT OK
============================================================================
====

and that's not so much different to my initial attempt and result -- joke!!
it is *exactly* the same, have a look:

============================================================================
====
[EMAIL PROTECTED] $ make
[...]
LD_RUN_PATH="/app/local/oracle/product/9.2.0/lib:/app/local/oracle/product/9
.2.0/rdbms/lib" gcc  -G -L/usr/local/lib Oracle.o dbdimp.o oci7.o
oci8.o -L/opt/SUNWcluster/lib -R/opt/SUNWcluster/lib -o
build -L/app/local/oracle/product/9.2.0/rdbms/lib/ -L/app/local/oracle/produ
ct/9.2.0/lib/   -lclntsh -lnbeq9 -lnhost9 -lnus9 -lnldap9 -lldapclnt9 -lnssl
b9 -lnnis9 -lnoname9 -lntcp9 -lntcps9 -lnsslb9 -lntcp9 -lntns9 -lnsl -lsocke
t -lgen -ldl -R/app/local/oracle/product/9.2.0/lib -laio -lposix4 -lkstat -l
m -lthread -o blib/arch/auto/DBD/Oracle/Oracle.so
ld: warning: option -o appears more than once, first setting taken
ld: fatal: file /app/local/oracle/product/9.2.0/lib//libclntsh.so: wrong ELF
class: ELFCLASS64
ld: fatal: File processing errors. No output written to build
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/DBD/Oracle/Oracle.so] Error 1
============================================================================
====

    BN> [...]

Should I repeat my "perl -V"?

I am still quite willing to try a lot -- if you give me hints what to try.

Cheers,
Jochen

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________


__________________________
This email and any files transmitted with it are confidential and intended solely for 
the use of the individual or entity to whom they are addressed. The contents are 
confidential and may be privileged.
Any views or opinions expressed are those of the sender and may not reflect the views 
or opinions of the company and the company accepts no liability in respect thereof.
If you have received this email in error please notify [EMAIL PROTECTED] immediately.

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Reply via email to