Operating System - Linux
1825576 Members
1953 Online
109682 Solutions
New Discussion

Building DBD::Oracle == Nightmare

 
Court Campbell
Honored Contributor

Building DBD::Oracle == Nightmare

HP-UX 11.11
Oracle 10.1.0.5
And yes I have ORACLE_HOME and LD_LIBRARY_PATH set
-------------
perl -V
Summary of my perl5 (revision 5 version 8 subversion 6) configuration:
Platform:
osname=hpux, osvers=11.11, archname=PA-RISC2.0
uname='hp-ux r3 b.11.11 u 9000800 1909236376 unlimited-user license '
config_args='-Dusedevel -Dcc=gcc -des'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-mpa-risc-2-0 -D_HPUX_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/pro/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-g -O',
cppflags='-mpa-risc-2-0 -D_HPUX_SOURCE -mpa-risc-2-0 -D_HPUX_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/pro/local/include'
ccversion='', gccversion='3.4.3', gccosandvers='hpux11.11'
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='/usr/bin/ld', ldflags ='-L/pro/local/lib'
libpth=/pro/local/lib /lib /usr/lib /usr/ccs/lib /usr/local/lib
libs=-lcl -lpthread -lnsl -lnm -lndbm -lgdbm -ldb -lmalloc -ldld -lm -lcrypt -lsec -lc
perllibs=-lcl -lpthread -lnsl -lnm -lmalloc -ldld -lm -lcrypt -lsec -lc
libc=/lib/libc.sl, so=sl, useshrplib=false, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-B,deferred '
cccdlflags='-fPIC', lddlflags='-b -L/pro/local/lib'


Characteristics of this binary (from libperl):
Compile-time options: DEBUGGING USE_LARGE_FILES
Locally applied patches:
defined-or
Built under hpux
Compiled at Nov 30 2004 08:22:28
@INC:
/opt/perl/lib/5.8.6/PA-RISC2.0
/opt/perl/lib/5.8.6
/opt/perl/lib/site_perl/5.8.6/PA-RISC2.0
/opt/perl/lib/site_perl/5.8.6
/opt/perl/lib/site_perl
.
---------------------------------------------

Here is the error when I run "make test"

Skip blib/lib/DBD/Oracle.pm (unchanged)
Skip blib/lib/DBD/mkta.pl (unchanged)
Skip blib/lib/oraperl.ph (unchanged)
Skip blib/arch/auto/DBD/Oracle/dbdimp.h (unchanged)
Skip blib/arch/auto/DBD/Oracle/ocitrace.h (unchanged)
Skip blib/lib/Oraperl.pm (unchanged)
Skip blib/arch/auto/DBD/Oracle/Oracle.h (unchanged)
Skip blib/arch/auto/DBD/Oracle/mk.pm (unchanged)
Skip blib/lib/DBD/Oracle/GetInfo.pm (unchanged)
gcc -c -I/d20/oracle/product/mbasdb/10.1.0/rdbms/public -I/d20/oracle/product/mbasdb/10.1.0/rdbms/demo -I/d20/oracle/product/mbasdb/10.1.0/rdbms/public -I/d20/oracle/product/mbasdb/10.1.0/plsql/public -I/d20/oracle/product/mbasdb/10.1.0/network/public -I/opt/perl/lib/site_perl/5.8.6/PA-RISC2.0/auto/DBI -mpa-risc-2-0 -D_HPUX_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/pro/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O -DVERSION=\"1.21\" -DXS_VERSION=\"1.21\" -fPIC "-I/opt/perl/lib/5.8.6/PA-RISC2.0/CORE" -Wall -Wno-comment -DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION=\"10.1.0.5\" Oracle.c
gcc -c -I/d20/oracle/product/mbasdb/10.1.0/rdbms/public -I/d20/oracle/product/mbasdb/10.1.0/rdbms/demo -I/d20/oracle/product/mbasdb/10.1.0/rdbms/public -I/d20/oracle/product/mbasdb/10.1.0/plsql/public -I/d20/oracle/product/mbasdb/10.1.0/network/public -I/opt/perl/lib/site_perl/5.8.6/PA-RISC2.0/auto/DBI -mpa-risc-2-0 -D_HPUX_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/pro/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O -DVERSION=\"1.21\" -DXS_VERSION=\"1.21\" -fPIC "-I/opt/perl/lib/5.8.6/PA-RISC2.0/CORE" -Wall -Wno-comment -DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION=\"10.1.0.5\" dbdimp.c
dbdimp.c: In function `createxmlfromstring':
dbdimp.c:1020: warning: passing arg 2 of `Perl_sv_2pv_flags' from incompatible pointer type
dbdimp.c: In function `ora_st_execute_array':
dbdimp.c:3269: warning: unused variable `sv2'
gcc -c -I/d20/oracle/product/mbasdb/10.1.0/rdbms/public -I/d20/oracle/product/mbasdb/10.1.0/rdbms/demo -I/d20/oracle/product/mbasdb/10.1.0/rdbms/public -I/d20/oracle/product/mbasdb/10.1.0/plsql/public -I/d20/oracle/product/mbasdb/10.1.0/network/public -I/opt/perl/lib/site_perl/5.8.6/PA-RISC2.0/auto/DBI -mpa-risc-2-0 -D_HPUX_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/pro/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O -DVERSION=\"1.21\" -DXS_VERSION=\"1.21\" -fPIC "-I/opt/perl/lib/5.8.6/PA-RISC2.0/CORE" -Wall -Wno-comment -DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION=\"10.1.0.5\" oci8.c
oci8.c: In function `get_attr_val':
oci8.c:1397: warning: passing arg 8 of `OCIIntervalToText' from incompatible pointer type
Running Mkbootstrap for DBD::Oracle ()
chmod 644 Oracle.bs
rm -f blib/arch/auto/DBD/Oracle/Oracle.sl
/usr/bin/ld -Wl,+b"/d20/oracle/product/mbasdb/10.1.0/lib32:/d20/oracle/product/mbasdb/10.1.0/rdbms/lib32" -b -L/pro/local/lib Oracle.o dbdimp.o oci8.o +s +n -L/d20/oracle/product/mbasdb/10.1.0/rdbms/lib32/ -L/d20/oracle/product/mbasdb/10.1.0/lib32/ -lclntsh `cat /d20/oracle/product/mbasdb/10.1.0/lib32/ldflags` -lm -o blib/arch/auto/DBD/Oracle/Oracle.sl
/usr/bin/ld: Unrecognized argument: -Wl,+b/d20/oracle/product/mbasdb/10.1.0/lib32:/d20/oracle/product/mbasdb/10.1.0/rdbms/lib32
/usr/bin/ld: Usage: /usr/bin/ld [options] [flags] files
*** Error exit code 1

Any ideas on what I need to make this work.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
3 REPLIES 3
Court Campbell
Honored Contributor

Re: Building DBD::Oracle == Nightmare

ok, i got it. I changed the ld options in the make file form "-Wl,+b" to just "+objdebugonly,". Now it works.

-Patting myself on the back. ;P
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Court Campbell
Honored Contributor

Re: Building DBD::Oracle == Nightmare

I found the answer to my issue.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Dennis Handly
Acclaimed Contributor

Re: Building DBD::Oracle == Nightmare

The another solution is to change: ld='/usr/bin/ld'
To: ld=gcc