Subject: misc/10371: "domestic" DESTDIR build links against installed libraries
To: None <>
From: Erik E. Fair <>
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
>Originator:     Erik E. Fair
>Release:        1.4.2
International Organization of Internet Clock Watchers
System: NetBSD 1.4.2A NetBSD 1.4.2A (RUBIDIUM) #0: Tue Jun 13 13:32:12 PDT 2000 macppc

	1.4.x release branch as of 20000613

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

	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:, needed by /altroot/usr/lib/, not found (try using --rpath)
/altroot/usr/lib/ undefined reference to `_et_list'
collect2: ld returned 1 exit status
*** Error code 1


	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