Finally got the DBD::Oracle 1.06 to work on HP-UX 11 system using gcc. 

However, I had to go back a version for both Perl and DBI from the latest
stable releases to 5.6.0 and 1.14 respectively.

Tried Perl 5.6.1 w/ DBI 1.15, but could only get Perl to test succesfully as
multithreaded, 

despite the masses who said this will not work.  The DBI was ridled with
bugs so I backed 

down to running the older version of DBI 1.14 and Perl 5.6.0 as suggested by
Licoln 4/24.

Thanks also to Tony Foiani's who pointed me to 

http://www.geocrawler.com/archives/3/183/2001/1//5027133/
<http://www.geocrawler.com/archives/3/183/2001/1//5027133/> 

which got me 9/10 of the way through the bugs.

In summary I simply added the two libraries -lcl -lpthread at the config
prompt

Any additional libraries?
as suggested in the directions and used the perl option -Ubincompat5005 when
making to assure that perl was not 

binary compatilbe with 5005 release, read from another thread.

Because I am running the gcc compiler some of the bugs did not exist, for
example I did not have to "-Wl,+s" and "-Wl,+n" flags.

The Oracle bug was also different when building the DBD 1.06 in my case for
whatever reason.

Instead, I ran into a seperate set of Unresolved symbols:
JNI_GetDefaultJavaVMInitArgs and JNI_CreateJavaVM.

After prying through the $ORACLE_HOME/lib using the find_symbol function
utility to locate symbols, I found these missing links

in static libraries in the $ORACLE_HOME/lib dir so it was already being
referenced.  Therefore, the DBD needed to be built

statically.  The DBD built, tested and installed.

Well, I hope this helps others.

-------- System stats

perl -V

Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
  Platform:
    osname=hpux, osvers=11.00, archname=PA-RISC2.0
    uname='hp-ux gpnd004 b.11.00 u 9000800 151901507 unlimited-user license
'
    config_args='-Ubincompat5005 -Dcc=gcc
-Dprefix=/home/context/meisert/perl5.6.0/'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=undef 
    use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
  Compiler:
    cc='gcc', optimize='-O', gccversion=2.9-hppa-991112
    cppflags='-D_HPUX_SOURCE -L/lib/pa1.1 -DUINT32_MAX_BROKEN
-fno-strict-aliasing -I/usr/local/include'
    ccflags ='-D_HPUX_SOURCE -L/lib/pa1.1 -DUINT32_MAX_BROKEN
-fno-strict-aliasing -I/usr/local/include'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    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 -lnsl -lnm -lndbm -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 Apr 24 2001 20:17:52
  @INC:
    /home/context/meisert/perl5.6.0//lib/5.6.0/PA-RISC2.0
    /home/context/meisert/perl5.6.0//lib/5.6.0
    /home/context/meisert/perl5.6.0//lib/site_perl/5.6.0/PA-RISC2.0
    /home/context/meisert/perl5.6.0//lib/site_perl/5.6.0
    /home/context/meisert/perl5.6.0//lib/site_perl
    .

-------------

-----Original Message-----
From: "Ferr�, Oscar" [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 11:47 AM
To: Eisert, Mark; '[EMAIL PROTECTED]'
Subject: RE: HP-UX, DBI make problem



Help !!! 

I have a same problem 

Perl: 5.6.1 
Os: HP-UX 11.0 
DBI: 1.14 


This is my log 

  /usr/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/type 
map DBI.xs > DBI.xsc && mv DBI.xsc DBI.c 
        gcc -c  -D_HPUX_SOURCE -L/lib/pa1.1 -DUINT32_MAX_BROKEN
-fno-strict-alia 
sing -O    -DVERSION=\"1.14\"  -DXS_VERSION=\"1.14\" -fpic
-I/opt/perl5/lib/5.6. 
1/PA-RISC2.0/CORE -Wall -Wno-comment -DDBI_NO_THREADS DBI.c 
DBI.xs: In function `dbih_make_com': 
DBI.xs:691: parse error before `l' 
DBI.xs: In function `dbih_clearcom': 
DBI.xs:840: warning: unused variable `Perl___notused' 
DBI.xs: In function `dbih_get_fbav': 
DBI.xs:977: warning: unused variable `Perl___notused' 
DBI.xs: In function `dbih_set_attr_k': 
DBI.xs:1069: warning: unused variable `Perl___notused' 
DBI.xs: In function `log_where': 
DBI.xs:1481: warning: unused variable `Perl___notused' 
DBI.xs: In function `XS_DBI_dispatch': 
DBI.xs:1905: warning: unused variable `Perl___notused' 
*** Error exit code 1 

Stop. 

If you found a solution please mail me. 





-----Mensaje original----- 
De: Eisert, Mark [ mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ]

Enviado el: Tuesday, April 24, 2001 12:06 PM 
Para: '[EMAIL PROTECTED]' 
Asunto: HP-UX, DBI make problem 


Hello, 

Perl: 5.6.1 
OS: HP-UX 11.0 
DBI: 1.15 

Having problem installing the Perl DBI on an HP System.  I've upgraded the 
Perl to 5.6.1 and installed it succesfully, but when I try to make the DBI, 
compiling using the Perl 5.6.1 I get the following error. 


meisert@gpnd004 [shaggy] /bv_var/meisert/bin/DBI-1.15$ gcc -c 
-D_HPUX_SOURCE -I/usr/local/include -O   -DVERSION=\"1.15\" 
-DXS_VER 
SION=\"1.15\" -fpic -I/home/context/meisert/perl/lib/5.6.1/PA-RISC2.0/CORE 
-Wall -Wno-comment -DDBI_NO_THREADS DBI.c 
DBI.xs: In function `dbih_make_fdsv': 
DBI.xs:622: warning: int format, long int arg (arg 5) 
DBI.xs: In function `dbih_make_com': 
DBI.xs:663: warning: int format, long int arg (arg 5) 
DBI.xs:696: parse error before `l' 
DBI.xs: In function `dbih_clearcom': 
DBI.xs:851: warning: unused variable `Perl___notused' 
DBI.xs: In function `dbih_get_fbav': 
DBI.xs:988: warning: unused variable `Perl___notused' 
DBI.xs: In function `dbih_set_attr_k': 
DBI.xs:1080: warning: unused variable `Perl___notused' 
DBI.xs: In function `log_where': 
DBI.xs:1498: warning: unused variable `Perl___notused' 
DBI.xs: In function `XS_DBI_dispatch': 
DBI.xs:1928: warning: unused variable `Perl___notused' 



I've tried just using the Perl 5.00503 binaries which come installed with HP

and can get the DBI to make and install successfully, but then run in to a 
wall when making the DBD::Oracle 1.06.  So, after reading some discussion 
threads I tried the approach of building and installing the latest version 
of Perl, which I've done both as static and as dynamic, but seem to get the 
same problem. 

Has anyone been successful at getting the following components installed: 
gcc, HP-UX 11, DBI 1.15, Perl 5.6.1 or Perl 5.x and DBD::Oracle 1.06? 
If so, what were the lessons learned if any? 

Mark 

Reply via email to