libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dlopen on Solaris compared with IRIX/Tru64


From: Bjoern Fischer
Subject: Re: dlopen on Solaris compared with IRIX/Tru64
Date: Wed, 20 Dec 2000 19:46:27 +0100
User-agent: Mutt/1.2.5i

Hello Albert,

> dependent on nothing:
>   $ ldd libpng.so
>   libz.so.2 =>     (file not found)

This is your problem. Your libpng.so is not self-contained.
The run-time linker is not able to resolve all dependencies
of your libpng.so. You may set LD_LIBRARY_PATH, but you
definetly want to fix your libpng.so to contain an DT_RPATH
for libz.so.

> This program works just fine on IRIX 6.5 and Compaq Tru64 UNIX 5.0.
> The failure above is on Solaris 2.5.1-8/SPARC.

That's irony! The Platforms Tru64 and IRIX are more or less broken
with respect to run-time linking resp. dlopen():

The creator of libpng.so really knows what other libraries png
depends on and where to find them. This knowledge should be
incorprated into libpng.so, so the run-time linker will be able
to find all libs and resolve all symbols. Solaris' run-time
linker only uses the RPATH found in libpng.so to find libs,
that png depends on. IRIX and True64 use a globalized RPATH
in the executable binary for all library searches, which is
wrong.

  Bjoern

-- 
-----BEGIN GEEK CODE BLOCK-----
GCS d--(+) s++: a- C+++(-) UB++++OSI++++$ P+++(-) L---(++) !E W- N+ o>+
K- !w !O !M !V  PS++  PE-  PGP++  t+++  !5 X++ tv- b+++ D++ G e+ h-- y+ 
------END GEEK CODE BLOCK------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]