Re: DBD::Oracle and HPUX

From: Mkb (mkb125_at_yahoo.com)
Date: 06/24/04


Date: Thu, 24 Jun 2004 10:08:18 -0700 (PDT)
To: "MCMULLIN, NANCY" <NANCY.MCMULLIN@DFAS.MIL>, dbi-users@perl.org

No advice, just my experience.

Also had built perl using gcc. Had a ton of trouble
trying to get it to work with gcc on HP-UX (also 11i).
 Was able to get a hold of a anci C compiler for
HP-UX. Re-built Perl and then the DBI/DBD worked like
a charm.

Sorry, other then that, nothing else to add.

mohammed

--- "MCMULLIN, NANCY" <NANCY.MCMULLIN@DFAS.MIL> wrote:
> 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:
>
=== message truncated ===

        
                
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail



Relevant Pages

  • Re: Make problem Building 64 bit Perl 5.8.8 from source on Solaris 10 with gcc 3.4.6
    ... Upgrade your gcc and get the sun code generator if you want it from SUN... ... But the reason I'm trying to compile Perl from source as 64 bit is to ... non root) on Solaris 10. ... From the INSTALL notes I found reference to the Missing Undefined ...
    (perl.dbi.users)
  • Re: What causes this 32 bit problem??
    ... I've tested your DBD::Oracle 1.20 against both PA-RISC and Itanium Machines with the 32 bit versions of 5.8.8 perl. ... The gcc 4.2.2 is the same. ... I did a file command on everything in the library links and they're all 64 bit ... *** Error exit code 1 ...
    (perl.dbi.users)
  • Re: Make problem Building 64 bit Perl 5.8.8 from source on Solaris 10 with gcc 3.4.6
    ... So I'm still trying to find a way to fix this and get Perl installed. ... Solaris 10 with gcc 3.4.6 ... my other email saying that an update to GCC was not crucial. ... compiler or make any changes to the system directories. ...
    (perl.dbi.users)
  • DBD::Informix FAILURE CLASS A gcc: language arch=v9 not recognize d
    ... The error message is: gcc: language arch=v9 not recognized ... A lot of problems I found in the dbi-users mailing list seemed simlar to this error message, but Perl, DBI where compiled with gcc and not a diffrent compiler. ... gcc: esqltest.c: linker input file unused because linking not done ...
    (perl.dbi.users)
  • AW: Problems building DBD-Oracle-1.16 on HP
    ... Looks as if gcc gets some parameters it does not understand. ... I have tried all the various incantations listed in the READMEs (perl ... Oracle version 10.2.0.2 ... Oracle.c:24: warning: 'RETVAL' might be used uninitialized in this ...
    (perl.dbi.users)