Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Building DBD::Oracle on Solaris and 9i 64-bit
On Wed, 11 Jun 2003 10:57:55 -0700, Big Chuck <ccarson_at_echeeba.com> wrote:
>I cannot get DBD::Oracle to build on Solaris 8 64-bit using Oracle
>9.2.0.3 64-bit.
>
>I know to change all the $ORACLE_HOME/lib to $ORACLE_HOME/lib32 and
>$ORACLE_HOME/rdbms/lib to $ORACLE_HOME/rdbms/lib32. Id id that and now I
>get this error when building:
>
>LD_RUN_PATH="/u01/app/oracle/product/9.2.0.1/lib32:/u01/app/oracle/product/9.2.0.1//rdbms/lib32"
>gcc -B/usr/ccs/bin/ -G -L/usr/local/lib Oracle.o dbdimp.o oci7.o oci8.o
>-L/opt/SUNWcluster/lib -R/opt/SUNWcluster/lib -o build
>-L/u01/app/oracle/product/9.2.0.1//rdbms/lib32/
>-L/u01/app/oracle/product/9.2.0.1/lib32/ -lclntsh -lnbeq9 -lnhost9
>-lnus9 -lnldap9 -lldapclnt9 -lnsslb9 -lnnis9 -lnoname9 -lntcp9 -lntcps9
>-lnsslb9 -lntcp9 -lntns9 -lnsl -lsocket -lgen -ldl
>-R/u01/app/oracle/product/9.2.0.1/lib32 -laio -lposix4 -lkstat -lm
>-lthread -o blib/arch/auto/DBD/Oracle/Oracle.so
>ld: warning: option -o appears more than once, first setting taken
>chmod 755 blib/arch/auto/DBD/Oracle/Oracle.so
>chmod: WARNING: can't access blib/arch/auto/DBD/Oracle/Oracle.so
>make: *** [blib/arch/auto/DBD/Oracle/Oracle.so] Error 1
>
>Any ideas?
Which version - 1.14? Some option/link changed in the Makefile at 1.13 or 1.14 that broke the build on Solaris, giving that error - there's been some messages and at least one patch on the dbi-users mailing list about this so hopefully the next version should build cleanly.
1.12 builds OK, so a workaround that I've used is to get DBD-Oracle 1.12, generate the Makefile (perl Makefile.PL etc.), do the changes to 'lib32' and then copy that Makefile into 1.14's directory. Change the versions in the Makefile from 1.12 to 1.14 - 1.14 will compile with that Makefile, and works without problems here.
-- Andy Hassall (andy@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk) Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)Received on Wed Jun 11 2003 - 14:09:45 CDT