I have not have time, to work out GCC solution for DBD-Oracle on HPUX.
And no one has submitted one to me (I have asked).  So I will ask
again... has anyone built DBD-Oracle on HPUX using GCC?  If so, would
you like to contribute to the README.hpux?

I would worry about your perl build if any of the basic tests (like grent
pwent) fail.

Lincoln


-----Original Message-----
From: Gretton, Michael , , WHS/PSD [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 06, 2001 4:08 PM
To: '[EMAIL PROTECTED]'
Subject: ** DBD Help - Please **


Hi there:

Sorry to bother you.  I know you are an "expert" at DBD/DBI Oracle and I
desperately need your assistance.  I have been reading READMEs, FAQs, and
books trying to figure this out and I am at my wit's end.  I am getting core
dumps when  I try to compile DBD in an HPUX environment using GCC (NOT CC!).
Here is my perl -V output:

Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
  Platform:
    osname=hpux, osvers=11.00, archname=PA-RISC2.0
    uname='hp-ux drdoom b.11.00 u 9000800 1671319383 unlimited-user license
'
    config_args='-Ubincompat5005 -Dcc=gcc'
    hint=previous, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=undef usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
  Compiler:
    cc='gcc', ccflags ='-fpic -L/usr/local/lib -D_HPUX_SOURCE -L/lib/pa1.1
-DUINT32_MAX_BROKEN -fno-strict-aliasing',
    optimize='-O',
    cppflags='-fpic -L/usr/local/lib -D_HPUX_SOURCE -L/lib/pa1.1
-DUINT32_MAX_BROKEN -fno-strict-aliasing'
    ccversion='', gccversion='3.0', 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=4
    alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
    libs=-lcl -lpthread -lcl -lpthread -lnsl -lnm -lndbm -ldld -lm -lc
-lndir -lcrypt -lsec
    perllibs=-lcl -lpthread -lcl -lpthread -lnsl -lnm -ldld -lm -lc -lndir
-lcrypt -lsec
    libc=/lib/libc.sl, so=sl, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=undef, ccdlflags='-Wl,-E
-Wl,-B,deferred '
    cccdlflags='-fpic', lddlflags='-b -L/usr/local/lib'


Characteristics of this binary (from libperl): 
  Compile-time options:
  Built under hpux
  Compiled at Sep  6 2001 15:27:07
  @INC:
    /opt/perl5/lib/5.6.1/PA-RISC2.0
    /opt/perl5/lib/5.6.1
    /opt/perl5/lib/site_perl/5.6.1/PA-RISC2.0
    /opt/perl5/lib/site_perl/5.6.1
    /opt/perl5/lib/site_perl

I rebuilt this based on the README.hpux that I believe you wrote.  Since +z
is not an option with GCC I was told by another fellow to try -fpic for GCC.
He describes this option as "...producing psition independent code that is
required to produce shared objects".  I am not a programmer by any means.  I
am only a Unix admin but I need to get this task done.

The make test for perl works except two failed tests grent.t and pwent.t.
Don't know why but I proceeded to install anyway.

DBI seems to install and test fine.  I get several warnings but the connect
test at the end seems to work 100 percent.

My problem comes to DBD.  It fails with core dumps everywhere.  Here are my
results:

# make test
        /opt/perl5/bin/perl -I/opt/perl5/lib/5.6.1/PA-RISC2.0
-I/opt/perl5/lib/5.6.1 /opt/perl5/lib/5.6.1/ExtUtils/xsubpp  -typemap
/opt/perl5/lib/5.6.1/ExtUtils/typemap Oracle.xs > Oracle.xsc && mv
Oracle.xsc Oracle.c
        gcc -c -I/opt/oracle/product/7.3.4/rdbms/demo
-I/opt/oracle/product/7.3.4/rdbms/public -I.
-I/opt/oracle/product/7.3.4/rdbms/demo
-I/opt/oracle/product/7.3.4/rdbms/demo
-I/opt/perl5/lib/site_perl/5.6.1/PA-RISC2.0/auto/DBI -fpic -L/usr/local/lib
-D_HPUX_SOURCE -L/lib/pa1.1 -DUINT32_MAX_BROKEN -fno-strict-aliasing -O
-DVERSION=\"1.12\"  -DXS_VERSION=\"1.12\" -fpic
-I/opt/perl5/lib/5.6.1/PA-RISC2.0/CORE  Oracle.c
        rm -f blib/arch/auto/DBD/Oracle/Oracle.sl
 
LD_RUN_PATH="/opt/oracle/product/7.3.4/lib:/opt/oracle/product/7.3.4/rdbms/l
ib" ld  -b -L/usr/local/lib Oracle.o  dbdimp.o  oci7.o  oci8.o
-L/opt/oracle/product/7.3.4/lib -L/opt/oracle/product/7.3.4/rdbms/lib
/opt/oracle/product/7.3.4/lib/libclient.a -lsqlnet -lncr -lsqlnet -lclient
-lcommon -lgeneric -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lepc
-lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lnlsrtl3 -l:libcma.sl -lcl -lm
-l:libcl.a -lm -lcore3 -l:libcma.sl -lcl -lm -l:libcl.a -L/usr/lib -o
blib/arch/auto/DBD/Oracle/Oracle.sl     
        chmod 755 blib/arch/auto/DBD/Oracle/Oracle.sl
        cp ora_explain blib/script/ora_explain
        /opt/perl5/bin/perl -I/opt/perl5/lib/5.6.1/PA-RISC2.0
-I/opt/perl5/lib/5.6.1 -MExtUtils::MakeMaker  -e "MY->fixin(shift)"
blib/script/ora_explain
        PERL_DL_NONLAZY=1 /opt/perl5/bin/perl -Iblib/arch -Iblib/lib
-I/opt/perl5/lib/5.6.1/PA-RISC2.0 -I/opt/perl5/lib/5.6.1 -e 'use
Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/base..............ok

t/general...........dubious

        Test returned status 0 (wstat 139, 0x8b)
        test program seems to have generated a core
t/long..............dubious

        Test returned status 0 (wstat 139, 0x8b)
        test program seems to have generated a core
t/ph_type...........dubious

        Test returned status 0 (wstat 139, 0x8b)
        test program seems to have generated a core
t/plsql.............dubious

        Test returned status 0 (wstat 139, 0x8b)
        test program seems to have generated a core
t/reauth............skipped test on this platform
Failed Test Status Wstat Total Fail  Failed  List of Failed
----------------------------------------------------------------------------
----
t/general.t        0   139    ??   ??       %  ??
t/long.t           0   139    ??   ??       %  ??
t/ph_type.t        0   139    ??   ??       %  ??
t/plsql.t          0   139    ??   ??       %  ??
1 test skipped.
Failed 4/6 test scripts, 33.33% okay. 0/5 subtests failed, 100.00% okay.
*** Error exit code 2

Stop.

If you can provide any assistance I would appreciate it.  I am at a total
loss.  I notice that the readme doesn't address gcc.  I suppose that might
be my biggest problem.

Thank you again, and If you need any more information on my situation, pleas
ask!  Thanks

Mike


Reply via email to