DBD::Oracle and HPUX

From: Nancy McMullin (NANCY.MCMULLIN_at_DFAS.MIL)
Date: 06/24/04


Date: Thu, 24 Jun 2004 10:27:03 -0600
To: <dbi-users@perl.org>


        I've been looking at tons of help files regarding HPUX and DBD for Oracle and it seems that it is Extremely painful to make it work. My question is - has anyone out there been successful with installing DBD::Oracle on HPUX 11i? If so, can you provide any helpful tips?
Since my message below - I ran Makefile with the -l flag (to bypass the linking errors) and it made it to the "make test" phase. The test fails 8/9 scripts.

Any hints at all would be greatly appreciated!
Thanks much.
Nancy

-----Original Message-----
From: MCMULLIN, NANCY [mailto:NANCY.MCMULLIN@dfas.mil]
Sent: Wednesday, June 23, 2004 3:15 PM
To: dbi-users@perl.org
Subject: DBD install error

Hi there.
     Need a little help, please.
We're attempting to install DBD on HPUX 11i and are receiving the errors:
gcc: +s: No such file or directory
gcc: +n: No such file or directory
- We have successfully installed DBI. (it seems)
- Seemed to be successful on Makefile.pl for DBD.
- Upon the make command we get an error.
(Note: I think we need to use gcc because that's how Perl was compiled...)

The make output follows:
##########################
>make
cp Oracle.pm blib/lib/DBD/Oracle.pm
cp Oracle.h blib/arch/auto/DBD/Oracle/Oracle.h
cp dbdimp.h blib/arch/auto/DBD/Oracle/dbdimp.h
cp oraperl.ph blib/lib/oraperl.ph
cp ocitrace.h blib/arch/auto/DBD/Oracle/ocitrace.h
cp Oraperl.pm blib/lib/Oraperl.pm
cp mk.pm blib/arch/auto/DBD/Oracle/mk.pm
cp lib/DBD/Oracle/GetInfo.pm blib/lib/DBD/Oracle/GetInfo.pm
        /usr/bin/perl -p -e "s/~DRIVER~/Oracle/g" < /opt/perl/lib/site_perl/5.8.0/PA-RISC1.1-thread-multi/auto/DBI/Driver.xst > Oracle.xsi
        /usr/bin/perl /opt/perl/lib/5.8.0/ExtUtils/xsubpp -typemap /opt/perl/lib/5.8.0/ExtUtils/typemap -typemap typemap Oracle.xs > Oracle.xsc && mv Oracle.xsc Oracle.c
        gcc -c -I/dora01/app/oracle/product/9.2.0/rdbms/demo -I/dora01/app/oracle/product/9.2.0/rdbms/public -I/dora01/app/oracle/product/9.2.0/plsql/public -I/dora01/app/oracle/product/9.2.0/network/public -I/dora01/app/oracle/product/9.2.0/rdbms/demo -I/dora01/app/oracle/product/9.2.0/rdbms/public -I/dora01/app/oracle/product/9.2.0/rdbms/demo -I/opt/perl/lib/site_perl/5.8.0/PA-RISC1.1-thread-multi/auto/DBI -D_POSIX_C_SOURCE=199506L -D_REENTRANT -D_HPUX_SOURCE -fPIC -mpa-risc-1-1 -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.15\" -DXS_VERSION=\"1.15\" -fPIC "-I/opt/perl/lib/5.8.0/PA-RISC1.1-thread-multi/CORE" -DUTF8_SUPPORT Oracle.c
        gcc -c -I/dora01/app/oracle/product/9.2.0/rdbms/demo -I/dora01/app/oracle/product/9.2.0/rdbms/public -I/dora01/app/oracle/product/9.2.0/plsql/public -I/dora01/app/oracle/product/9.2.0/network/public -I/dora01/app/oracle/product/9.2.0/rdbms/demo -I/dora01/app/oracle/product/9.2.0/rdbms/public -I/dora01/app/oracle/product/9.2.0/rdbms/demo -I/opt/perl/lib/site_perl/5.8.0/PA-RISC1.1-thread-multi/auto/DBI -D_POSIX_C_SOURCE=199506L -D_REENTRANT -D_HPUX_SOURCE -fPIC -mpa-risc-1-1 -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.15\" -DXS_VERSION=\"1.15\" -fPIC "-I/opt/perl/lib/5.8.0/PA-RISC1.1-thread-multi/CORE" -DUTF8_SUPPORT dbdimp.c
        gcc -c -I/dora01/app/oracle/product/9.2.0/rdbms/demo -I/dora01/app/oracle/product/9.2.0/rdbms/public -I/dora01/app/oracle/product/9.2.0/plsql/public -I/dora01/app/oracle/product/9.2.0/network/public -I/dora01/app/oracle/product/9.2.0/rdbms/demo -I/dora01/app/oracle/product/9.2.0/rdbms/public -I/dora01/app/oracle/product/9.2.0/rdbms/demo -I/opt/perl/lib/site_perl/5.8.0/PA-RISC1.1-thread-multi/auto/DBI -D_POSIX_C_SOURCE=199506L -D_REENTRANT -D_HPUX_SOURCE -fPIC -mpa-risc-1-1 -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.15\" -DXS_VERSION=\"1.15\" -fPIC "-I/opt/perl/lib/5.8.0/PA-RISC1.1-thread-multi/CORE" -DUTF8_SUPPORT oci7.c
        gcc -c -I/dora01/app/oracle/product/9.2.0/rdbms/demo -I/dora01/app/oracle/product/9.2.0/rdbms/public -I/dora01/app/oracle/product/9.2.0/plsql/public -I/dora01/app/oracle/product/9.2.0/network/public -I/dora01/app/oracle/product/9.2.0/rdbms/demo -I/dora01/app/oracle/product/9.2.0/rdbms/public -I/dora01/app/oracle/product/9.2.0/rdbms/demo -I/opt/perl/lib/site_perl/5.8.0/PA-RISC1.1-thread-multi/auto/DBI -D_POSIX_C_SOURCE=199506L -D_REENTRANT -D_HPUX_SOURCE -fPIC -mpa-risc-1-1 -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.15\" -DXS_VERSION=\"1.15\" -fPIC "-I/opt/perl/lib/5.8.0/PA-RISC1.1-thread-multi/CORE" -DUTF8_SUPPORT oci8.c
Running Mkbootstrap for DBD::Oracle ()
        chmod 644 Oracle.bs
        rm -f blib/arch/auto/DBD/Oracle/Oracle.sl
        LD_RUN_PATH="/dora01/app/oracle/product/9.2.0/lib32:/dora01/app/oracle/product/9.2.0/rdbms/lib32" gcc -shared -static-libgcc -fPIC Oracle.o dbdimp.o oci7.o oci8.o +s +n -L/dora01/app/oracle/product/9.2.0/rdbms/lib32/ -L/dora01/app/oracle/product/9.2.0/lib32/ -lclntsh -lnbeq9 -lnhost9 -lnus9 -lnldap9 -lldapclnt9 -lnsslb9 -lnoname9 -lntcp9 -lntcps9 -lnsslb9 -lntcp9 -lntns9 -l:libcl.sl -l:librt.sl -lpthread -l:libnss_dns.1 -l:libdld.sl -lm -o blib/arch/auto/DBD/Oracle/Oracle.sl
gcc: +s: No such file or directory
gcc: +n: No such file or directory
*** Error exit code 1

##########################
gcc version 3.2
perl -V :
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
  Platform:
    osname=hpux, osvers=11.00, archname=PA-RISC1.1-thread-multi
    uname='hp-ux bertha b.11.00 u 9000800 136901587 unlimited-user license '
    config_args='-des -Dcc=gcc -Dcf_by=ActiveState -Dcf_email=ActivePerl@ActiveState.com -Uinstallusrbinperl -Ud_sigsetjmp -Dusethreads -Duseithreads -Ulocincpth= -Uloclibpth= -Accflags=-fPIC -Dd_attribut=undef -Dcccdlflags=-fPIC -Darchname=PA-RISC1.1 -Duselargefiles -Accflags=-mpa-risc-1-1 -Dprefix=/opt/perl'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-D_POSIX_C_SOURCE=199506L -D_REENTRANT -D_HPUX_SOURCE -fPIC -mpa-risc-1-1 -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O',
    cppflags='-D_HPUX_SOURCE -D_POSIX_C_SOURCE=199506L -D_REENTRANT -D_HPUX_SOURCE -fPIC -mpa-risc-1-1 -fno-strict-aliasing'
    ccversion='', gccversion='3.2 20020708 (experimental)', gccosandvers='hpux11.00'
    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='gcc', ldflags =''
    libpth=/lib /usr/lib /usr/ccs/lib /usr/local/lib
    libs=-lnsl -lnm -lndbm -lmalloc -ldld -lm -lndir -lcrypt -lsec -lpthread
    perllibs=-lnsl -lnm -lmalloc -ldld -lm -lndir -lcrypt -lsec -lpthread
    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='-shared -static-libgcc -fPIC'
Characteristics of this binary (from libperl):
  Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
  Locally applied patches:
        ActivePerl Build 803
  Built under hpux
  Compiled at Nov 25 2002 19:24:31
  @INC:
    /opt/perl/lib/5.8.0/PA-RISC1.1-thread-multi
    /opt/perl/lib/5.8.0
    /opt/perl/lib/site_perl/5.8.0/PA-RISC1.1-thread-multi
    /opt/perl/lib/site_perl/5.8.0
    /opt/perl/lib/site_perl
#################################################
    .



Relevant Pages

  • Re: [SLE] Problems with kxdocker
    ... I am attempting to install kxdocker in SuSE10.1 under KDE.. ... checking for gcc... ... checking for C compiler default output file name... ... checking how to recognise dependent libraries... ...
    (SuSE)
  • installing X libraries?? -- need your help!
    ... Then I tried to install a kdm theme called "QtCurve- ... checking for gcc... ... checking for C compiler default output file name... ... checking how to recognise dependent libraries... ...
    (Debian-User)
  • [SLE] Problems with kxdocker
    ... I am attempting to install kxdocker in SuSE10.1 under KDE.. ... checking for gcc... ... checking for C compiler default output file name... ... checking how to recognise dependent libraries... ...
    (SuSE)
  • Problems installing Aide-0.9 on YDL 3.0 - PPC Mac
    ... checking for gcc... ... checking for ushort typedef... ... Install it or try --without-zlib. ...
    (comp.os.linux.security)
  • Re: Koffice
    ... checking for -p flag to install... ... checking for gcc... ... checking for C compiler default output file name... ... checking whether the gcc linker supports shared libraries... ...
    (Ubuntu)