Subject: bin/8567: -current build failures with DESTDIR set
To: None <>
From: None <>
List: netbsd-bugs
Date: 10/06/1999 04:36:08
>Number:         8567
>Category:       bin
>Synopsis:       builds of some NetBSD components fail with DESTDIR set
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct  6 04:35:01 1999
>Originator:     Rafal Boni
	...or lack thereof...
>Release:        -current from 10/2
System: NetBSD 1.4K NetBSD 1.4K (DOPPELGANGER) #0: Thu Sep 30 17:37:18 EDT 1999 i386

	Builds of several programs that link against libraries in the build
	tree (amd,, ...) fail if DESTDIR is set.  The same builds go
	A-OK with DESTDIR unset.

	Build AMD with DESTDIR unset.  Watch it buid OK.  Do a 'make cleandir'

	% setenv DESTDIR /
	% make
cc   -o amd -nostdlib -L//usr/lib //usr/lib/crt0.o //usr/lib/crtbegin.o conf_parse.o conf_tok.o srvr_nfs.o srvr_amfs_auto.o sched.o rpc_fwd.o restart.o opts.o ops_unionfs.o ops_umapfs.o ops_ufs.o ops_tmpfs.o ops_tfs.o ops_pcfs.o ops_nullfs.o ops_nfs3.o ops_nfs.o ops_mfs.o ops_cdfs.o ops_autofs.o nfs_subr.o nfs_start.o nfs_prot_svc.o mntfs.o mapc.o map.o info_union.o info_passwd.o info_nis.o info_ndbm.o info_file.o info_hesiod.o get_args.o conf.o clock.o autil.o amq_svc.o amq_subr.o amfs_union.o amfs_toplvl.o amfs_root.o amfs_program.o amfs_nfsx.o amfs_nfsl.o amfs_linkx.o amfs_link.o amfs_inherit.o amfs_host.o amfs_error.o amfs_direct.o amfs_auto.o amd.o am_ops.o -L/home/doppelganger/src/current/src/usr.sbin/amd/libamu -lamu -lrpcsvc -ll -lgcc -lc -lgcc //usr/lib/crtend.o
srvr_nfs.o: In function `start_ping':
srvr_nfs.o(.text+0x50): undefined reference to `plog'
srvr_nfs.o(.text+0x60): undefined reference to `plog'
srvr_nfs.o(.text+0x71): undefined reference to `rpc_msg_init'
srvr_nfs.o(.text+0xa0): undefined reference to `plog'
srvr_nfs.o(.text+0xa7): undefined reference to `going_down'
srvr_nfs.o: In function `got_portmap':
srvr_nfs.o(.text+0x125): undefined reference to `pickup_rpc_reply'
srvr_nfs.o(.text+0x145): undefined reference to `debug_flags'
srvr_nfs.o(.text+0x156): undefined reference to `dplog'
srvr_nfs.o(.text+0x176): undefined reference to `debug_flags'
[...910 lines snipped...]
am_ops.o(.text+0x595): undefined reference to `plog'
collect2: ld returned 1 exit status
*** Error code 1

	Please do! (seriously, none yet)