From owner-freebsd-questions Tue Dec 3 5:37: 7 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D65A737B401; Tue, 3 Dec 2002 05:37:04 -0800 (PST) Received: from klima.physik.uni-mainz.de (klima.Physik.Uni-Mainz.DE [134.93.180.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3018843EAF; Tue, 3 Dec 2002 05:37:04 -0800 (PST) (envelope-from ohartman@klima.physik.uni-mainz.de) Received: from klima.physik.uni-mainz.de (klima.physik.uni-mainz.de [134.93.180.162]) by klima.physik.uni-mainz.de (8.12.6/8.12.5) with ESMTP id gB3Db2HA089032; Tue, 3 Dec 2002 14:37:02 +0100 (CET) (envelope-from ohartman@klima.physik.uni-mainz.de) Date: Tue, 3 Dec 2002 14:37:02 +0100 (CET) From: "Hartmann, O." To: freebsd-questions@freebsd.org Cc: freebsd-stable@freebsd.org Subject: PICOBSD/FBSD 4.7-p2 won't build with KERB5 and KERB-IV Message-ID: <20021203141639.W88708-100000@klima.physik.uni-mainz.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Dear Sirs. We run a filtering bridge using PicoBSD based on FreeBSD 4.7-p2. Several weeks ago we start building FreeBSD 4.7-p2 with both 'MAKE_KERBEROS4=yes' and 'MAKE_KERBEROS5=yes' enabled by using the appropriate switches in /etc/make.conf. PicoBSD built correctly when only MAKE_KERBEROS5=yes is set, but Kerberos/Heimdal seems to be unable to operate only with KRB5 is built. While only Heimdal/KRB5 has been built when doing a 'make world' PicoBSD built correctly. Now we compile a 'WORLD' by enabling both KRB4 and KRB5/Heimdal and PicoBSD doesn't built anymore. First I thought it may has to do with some config errors, but every preconfigured PicoBSD is unable to produce a correct image. We use a clone of 'bridge' with several changes within the floppy tree but still using a 'normal' crunch.conf. When building/compiling a standard PicoBSD with the original crunch.conf I get a lot of errors when populating the binary image (kernel has been compiled successfuly). Always 'passwd.o' reports lacking in some libraries using krb_xxx specific things or com_err-specific things. to get rid of these errors I added an additional line with new libraries defined in crunch.conf and several errors disappeared. The following error-output shows up the added libs and the error: crunchide -k _crunched_mount_cd9660_stub mount_cd9660.lo cc -static -o crunch1 crunch1.o init.lo fsck.lo ifconfig.lo sh.lo echo.lo pwd.lo mkdir.lo rmdir.lo chmod.lo chown.lo mv.lo ln.lo mount.lo minigzip.lo cp.lo rm.lo ls.lo kill.lo df.lo ps.lo ns.lo vm.lo cat.lo test.lo tr.lo time.lo hostname.lo login.lo getty.lo stty.lo w.lo msg.lo kget.lo reboot.lo sysctl.lo swapon.lo pwd_mkdb.lo dev_mkdb.lo umount.lo mount_std.lo du.lo tail.lo tee.lo passwd.lo sleep.lo basename.lo expr.lo route.lo mount_msdos.lo ee.lo arp.lo disklabel.lo fdisk.lo vnconfig.lo grep.lo date.lo mount_nfs.lo ping.lo ipfw.lo traceroute.lo mount_cd9660.lo -L/usr/lib -lncurses -ledit -lutil -lmd -lcrypt -lmp -lgmp -lm -lkvm -lmytinfo -lipx -lz -lpcap -lwrap -ltermcap -lgnuregex -ldes -lkrb -lkrb5 -lcom_err -lpam -lrpcsvc -lcrypto -lkadm -lkadm5clnt -lkadm5srv /usr/lib/libkadm.a(kadm_cli_wrap.o): In function `kadm_init_link': kadm_cli_wrap.o(.text+0x6c): undefined reference to `initialize_krb_error_table' kadm_cli_wrap.o(.text+0x368): undefined reference to `krb_net_write' kadm_cli_wrap.o(.text+0x383): undefined reference to `krb_net_write' kadm_cli_wrap.o(.text+0x39e): undefined reference to `krb_net_read' kadm_cli_wrap.o(.text+0x3f9): undefined reference to `krb_net_read' kadm_cli_wrap.o(.text+0x516): undefined reference to `krb_mk_priv' kadm_cli_wrap.o(.text+0x5a1): undefined reference to `des_quad_cksum' kadm_cli_wrap.o(.text+0x76f): undefined reference to `krb_rd_priv' /usr/lib/libkadm.a(kadm_stream.o): In function `stv_string': kadm_stream.o(.text+0x202): undefined reference to `strnlen' *** Error code 1 Stop in /usr/src/release/picobsd/build_dir-bastion/crunch. ---> fail: Error <1> error code in <> Error while building bastion. ---> Aborting /usr/src/release/picobsd/build/picobsd It is very curious that 'strnlen' is missing due to the fact this is part of libc and gcc should include this by default. Can someone confirm this behaviour (enable building Kerb4 and Kerb5/Heimdal and then make world, then try to build any of the examples in /usr/src/release/picobsd, for instance 'bridge'-PicoBSD. I would appreciate any comment, hint or tip ... If this is a kind of bug I should send a bug-report, but it may be possible that I did a stupid mistake ... Oliver -- MfG O. Hartmann ohartman@klima.physik.uni-mainz.de ------------------------------------------------------------------ IT-Administration des Institutes fuer Physik der Atmosphaere (IPA) ------------------------------------------------------------------ Johannes Gutenberg Universitaet Mainz Becherweg 21 55099 Mainz Tel: +496131/3924662 (Maschinenraum) Tel: +496131/3924144 (Buero) FAX: +496131/3923532 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message