Subject: continued build problems
To: None <current-users@netbsd.org>
From: Rick Kelly <rmk@toad.rmkhome.com>
List: current-users
Date: 10/02/2003 22:05:39
kernel:

NetBSD roothog.rmkhome.com 1.6ZC NetBSD 1.6ZC (ROOTHOG) #0: Mon Sep 29 02:57:32 MDT 2003  rmk@roothog.rmkhome.com:/usr/src/sys/arch/i386/compile/ROOTHOG i386

userland: circa 1.6P

Can't find libdes.so.7. However, libdes.so.7 is in /usr/lib and also in
/usr/obj/lib/libdes.

Build fails on kdestroy.

/usr/src/tooldir.NetBSD-1.6ZC-i386/bin/i386--netbsdelf-gcc    -o kdestroy -nostdlib  /usr/obj/destdir.i386/usr/lib/crt0.o /usr/obj/destdir.i386/usr/lib/crti.o /usr/obj/destdir.i386/usr/lib/crtbegin.o kdestroy.o -lkafs -lkrb5 -lkrb -lcrypto -lasn1 -lcom_err  -L/usr/obj/lib/libvers -lvers -lroken -lcrypt  -L/usr/obj/destdir.i386/usr/lib -L/usr/obj/destdir.i386/usr/lib  -lgcc -lc -lgcc /usr/obj/destdir.i386/usr/lib/crtend.o /usr/obj/destdir.i386/usr/lib/crtn.o
/usr/src/tooldir.NetBSD-1.6ZC-i386/lib/gcc-lib/i386--netbsdelf/3.3.1/../../../../i386--netbsdelf/bin/ld: warning: libdes.so.7, needed by /usr/obj/destdir.i386/usr/lib/libkrb.so, not found (try using -rpath or -rpath-link)
/usr/obj/destdir.i386/usr/lib/libkrb.so: undefined reference to `des_pcbc_encrypt'
/usr/obj/destdir.i386/usr/lib/libkrb.so: undefined reference to `des_key_sched'
/usr/obj/destdir.i386/usr/lib/libkrb.so: undefined reference to `des_read_pw_string'
/usr/obj/destdir.i386/usr/lib/libkrb.so: undefined reference to `des_set_key'
/usr/obj/destdir.i386/usr/lib/libkrb.so: undefined reference to `des_cbc_cksum'
/usr/obj/destdir.i386/usr/lib/libkrb.so: undefined reference to `des_quad_cksum'
/usr/obj/destdir.i386/usr/lib/libkrb.so: undefined reference to `des_string_to_key
/usr/obj/destdir.i386/usr/lib/libkrb.so: undefined reference to `des_fixup_key_parity'
collect2: ld returned 1 exit status

*** Failed target:  kdestroy
*** Failed command: /usr/src/tooldir.NetBSD-1.6ZC-i386/bin/i386--netbsdelf-gcc -o kdestroy -nostdlib /usr/obj/destdir.i386/usr/lib/crt0.o /usr/obj/destdir.i386/usr/lib/crti.o /usr/obj/destdir.i386/usr/lib/crtbegin.o kdestroy.o -lkafs -lkrb5 -lkrb -lcrypto -lasn1 -lcom_err -L/usr/obj/lib/libvers -lvers -lroken -lcrypt -L/usr/obj/destdir.i386/usr/lib -L/usr/obj/destdir.i386/usr/lib -lgcc -lc -lgcc /usr/obj/destdir.i386/usr/lib/crtend.o /usr/obj/destdir.i386/usr/lib/crtn.o
*** Error code 1

Stop.
nbmake: stopped in /usr/src/usr.bin/kdestroy

*** Failed target:  dependall
*** Failed command: cd /usr/src/usr.bin/kdestroy; /usr/src/tooldir.NetBSD-1.6ZC-i386/bin/nbmake realall

This is complete madness.

Build command used:

./build.sh -O /usr/obj build

At that point I've already run: ./build.sh -O /usr/obj tools

/etc/mk.conf:

TOOLDIR=/usr/src/tooldir.NetBSD-1.6ZC-i386
MKDYNAMICROOT=no
HAVE_GCC3=yes
MKCRYPTO=yes

-- 
Rick Kelly  rmk@rmkhome.com  www.rmkhome.com