Subject: pkg/7415: package install biffs ld.so hints
To: None <firstname.lastname@example.org>
From: Brett Slager <email@example.com>
Date: 04/18/1999 11:35:54
>Synopsis: package install biffs ld.so hints
>Responsible: gnats-admin (GNATS administrator)
>Arrival-Date: Sun Apr 18 11:35:00 1999
>Originator: Brett Slager
>Release: NetBSD-current, April 17 1999
System: NetBSD snarf.thnet.com 1.4_ALPHA NetBSD 1.4_ALPHA (SNARF) #0: Sun Apr 18 01:02:55 EST 1999 firstname.lastname@example.org:/usera/bds/kernel/builds/SNARF i386
Installing a library package on i386 results in upset of
system configuration. In /usr/local/bin, I have versions of cp, mv,
and rm that are linked against the Purdue CC entombing library located
in /usr/local/lib. ldconfig is run from rc with explicit paths to my
Excerpt from pkg build:
<deleted installation of libjpg>
===> Building for png-1.0.3
/usr/pkg/bin/pkglibtool-1.2p1 --mode=compile cc -O -c png.c
/usr/libexec/ld.so: rm: libtomb.so.0.0: No such file or directory
cc -O -c -fPIC -DPIC png.c
mv -f png.o png.lo
/usr/libexec/ld.so: mv: libtomb.so.0.0: No such file or directory
*** Error code 1
The libjpg install has nuked my ld.so.hints and the libtomb library
in /usr/local/lib can't be found.
Buy a scanner, attempt to install appropriate support packages.
Install fails due to local configuration.
The obvious fix for my system is to create /etc/ld.so.conf, but
the pkgsrc documention should mention that the pkg system assumes
such a configuration. Older systems might not be set up that way.
Or, maybe ldconfig should always be run with the merge option.
(Yeah, I know that ld.so.conf has been around awhile... but my
machine has been around and working alot longer)