- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- problems with dynamic linking
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2002 07:50 AM
05-28-2002 07:50 AM
> gmake test
PERL_DL_NONLAZY=1 /opt/perl/bin/perl -Iblib/arch -Iblib/lib
-I/opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi -I/opt/perl/lib/5.6.1 -e 'use
Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/base............../usr/lib/dld.sl: Can't shl_load() a library containing
Thread Local Storage: /usr/lib/libcl.2
/usr/lib/dld.sl: Exec format error
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: Exec format error at
/opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi/DynaLoader.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.
...
(full typescript attached). i had this same problem with the standard, manually built Perl 5.005_03 but linking Perl with pthread and cl libraries
(-Dlibs='-lpthread -lcl') solved it. has anyone managed to solve this problem with ActivePerl? i'm having problems understanding the dynamic linker in 11.00, why can't it load the libcl.sl unless the Perl binary has been linked with this library?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2002 08:39 AM
05-28-2002 08:39 AM
Re: problems with dynamic linking
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2002 08:43 AM
05-28-2002 08:43 AM
Re: problems with dynamic linking
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2002 02:02 AM
05-29-2002 02:02 AM
Re: problems with dynamic linking
i also tried changing the Makefile so that Oracle.sl would be linked with libcl.sl. after doing this 'chatr Oracle.sl' says:
[390] % chatr blib/arch/auto/DBD/Oracle/Oracle.sl
blib/arch/auto/DBD/Oracle/Oracle.sl:
shared library
shared library dynamic path search:
SHLIB_PATH enabled second
embedded path disabled first Not Defined
shared library list:
dynamic /usr/lib/libcl.2
dynamic /opt/oracle/u01/app/oracle/product/8.1.7/lib//libclntsh.sl.8.0
dynamic /opt/oracle/u01/app/oracle/product/8.1.7/lib//libwtc8.sl
dynamic /usr/lib/librt.2
dynamic /usr/lib/libpthread.1
dynamic /usr/lib/libdld.2
dynamic /usr/lib/libm.2
...
but the same problems still remains.
i also read the ITRC thread reference but unfortunately i couldn't figure out the connection to my problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2002 05:01 AM
05-29-2002 05:01 AM
Solutionmake sure you have the latest ld patch
PHSS_26262
Then use LD_PRELOAD funtionality.
The LD_PRELOAD environment variable allows you to load additional shared
libraries at program startup. LD_PRELOAD provides a colon- separated or
space-separated list of shared libraries that the dynamic loader can
interpret. The dynamic loader, dld.sl, loads the specified shared libraries
as if the program had been linked explicitly with the shared libraries in
LD_PRELOAD before any other dependents of the program.
see man dld.sl after the patch
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2002 05:19 AM
05-29-2002 05:19 AM
Re: problems with dynamic linking
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2002 05:27 AM
05-29-2002 05:27 AM
Re: problems with dynamic linking
/usr/lib/libcl.2 solved the problem! thanks.
i only have PHSS_24303 installed but it has LD_PRELOAD support and seems to be working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2002 03:46 AM
08-20-2002 03:46 AM
Re: problems with dynamic linking
Using the patch and setting LD_PRELOAD before installing DBD:Oracle worked fine, however, LD_PRELOAD needs to be set in the user environment before any perl calls to it. This conflicts with another 3rd party executable which core dumps when this is set.
As this is a production system and dont want to install compilers etc, ideally I am looking for a 5.6.1 binary distribution for HP which has been compiled with the Dlibs='-lpthread -lcl' option set.
Please can anyone point me to one?
Thanks in advance,
Adrian