Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Dec 2002 14:37:02 +0100 (CET)
From:      "Hartmann, O." <ohartman@klima.physik.uni-mainz.de>
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>

next in thread | raw e-mail | index | archive | help
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 <crunch> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021203141639.W88708-100000>