Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Error testing DBD install on HPUX 11...

1 view
Skip to first unread message

Bret Webb

unread,
Sep 23, 2002, 2:31:05 PM9/23/02
to dbi-...@perl.org
Getting the following with make test...

# make test
PERL_DL_NONLAZY=1 /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::Harness qw(&runtests
$verb
ose); $verbose=0; runtests @ARGV;' t/*.t
t/base............../usr/lib/dld.sl: Call to mmap() failed - TEXT
/opt/oracle/pr
oduct/8.1.5/lib//libqsmashr.sl
/usr/lib/dld.sl: Permission denied
Failed to load Oracle extension and/or shared libraries:
install_driver(Oracle) failed: Can't load
'blib/arch/auto/DBD/Oracle/Oracle.sl'
for module DBD::Oracle: Permission denied at
/opt/perl5/lib/5.6.1/PA-RISC2.0/Dyn
aLoader.pm line 206.
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/base.t line 19
The remaining tests will probably also fail with the same error.

Can anyone shed some light on why this is happening... The .sl files exist
and appear to have adequate permissions. DBI installed and tested complete.
Kit appeared ok during make for the distribution. TIA


LBa...@fleetcc.com

unread,
Sep 23, 2002, 4:22:59 PM9/23/02
to BW...@roadrunnersports.com, dbi-...@perl.org
This looks like an SHLIB_PATH or LD_LIBRARY_PATH issue. If oracle.sl is
unable to load any of ORACLE's libraries, it will appear to have failed to
load from perl's perspective. I one add $ORACLE_HOME/lib to the appropriate
EV listed above. I always set BOTH in HP land.

Lincoln

Bret Webb

unread,
Sep 23, 2002, 8:19:39 PM9/23/02
to dbi-...@perl.org
Tried this and still no go. Any other ideas?

Wolfgang Leideck

unread,
Sep 25, 2002, 6:49:33 AM9/25/02
to Bret Webb, dbi-...@perl.org
Hello,
how do you have compiled perl?
See the README.hpux that comes with the DBD package.
I believe that the perl-depot is not compiled with -lcl and -lpthread.
Try perl -V and you must see something like that
....
perllibs=-lcl -lpthread ...
and
cccdlflags='+Z'

Hope this helps
Wolfgang

-----Ursprüngliche Nachricht-----
Von: Bret Webb [mailto:BW...@roadrunnersports.com]
Gesendet: Montag, 23. September 2002 20:31
An: 'dbi-...@perl.org'
Betreff: Error testing DBD install on HPUX 11...

Wolfgang Leideck

unread,
Sep 26, 2002, 8:44:47 AM9/26/02
to Bret Webb, dbi-...@perl.org
Hello,
the output of your logfiles seems ok. I'm not sure if the
compile option +Z must be capitalized but it works for me.

Wolfgang

-----Ursprüngliche Nachricht-----
Von: Bret Webb [mailto:BW...@roadrunnersports.com]

Gesendet: Mittwoch, 25. September 2002 19:55
An: Leideck, Wolfgang; dbi-...@perl.org
Betreff: RE: Error testing DBD install on HPUX 11...


Yep. Have those. The perl log file sent with the original message references
this. I notice that the cccdlflags='+Z' you referenced is uses a cap Z. Does
this make a difference, as mine is lowercase.

ps. I've reattached the install notes and perl -V info. The perl info is an
update with the -lcl -lpthread references at the beginning of the string as
noted.

---
Wolfgang Leideck
Server Support/Consulting
ONSYS GmbH
Rheinuferstr. 9
D-67061 Ludwigshafen/Rh.
Fon: +49(0)621/58649-0
Fax: +49(0)621/58649-500
E-Mail: Wolfgang...@onsys.de

ge...@acm.org

unread,
Sep 26, 2002, 7:38:28 PM9/26/02
to dbi-...@perl.org
On Thu, 26 Sec 2002, Leideck, Wolfgang wrote:

Bret Webb <BW...@roadrunnersports.com> writes:
>
> Yep. Have those. The perl log file sent with the original message references
> this. I notice that the cccdlflags='+Z' you referenced is uses a cap Z. Does
> this make a difference, as mine is lowercase.

The HP cc man page says:

Normally, +z should be used to generate PIC; however, when certain
limits are exceeded, +Z is required to generate PIC. The ld linker
issues the error indicating when +Z is required.

I have tried compiling DBD with +z and the linker did, indeed,
complain numerous times that +Z was needed.

Incidentally, I'm having a problem when running the DBD Oracle tests on
HPUX with a `nnfotran' symbol not being found. I will send proper
details later, but I thought I'd see if this rang a bell for anyone.

Mark Geary


Dave

unread,
Oct 3, 2002, 4:27:43 PM10/3/02
to
ge...@acm.org wrote in message news:<Pine.LNX.4.44.020926...@hagbard.io.com>...


Bret,
Have you been able to resolve this issue. I am having the same
problem on my system and have not been able to get it to work either.

I am trying to use HPUX11.0 with perl-5.8.0 Oracle-8.1.7 DBI-1.30 and
DBD-1.12.

I have also read re-read and read again ALL of the documents, FAQ and
comments from users groups on this problem.

The farthest I have been able to get is to get a perl script to work
from the
command line when SHLIB_PATH is set correctly (Along with Oracle sid
and Oracle home which is set within the Script).

This scripts WILL NOT work from apache. I get the message:


install_driver(Oracle) failed: Can't load

'/opt/perl5/lib/site_perl/5.8.0/PA-RISC1.1/auto/DBD/Oracle/Oracle.sl'
for module DBD::Oracle: No such
file or directory at /opt/perl5/lib/5.8.0/PA-RISC1.1/DynaLoader.pm
line 229.


at (eval 1) line 3


We are currently running Perl-5.6.0 DBI-1.14, DBD-1.06 with Oracle
8.1.6 and it works fine. It was however compiled with gcc. I have
since ordered the HP ansi C compiler to see if this helps and is did
not.

Has something changed in perl, DBI or DBD that now requires certain
ENV to be set.

PLEASE HELP!!!

0 new messages