I have redownloaded the DBD module, and a problem with the cc compilert has been 
sorted out, and the make test is passing now. Thanks for the help here.
Unfortunately, it is now failing on the make test step - we are getting 'Can't 
shl_load() a library containing Thread Local Storage' errors.

I've seen a number of other mails about this problem, but I have been unable to find a 
solution that works for us at the moment. Does anyone know what we can do to resolve 
this?

THanks for your help.

Full make test output:
        /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/c
        cc -c -I/oracle/app/oracle/product/8.1.6/rdbms/demo 
-I/oracle/app/oracle/product/8.1.6/rdbms/public -I/oracle/app/oracle/prc
        rm -f blib/arch/auto/DBD/Oracle/Oracle.sl
        
LD_RUN_PATH="/oracle/app/oracle/product/8.1.6/lib:/oracle/app/oracle/product/8.1.6/rdbms/lib"
 ld  -b +vnocompatwarnings -L/
        chmod 755 blib/arch/auto/DBD/Oracle/Oracle.sl
        PERL_DL_NONLAZY=0 /usr/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
t/base............../usr/lib/dld.sl: Can't shl_load() a library containing Thread 
Local Storage: /oracle/app/oracle/product/8.1.6/Jl
/usr/lib/dld.sl: Exec format error
t/base..............FAILED tests 4-5
        Failed 2/5 tests, 60.00% okay
t/general.........../usr/lib/dld.sl: Can't shl_load() a library containing Thread 
Local Storage: /oracle/app/oracle/product/8.1.6/Jl
/usr/lib/dld.sl: Exec format error
install_driver(Oracle) failed: Can't load 'blib/arch/auto/DBD/Oracle/Oracle.sl' for 
module DBD::Oracle: Exec format error at /opt/p.
 at (eval 1) line 3
Compilation failed in require at (eval 1) line 3.
Perhaps a required shared library or dll isn't installed where expected
 at t/general.t line 20
t/general...........dubious
        Test returned status 255 (wstat 65280, 0xff00)
t/long............../usr/lib/dld.sl: Can't shl_load() a library containing Thread 
Local Storage: /oracle/app/oracle/product/8.1.6/Jl
/usr/lib/dld.sl: Exec format error
Can't load 'blib/arch/auto/DBD/Oracle/Oracle.sl' for module DBD::Oracle: Exec format 
error at /opt/perl5/lib/5.6.1/PA-RISC2.0/DynaL.
 at t/long.t line 4
Compilation failed in require at t/long.t line 4.
BEGIN failed--compilation aborted at t/long.t line 4.
t/long..............dubious
        Test returned status 255 (wstat 65280, 0xff00)
t/ph_type.........../usr/lib/dld.sl: Can't shl_load() a library containing Thread 
Local Storage: /oracle/app/oracle/product/8.1.6/Jl
/usr/lib/dld.sl: Exec format error
Can't load 'blib/arch/auto/DBD/Oracle/Oracle.sl' for module DBD::Oracle: Exec format 
error at /opt/perl5/lib/5.6.1/PA-RISC2.0/DynaL.
 at t/ph_type.t line 20
Compilation failed in require at t/ph_type.t line 20.
BEGIN failed--compilation aborted at t/ph_type.t line 20.
t/ph_type...........dubious
        Test returned status 255 (wstat 65280, 0xff00)
t/plsql............./usr/lib/dld.sl: Can't shl_load() a library containing Thread 
Local Storage: /oracle/app/oracle/product/8.1.6/Jl
/usr/lib/dld.sl: Exec format error
Can't load 'blib/arch/auto/DBD/Oracle/Oracle.sl' for module DBD::Oracle: Exec format 
error at /opt/perl5/lib/5.6.1/PA-RISC2.0/DynaL.
 at t/plsql.t line 17
Compilation failed in require at t/plsql.t line 17.
BEGIN failed--compilation aborted at t/plsql.t line 17.
t/plsql.............dubious
        Test returned status 255 (wstat 65280, 0xff00)
t/reauth............skipped test on this platform
Failed Test Status Wstat Total Fail  Failed  List of Failed
------------------------------------------------------------------------------------------------------------------------------------
t/base.t                       5    2  40.00%  4-5
t/general.t      255 65280    ??   ??       %  ??
t/long.t         255 65280    ??   ??       %  ??
t/ph_type.t      255 65280    ??   ??       %  ??
t/plsql.t        255 65280    ??   ??       %  ??
1 test skipped.
Failed 5/6 test scripts, 16.67% okay. 2/5 subtests failed, 60.00% okay.
*** Error exit code 2

Stop.
uepjs@uk208:/depots/source/perl/DBD-Oracle-1.12> whence cc

Cheers,
Jon

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 26 March 2002 12:53
To: Stevenson, Jonathan
Cc: [EMAIL PROTECTED]
Subject: RE: Error on make for DBD-Oracle 1.12 on HPUX 11.0


Are you sure you are using 1.12?

What happens when you hack the makefile to remove the -Wl,+z in the
makefile?

I have attached my perltree build makefile, which just built everything on
HP-UX 11i (DBD-Oracle-1.12) with Oracle 8.1.7.  Maybe this is also and
Oracle 8.1.6 issue.  Aren't your dba's grumbling about oracle's EOL of
8.1.6, and 8.1.7?

All, I intend to add this (or a significant chunk of it) as an appendix to
the README.hpux.  

Tim, please let me know before you are about to release the next version (so
I can give you the latest version).

Lincoln


-----Original Message-----
From: Stevenson, Jonathan [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, March 26, 2002 7:22 AM
To: [EMAIL PROTECTED]
Subject: Error on make for DBD-Oracle 1.12 on HPUX 11.0

Hi all,

I'm having problems getting this to work. I have follows Lincoln's
instructions, and recompiled Perl from source using HP's ANSI C compiler,
with the specified options:
Configure -Ubincompat5005
Additional libraries: prepend -lcl -lpthread
ccflags: perpend +z
Perl 5.005 binary compatible: no
Understand large files: yes.

Perl installs OK, as does DBI
Set up all the Oracle variables, run 
perl Makefile.PL
Alter the Makefile to set PERL_DL_NONLAZY=1 to PERL_DL_NONLAZY=0  **** We
have tried installing with this change and without it
on make, we get:
ld: Unrecognized argument: -Wl,+s

ld: Usage:  ld [options] [flags] files

*** Error exit code 1   

I thought this only occured in DBD-Oracle 1.06 and earlier?

I have tried removing the Wl,+s & Wl,+n flags, but then the make test fails,
saying Can't shl_load() a library containing Thread Local Storage:
/oracle/app/oracle/product/8.1.6/JRE/lib/PA_RISC/native_threads/libjava.sl


Any ideas what I can do to get around this?

Full make for DBD is:
root@uk208:/tmp/perl/DBD-Oracle-1.12> perl Makefile.PL

root@uk208:/tmp/perl/DBD-Oracle-1.12> cat Makefile | sed
's/PERL_DL_NONLAZY=1/PERL_DL_NONLAZY=0/g' > Makefile.tmp       
root@uk208:/tmp/perl/DBD-Oracle-1.12> mv Makefile.tmp Makefile

root@uk208:/tmp/perl/DBD-Oracle-1.12> make

Skip blib/lib/oraperl.ph (unchanged)

Skip blib/lib/DBD/Oracle.pm (unchanged)

Skip blib/arch/auto/DBD/Oracle/mk.pm (unchanged)

Skip blib/arch/auto/DBD/Oracle/dbdimp.h (unchanged)

Skip blib/arch/auto/DBD/Oracle/ocitrace.h (unchanged)

Skip blib/arch/auto/DBD/Oracle/Oracle.h (unchanged)

Skip blib/lib/Oraperl.pm (unchanged)

        /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  -ty
pemap /opt/perl5/lib/5.6.1/ExtUtils/typemap Oracle.xs > Oracle.xsc && mv
Oracle.xsc Oracle.c                            
        cc -c -I/oracle/app/oracle/product/8.1.6/rdbms/demo
-I/oracle/app/oracle/product/8.1.6/rdbms/public -I/oracle/ap
p/oracle/product/8.1.6/plsql/public
-I/oracle/app/oracle/product/8.1.6/network/public
-I/oracle/app/oracle/product/8.1.6
/rdbms/demo -I/oracle/app/oracle/product/8.1.6/rdbms/demo
-I/opt/perl5/lib/site_perl/5.6.1/PA-RISC2.0/auto/DBI -D_HPUX_S
OURCE +z -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Ae -O
-DVERSION=\"1.12\"  -DXS_VERSION=\"1.12\" +z -I/opt/perl5/
lib/5.6.1/PA-RISC2.0/CORE  Oracle.c

        cc -c -I/oracle/app/oracle/product/8.1.6/rdbms/demo
-I/oracle/app/oracle/product/8.1.6/rdbms/public -I/oracle/ap
p/oracle/product/8.1.6/plsql/public
-I/oracle/app/oracle/product/8.1.6/network/public
-I/oracle/app/oracle/product/8.1.6
/rdbms/demo -I/oracle/app/oracle/product/8.1.6/rdbms/demo
-I/opt/perl5/lib/site_perl/5.6.1/PA-RISC2.0/auto/DBI -D_HPUX_S
OURCE +z -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Ae -O
-DVERSION=\"1.12\"  -DXS_VERSION=\"1.12\" +z -I/opt/perl5/
lib/5.6.1/PA-RISC2.0/CORE  dbdimp.c

        cc -c -I/oracle/app/oracle/product/8.1.6/rdbms/demo
-I/oracle/app/oracle/product/8.1.6/rdbms/public -I/oracle/ap
p/oracle/product/8.1.6/plsql/public
-I/oracle/app/oracle/product/8.1.6/network/public
-I/oracle/app/oracle/product/8.1.6
/rdbms/demo -I/oracle/app/oracle/product/8.1.6/rdbms/demo
-I/opt/perl5/lib/site_perl/5.6.1/PA-RISC2.0/auto/DBI -D_HPUX_S
OURCE +z -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Ae -O
-DVERSION=\"1.12\"  -DXS_VERSION=\"1.12\" +z -I/opt/perl5/
lib/5.6.1/PA-RISC2.0/CORE  oci7.c

        cc -c -I/oracle/app/oracle/product/8.1.6/rdbms/demo
-I/oracle/app/oracle/product/8.1.6/rdbms/public -I/oracle/ap
p/oracle/product/8.1.6/plsql/public
-I/oracle/app/oracle/product/8.1.6/network/public
-I/oracle/app/oracle/product/8.1.6
/rdbms/demo -I/oracle/app/oracle/product/8.1.6/rdbms/demo
-I/opt/perl5/lib/site_perl/5.6.1/PA-RISC2.0/auto/DBI -D_HPUX_S
OURCE +z -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Ae -O
-DVERSION=\"1.12\"  -DXS_VERSION=\"1.12\" +z -I/opt/perl5/
lib/5.6.1/PA-RISC2.0/CORE  oci8.c

cc: "oci8.c", line 267: warning 604: Pointers are not assignment-compatible.

Running Mkbootstrap for DBD::Oracle ()

        chmod 644 Oracle.bs

        rm -f blib/arch/auto/DBD/Oracle/Oracle.sl

 
LD_RUN_PATH="/oracle/app/oracle/product/8.1.6/lib:/oracle/app/oracle/product
/8.1.6/rdbms/lib" ld  -b +vnocompatw
arnings -L/usr/local/lib Oracle.o  dbdimp.o  oci7.o  oci8.o
-L/oracle/app/oracle/product/8.1.6/lib/ -L/oracle/app/oracle
/product/8.1.6/rdbms/lib -Wl,+s -Wl,+n
/oracle/app/oracle/product/8.1.6/lib/nautab.o /oracle/app/oracle/product
/8.1.6/lib/naeet.o /oracle/app/oracle/product/8.1.6/lib/naect.o
/oracle/app/oracle/product/8.1.6/lib/naedhs.o  `cat /ora
cle/app/oracle/product/8.1.6/lib/ldflags`     -lnsgr8 -lnzjs8 -ln8 -lnl8
-lnro8 `cat /oracle/app/oracle/product/8.1.6/li
b/ldflags`     -lnsgr8 -lnzjs8 -ln8 -lnl8 -lclient8  -lvsn8 -lwtc8 -lcommon8
-lgeneric8 -lmm -lnls8  -lcore8 -lnls8 -lco
re8  -lnls8   `cat /oracle/app/oracle/product/8.1.6/lib/ldflags`     -lnsgr8
-lnzjs8 -ln8 -lnl8 -lnro8 `cat /oracle/app/
oracle/product/8.1.6/lib/ldflags`     -lnsgr8 -lnzjs8 -ln8 -lnl8 -lclient8
-lvsn8 -lwtc8 -lcommon8 -lgeneric8   -ltrace
8 -lnls8  -lcore8 -lnls8 -lcore8  -lnls8  -lclient8  -lvsn8 -lwtc8 -lcommon8
-lgeneric8 -lnls8  -lcore8 -lnls8 -lcore8  
-lnls8      -lm   /oracle/app/oracle/product/8.1.6/rdbms/lib/kpudfo.o `cat
/oracle/app/oracle/product/8.1.6/lib/syslibli
st` -o blib/arch/auto/DBD/Oracle/Oracle.sl

ld: Unrecognized argument: -Wl,+s

ld: Usage:  ld [options] [flags] files

*** Error exit code 1

 

Stop.

Regards,
Jon Stevenson   
IT Applications Development

Information Resources, Eagle House, The Ring, Bracknell RG12 1HS, United
Kingdom
Direct line: +44 (0)1344 746142   Switchboard: +44 (0)1344 746000
Facsimile: +44 (0)1344 746001

Information Resources is the trading name of IRI InfoScan Ltd and IRI
Software Ltd. The contents of this message and all attachments have been
sent in confidence for the attention of the addressee only. If you are not
the intended recipient you are kindly requested to preserve this
confidentiality and to advise the sender immediately of the error in
transmission.



Reply via email to