Subject: pkg/7415: package install biffs ld.so hints
To: None <gnats-bugs@gnats.netbsd.org>
From: Brett Slager <bds@snarf.thnet.com>
List: netbsd-bugs
Date: 04/18/1999 11:35:54
>Number:         7415
>Category:       pkg
>Synopsis:       package install biffs ld.so hints
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 18 11:35:00 1999
>Last-Modified:
>Originator:     Brett Slager
>Organization:
>Release:        NetBSD-current, April 17 1999
>Environment:
System: NetBSD snarf.thnet.com 1.4_ALPHA NetBSD 1.4_ALPHA (SNARF) #0: Sun Apr 18 01:02:55 EST 1999 bds@snarf.thnet.com:/usera/bds/kernel/builds/SNARF i386


>Description:
	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
	library directories.

	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

	Stop.

	The libjpg install has nuked my ld.so.hints and the libtomb library
	in /usr/local/lib can't be found.

>How-To-Repeat:
	Buy a scanner, attempt to install appropriate support packages.
	Install fails due to local configuration.
>Fix:
	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)
>Audit-Trail:
>Unformatted: