Subject: misc/10371: "domestic" DESTDIR build links against installed libraries
To: None <gnats-bugs@gnats.netbsd.org>
From: Erik E. Fair <fair@rubidium.clock.org>
List: netbsd-bugs
Date: 06/15/2000 06:47:15
>Number:         10371
>Category:       misc
>Synopsis:       "domestic" DESTDIR build links against installed libraries
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 15 06:48:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Erik E. Fair
>Release:        1.4.2
>Organization:
International Organization of Internet Clock Watchers
>Environment:
	
System: NetBSD rubidium.clock.org 1.4.2A NetBSD 1.4.2A (RUBIDIUM) #0: Tue Jun 13 13:32:12 PDT 2000 root@rubidium.clock.org:/usr/obj/sys/arch/macppc/compile/RUBIDIUM macppc

	1.4.x release branch as of 20000613

>Description:
	The build process for security software attempts to link against
	*installed* system libraries (/usr/lib) instead of against
	$DESTDIR/usr/lib

	This potentially produces inconsistent binaries.

all ===> libexec/ftpd
cc   -o ftpd -nostdlib -L/altroot/usr/lib /altroot/usr/lib/crt0.o /altroot/usr/lib/crtbegin.o conf.o ftpd.o ftpcmd.o logwtmp.o popen.o util.o klogin.o -lcrypt -lskey -lkrb -ldes -lgcc -lc -lgcc /altroot/usr/lib/crtend.o
/usr/bin/ld: warning: libcom_err.so.2, needed by /altroot/usr/lib/libkrb.so, not found (try using --rpath)
/altroot/usr/lib/libkrb.so: undefined reference to `_et_list'
collect2: ld returned 1 exit status
*** Error code 1

Stop.

>How-To-Repeat:
	1. install a system without the "secr.tgz" set
	2. sup a full -release source copy.
	3. cd /usr/src
	4. make DESTDIR=/altroot build
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted: