Subject: Shared object not found - but all dependencies are ok ?!
To: None <tech-pkg@netbsd.org>
From: Pavel Cahyna <pcah8322@artax.karlin.mff.cuni.cz>
List: tech-pkg
Date: 01/08/2005 00:32:00
[ please Cc: me in replies ]
Hello,

I installed the snx101util binary package from 
ftp://ftp.netbsd.org/pub/NetBSD/packages/2.0/i386/All/snx101util-0.2.tgz. 

I already have gtk+ and imlib installed (compiled from source), so the
installation was OK except for a warning about OS mismatch:

pavel@pc:~/packages$ sudo pkg_add snx101util-0.2.tgz      
pkg_add: Package `/home/pavel/packages/./snx101util-0.2.tgz' OS mismatch:
pkg_add: NetBSD/i386 2.0 (pkg) vs. NetBSD/i386 2.0_BETA (this host)

which I believe should be harmless (isn't 2.0_BETA binary compatible with
2.0)?

Now, I tried to start snx101view and it printed:
Shared object "libgdk_imlib.so.10" not found

I have imlib 1.9.14nb7 which contains only
/usr/pkg/lib/libgdk_imlib.so.1.9.14 and /usr/pkg/lib/libgdk_imlib.so.1 .

But pkg_info snx101util prints:

Requires:
...
imlib>=1.9.14nb5

So, the imlib dependency is satisfied, but the program actually does not
find the library that it needs.

Could this be fixed, please? I don't see what the dependencies are for if
they don't guarantee that a program will run when they are satisfied. At
least for shared libraries which are the most common reason for
dependencies this should work.

Couldn't this bye done by embedding the library version in the package
name, like in Debian? (see
http://www.netfort.gr.jp/~dancer/column/libpkg-guide/libpkg-guide.html#NAMINGLIBPKG)

THanks and bye	Pavel

Bye	Pavel