Subject: Re: still build problems
To: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
From: Rick Kelly <rmk@toad.rmkhome.com>
List: port-i386
Date: 03/21/2004 22:02:52
Izumi Tsutsui said:
>
>> while "make build" defaults to /.
>build.sh only allows DESTDIR=/ in "expert mode",
>then you shouldn't try "make build" directly, either.
>"build.sh build" is enough, and it works for me.

The problems still continue.

1. I deleted all obj directories and links.
2. deleted /usr/src
3. did another "cvs checkout".
4. downloaded binaries from releng.netbsd.org. 200403120000
5. installed binaries using "tar zxvpf" from single user mode.
6. rebooted
7. ./boot.sh tools
8. ./boot.sh build
9. Failed:

#      link  kdestroy/kdestroy
/usr/src/tooldir.NetBSD-1.6ZK-i386/bin/i386--netbsdelf-gcc -Wl,-nostdlib     -o kdestroy   -B/usr/src/destdir.i386/usr/lib/ -B/usr/src/destdir.i386/usr/lib/   kdestroy.o -lkafs -lkrb5 -lkrb -lcrypto -lasn1 -lcom_err  -L/usr/src/lib/libvers/obj -lvers -lroken -lcrypt   -L/usr/src/destdir.i386/usr/lib -L/usr/src/destdir.i386/usr/lib
/usr/src/tooldir.NetBSD-1.6ZK-i386/lib/gcc-lib/i386--netbsdelf/3.3.3/../../../../i386--netbsdelf/bin/ld: warning: libdes.so.7, needed by /usr/src/destdir.i386/usr/lib/libkrb.so, not found (try using -rpath or -rpath-link)
/usr/src/destdir.i386/usr/lib/libkrb.so: undefined reference to `des_pcbc_encrypt'
/usr/src/destdir.i386/usr/lib/libkrb.so: undefined reference to `des_new_random_key'
/usr/src/destdir.i386/usr/lib/libkrb.so: undefined reference to `des_key_sched'
/usr/src/destdir.i386/usr/lib/libkrb.so: undefined reference to `des_read_pw_string'
/usr/src/destdir.i386/usr/lib/libkrb.so: undefined reference to `des_set_key'
/usr/src/destdir.i386/usr/lib/libkrb.so: undefined reference to `des_cbc_cksum'
/usr/src/destdir.i386/usr/lib/libkrb.so: undefined reference to `des_quad_cksum'
/usr/src/destdir.i386/usr/lib/libkrb.so: undefined reference to `des_ecb_encrypt'
/usr/src/destdir.i386/usr/lib/libkrb.so: undefined reference to `des_string_to_key'

DESTDIR:

roothog# ls -ld /usr/src/destdir.i386
drwxr-xr-x  16 root  wheel  512 Mar 21 20:13 /usr/src/destdir.i386

The lib, libdes.so.7, is in /usr/src/destdir.i386/usr/lib

Tools:

roothog# ls -ld /usr/src/tooldir.NetBSD-1.6ZK-i386
drwxr-xr-x  10 root  wheel  512 Mar 21 19:47 /usr/src/tooldir.NetBSD-1.6ZK-i386

Obj:

roothog# ls -ld /usr/obj
drwxr-xr-x  18 root  wheel  512 Mar 21 19:25 /usr/obj


Why does the build create this:

roothog# ls -ld /usr/src/obj
lrwxr-xr-x  1 root  wheel  9 Mar 21 19:56 /usr/src/obj -> /usr/obj/

I'm wondering if it causes a linker problem.

Otherwise, I have no idea what is going on. I can't see how anyone is
building conidering I have fairly up-to-date binaries.

Is this a problem with root, the linker, and security?
-- 
Rick Kelly  rmk@rmkhome.com  www.rmkhome.com