Subject: | Failed compilation under Solaris 8 w/Oracle 9.2.0.1.0 64bit |
SunOS 5.8 Generic_108528-21 sun4u sparc SUNW,UltraAX-MP
Perl v5.8.3 built for sun4-solaris
Oracle 9.2.0.1.0 64bit (SPARC)
DBI 1.42
*Note I was able to compile with Oracle 9.2.0.1.0 32bit (SPARC)
Here is the output from the cpan build.
Show quoted text
cpan> install DBD::Oracle
CPAN: Storable loaded ok
Going to read /.cpan/Metadata
Database was generated on Wed, 02 Jun 2004 16:34:00 GMT
Running install for module DBD::Oracle
Running make for T/TI/TIMB/DBD-Oracle-1.15.tar.gz
CPAN: Digest::MD5 loaded ok
CPAN: Compress::Zlib loaded ok
Checksum for /.cpan/sources/authors/id/T/TI/TIMB/DBD-Oracle-1.15.tar.gz ok
Scanning cache /.cpan/build for sizes
DBD-Oracle-1.15/
DBD-Oracle-1.15/hints/
DBD-Oracle-1.15/hints/macos_syms.pl
DBD-Oracle-1.15/hints/svr4.pl
DBD-Oracle-1.15/hints/macos_lib.syms
DBD-Oracle-1.15/hints/dgux.pl
DBD-Oracle-1.15/hints/macos_bundle.syms
DBD-Oracle-1.15/Todo
DBD-Oracle-1.15/t/
DBD-Oracle-1.15/t/select.t
DBD-Oracle-1.15/t/cursor.t
DBD-Oracle-1.15/t/reauth.t
DBD-Oracle-1.15/t/plsql.t
DBD-Oracle-1.15/t/meta.t
DBD-Oracle-1.15/t/general.t
DBD-Oracle-1.15/t/ph_type.t
DBD-Oracle-1.15/t/long.t
DBD-Oracle-1.15/t/base.t
DBD-Oracle-1.15/lib/
DBD-Oracle-1.15/lib/DBD/
DBD-Oracle-1.15/lib/DBD/Oracle/
DBD-Oracle-1.15/lib/DBD/Oracle/GetInfo.pm
DBD-Oracle-1.15/MANIFEST
DBD-Oracle-1.15/oci8.c
DBD-Oracle-1.15/README.macosx
DBD-Oracle-1.15/Oracle.h
DBD-Oracle-1.15/ora_explain.PL
DBD-Oracle-1.15/README.wingcc
DBD-Oracle-1.15/Oracle.xs
DBD-Oracle-1.15/README.aix
DBD-Oracle-1.15/Changes
DBD-Oracle-1.15/dbdimp.c
DBD-Oracle-1.15/README.explain
DBD-Oracle-1.15/README.win32
DBD-Oracle-1.15/dbdimp.h
DBD-Oracle-1.15/Oracle.ex/
DBD-Oracle-1.15/Oracle.ex/japh
DBD-Oracle-1.15/Oracle.ex/curref.pl
DBD-Oracle-1.15/Oracle.ex/README
DBD-Oracle-1.15/Oracle.ex/ex.pl
DBD-Oracle-1.15/Oracle.ex/proc.pl
DBD-Oracle-1.15/Oracle.ex/oradump.pl
DBD-Oracle-1.15/Oracle.ex/bind.pl
DBD-Oracle-1.15/Oracle.ex/commit.pl
DBD-Oracle-1.15/Oracle.ex/mktable.pl
DBD-Oracle-1.15/Oracle.ex/sql
DBD-Oracle-1.15/Oracle.ex/tabinfo.pl
DBD-Oracle-1.15/README.longs
DBD-Oracle-1.15/oci7.c
DBD-Oracle-1.15/README
DBD-Oracle-1.15/README.sec
DBD-Oracle-1.15/test.pl
DBD-Oracle-1.15/README.login
DBD-Oracle-1.15/README.linux
DBD-Oracle-1.15/oraperl.ph
DBD-Oracle-1.15/Makefile.PL
DBD-Oracle-1.15/Oraperl.pm
DBD-Oracle-1.15/README.hpux
DBD-Oracle-1.15/README.utf8
DBD-Oracle-1.15/oci.def
DBD-Oracle-1.15/Oracle.pm
DBD-Oracle-1.15/README.help
DBD-Oracle-1.15/README.java
DBD-Oracle-1.15/ocitrace.h
DBD-Oracle-1.15/typemap
DBD-Oracle-1.15/README.clients
Removing previously used /.cpan/build/DBD-Oracle-1.15
CPAN.pm: Going to build T/TI/TIMB/DBD-Oracle-1.15.tar.gz
Using DBI 1.42 (for perl 5.008003 on sun4-solaris) installed in /usr/local/lib/perl5/site_perl/5.8.3/sun4-solaris/auto/DBI
Configuring DBD::Oracle ...
Show quoted text>>> Remember to actually *READ* the README file!
Especially if you have any problems.
Using Oracle in /u01/OraHome1
WARNING: could not decode oracle version from
/u01/OraHome1/orainst/inspdver, or /u01/OraHome1/install/unix.rgs
or from ORACLE_HOME path /u01/OraHome1.
Oracle version based logic in Makefile.PL may produce erroneous results.
Found /u01/OraHome1/rdbms/demo/demo_rdbms.mk
Found /u01/OraHome1/precomp/demo/proc/demo_proc.mk
Using /u01/OraHome1/rdbms/demo/demo_rdbms.mk
Reading /u01/OraHome1/rdbms/demo/demo_rdbms.mk
Reading /u01/OraHome1/rdbms/lib/env_rdbms.mk
Deleting ORA_NLS = $(ORACLE_HOME)/ocommon/nls/admin/data/
because it is not already set in the environment
and it can cause ORA-01019 errors.
Deleting ORA_NLS33 = $(ORACLE_HOME)/ocommon/nls/admin/data/
because it is not already set in the environment
and it can cause ORA-01019 errors.
Attempting to discover Oracle OCI build rules
gcc -B/usr/ccs/bin/ -c DBD_ORA_OBJ.c
by executing: [make -f /u01/OraHome1/rdbms/demo/demo_rdbms.mk build ECHODO=echo ECHO=echo GENCLNTSH='echo genclntsh' CC=echo OPTIMIZE= CCFLAGS= EXE=DBD_ORA_EXE OBJS=DBD_ORA_OBJ.o]
Oracle oci build command:
[-L/opt/SUNWcluster/lib -R/opt/SUNWcluster/lib -o build -L/u01/OraHome1/rdbms/lib/ -L/u01/OraHome1/lib/ -o DBD_ORA_EXE DBD_ORA_OBJ.o -lclntsh -lnbeq9 -lnhost9 -lnus9 -lnldap9 -lldapclnt9 -lnsslb9 -lnoname9 -lntcp9 -lntcps9 -lnsslb9 -lntcp9 -lntns9 -lnsl -lsocket -lgen -ldl -R/u01/OraHome1/lib -laio -lposix4 -lkstat -lm -lthread]
Found header files in rdbms/public rdbms/demo.
Checking for functioning wait.ph
System: perl5.008003 sunos 5.8 generic_108528-11 sun4u sparc sunw,ultra-5_10 solaris
Compiler: gcc -B/usr/ccs/bin/ -O -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
Linker: /usr/ccs/bin/ld
Sysliblist: -lnsl -lsocket -lgen -ldl
Oracle makefiles would have used these definitions but we override them:
CC: cc
CFLAGS: $(GFLAG) $(OPTIMIZE) $(CDEBUG) $(CCFLAGS) $(PFLAGS)\
$(SHARED_CFLAG) $(USRFLAGS)
[$(GFLAG) -xO3 $(CDEBUG) -Xa $(PROFILE) -xstrconst -dalign -xF $(XS) $(MR) -xildoff -errtags=yes -v -xarch=v9 -xchip=ultra3 -W2,-AKNR_S -Wd,-xsafe=unboundsym -Wc,-Qiselect-funcalign=32 -xcode=abs44 -Wc,-Qgsched-trace_late=1 -Wc,-Qgsched-T5 -xalias_level=weak -D_REENTRANT -DSS_64BIT_SERVER -DBIT64 -DMACHINE64 -K PIC -I/u01/OraHome1/rdbms/demo -I/u01/OraHome1/rdbms/public -I/u01/OraHome1/plsql/public -I/u01/OraHome1/network/public -DSLMXMX_ENABLE -DSLTS_ENABLE -D_SVID_GETTOD -D_REENTRANT $(LPFLAGS) $(USRFLAGS)]
LDFLAGS: -o $@ $(LDPATHFLAG)$(PRODLIBHOME) $(LDPATHFLAG)$(LIBHOME)
[-o $@ -L/u01/OraHome1/rdbms/lib/ -L$(LIBHOME)]
Linking with OTHERLDFLAGS = -L/opt/SUNWcluster/lib -R/opt/SUNWcluster/lib -L/u01/OraHome1/rdbms/lib/ -L/u01/OraHome1/lib/ -lclntsh -lnbeq9 -lnhost9 -lnus9 -lnldap9 -lldapclnt9 -lnsslb9 -lnoname9 -lntcp9 -lntcps9 -lnsslb9 -lntcp9 -lntns9 -lnsl -lsocket -lgen -ldl -R/u01/OraHome1/lib -laio -lposix4 -lkstat -lm -lthread [from 'build' rule]
Checking if your kit is complete...
Looks good
LD_RUN_PATH=/u01/OraHome1/lib:/u01/OraHome1/rdbms/lib
Using DBD::Oracle 1.15.
Using DBD::Oracle 1.15.
Using DBI 1.42 (for perl 5.008003 on sun4-solaris) installed in /usr/local/lib/perl5/site_perl/5.8.3/sun4-solaris/auto/DBI
Writing Makefile for DBD::Oracle
*** If you have problems...
read all the log printed above, and the README and README.help files.
(Of course, you have read README by now anyway, haven't you?)
cp Oracle.pm blib/lib/DBD/Oracle.pm
cp oraperl.ph blib/lib/oraperl.ph
cp dbdimp.h blib/arch/auto/DBD/Oracle/dbdimp.h
cp ocitrace.h blib/arch/auto/DBD/Oracle/ocitrace.h
cp Oraperl.pm blib/lib/Oraperl.pm
cp Oracle.h blib/arch/auto/DBD/Oracle/Oracle.h
cp lib/DBD/Oracle/GetInfo.pm blib/lib/DBD/Oracle/GetInfo.pm
cp mk.pm blib/arch/auto/DBD/Oracle/mk.pm
/usr/local/bin/perl -p -e "s/~DRIVER~/Oracle/g" /usr/local/lib/perl5/site_perl/5.8.3/sun4-solaris/auto/DBI/Driver.xst > Oracle.xsi
/usr/local/bin/perl /usr/local/lib/perl5/5.8.3/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.8.3/ExtUtils/typemap -typemap typemap Oracle.xs > Oracle.xsc && mv Oracle.xsc Oracle.c
gcc -B/usr/ccs/bin/ -c -I/u01/OraHome1/rdbms/demo -I/u01/OraHome1/rdbms/public -I/u01/OraHome1/plsql/public -I/u01/OraHome1/network/public -I/u01/OraHome1/rdbms/demo -I/u01/OraHome1/rdbms/public -I/u01/OraHome1/rdbms/demo -I/usr/local/lib/perl5/site_perl/5.8.3/sun4-solaris/auto/DBI -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.15\" -DXS_VERSION=\"1.15\" -fPIC "-I/usr/local/lib/perl5/5.8.3/sun4-solaris/CORE" -DUTF8_SUPPORT Oracle.c
gcc -B/usr/ccs/bin/ -c -I/u01/OraHome1/rdbms/demo -I/u01/OraHome1/rdbms/public -I/u01/OraHome1/plsql/public -I/u01/OraHome1/network/public -I/u01/OraHome1/rdbms/demo -I/u01/OraHome1/rdbms/public -I/u01/OraHome1/rdbms/demo -I/usr/local/lib/perl5/site_perl/5.8.3/sun4-solaris/auto/DBI -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.15\" -DXS_VERSION=\"1.15\" -fPIC "-I/usr/local/lib/perl5/5.8.3/sun4-solaris/CORE" -DUTF8_SUPPORT dbdimp.c
gcc -B/usr/ccs/bin/ -c -I/u01/OraHome1/rdbms/demo -I/u01/OraHome1/rdbms/public -I/u01/OraHome1/plsql/public -I/u01/OraHome1/network/public -I/u01/OraHome1/rdbms/demo -I/u01/OraHome1/rdbms/public -I/u01/OraHome1/rdbms/demo -I/usr/local/lib/perl5/site_perl/5.8.3/sun4-solaris/auto/DBI -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.15\" -DXS_VERSION=\"1.15\" -fPIC "-I/usr/local/lib/perl5/5.8.3/sun4-solaris/CORE" -DUTF8_SUPPORT oci7.c
gcc -B/usr/ccs/bin/ -c -I/u01/OraHome1/rdbms/demo -I/u01/OraHome1/rdbms/public -I/u01/OraHome1/plsql/public -I/u01/OraHome1/network/public -I/u01/OraHome1/rdbms/demo -I/u01/OraHome1/rdbms/public -I/u01/OraHome1/rdbms/demo -I/usr/local/lib/perl5/site_perl/5.8.3/sun4-solaris/auto/DBI -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.15\" -DXS_VERSION=\"1.15\" -fPIC "-I/usr/local/lib/perl5/5.8.3/sun4-solaris/CORE" -DUTF8_SUPPORT oci8.c
Running Mkbootstrap for DBD::Oracle ()
chmod 644 Oracle.bs
rm -f blib/arch/auto/DBD/Oracle/Oracle.so
LD_RUN_PATH="/u01/OraHome1/lib:/u01/OraHome1/rdbms/lib" 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 -L/u01/OraHome1/rdbms/lib/ -L/u01/OraHome1/lib/ -lclntsh -lnbeq9 -lnhost9 -lnus9 -lnldap9 -lldapclnt9 -lnsslb9 -lnoname9 -lntcp9 -lntcps9 -lnsslb9 -lntcp9 -lntns9 -lnsl -lsocket -lgen -ldl -R/u01/OraHome1/lib -laio -lposix4 -lkstat -lm -lthread -o blib/arch/auto/DBD/Oracle/Oracle.so
ld: fatal: file /u01/OraHome1/lib//libclntsh.so: wrong ELF class: ELFCLASS64
ld: fatal: File processing errors. No output written to blib/arch/auto/DBD/Oracle/Oracle.so
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `blib/arch/auto/DBD/Oracle/Oracle.so'
/usr/ccs/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible
Show quoted textcpan>