Subject: Problems when building netbsd-2-0 with MKKERBEROS4=no
To: None <tech-toolchain@NetBSD.ORG>
From: Claudio Neves <nevalabs@gmail.com>
List: tech-toolchain
Date: 07/17/2005 20:46:57
Hello,

I'm trying to build netbsd-2-0 for hpcmips on a linux i386 system, but
it fails when I use MKKERBEROS4=3Dno. Here follows my /etc/mk.conf :

MKHESIOD=3Dno
MKHTML=3Dno
MKINFO=3Dno
MKKERBEROS4=3Dno
MKMANZ=3Dyes
MKPOSTFIX=3Dno
MKPROFILE=3Dno
MKSENDMAIL=3Dno
MKUUCP=3Dno
MKYP=3Dno
MKLINT=3Dno

Here follow my build.sh command:

$./build.sh -u -U -O obj -T tooldir.Linux-2.4.21-27.0.4.ELsmp-i686 -m
hpcmips build

If I remove MKKERBEROS4=3Dno from /etc/mk.conf and run the same build.sh
command line, it builds perfectly.

Here follows the error when using MKKERBEROS4=3Dno :

#      link  telnetd/telnetd
/var/files/netbsd/src.2/tooldir.Linux-2.4.21-27.0.4.ELsmp-i686/bin/mipsel--=
netbsd-gcc
-Wl,-nostdlib     -o telnetd=20
-Wl,-rpath-link,/var/files/netbsd/src.2/obj/destdir.hpcmips/lib:/var/files/=
netbsd/src.2/obj/destdir.hpcmips/usr/lib
 -L/var/files/netbsd/src.2/obj/destdir.hpcmips/lib=20
-B/var/files/netbsd/src.2/obj/destdir.hpcmips/usr/lib/
-B/var/files/netbsd/src.2/obj/destdir.hpcmips/usr/lib/   authenc.o
global.o slc.o state.o sys_term.o telnetd.o termstat.o utility.o
-lutil -ltermcap /var/files/netbsd/src.2/obj/lib/libtelnet/libtelnet.a
-lkrb5 -lasn1 -lcrypto -lcom_err
-L/var/files/netbsd/src.2/obj/lib/libvers -lvers -lroken =20
-L/var/files/netbsd/src.2/obj/destdir.hpcmips/usr/lib
-L/var/files/netbsd/src.2/obj/destdir.hpcmips/usr/lib
/var/files/netbsd/src.2/obj/lib/libtelnet/libtelnet.a(enc_des.o)(.text+0x31=
0):
In function `ofb64_start':
: undefined reference to `des_new_random_key'
/var/files/netbsd/src.2/obj/lib/libtelnet/libtelnet.a(enc_des.o)(.text+0x33=
4):
In function `ofb64_start':
: undefined reference to `des_ecb_encrypt'
/var/files/netbsd/src.2/obj/lib/libtelnet/libtelnet.a(enc_des.o)(.text+0xb7=
8):
In function `ofb64_session':
: undefined reference to `des_key_sched'
/var/files/netbsd/src.2/obj/lib/libtelnet/libtelnet.a(enc_des.o)(.text+0xbc=
c):
In function `ofb64_session':
: undefined reference to `des_init_random_number_generator'
/var/files/netbsd/src.2/obj/lib/libtelnet/libtelnet.a(enc_des.o)(.text+0xfd=
0):
In function `fb64_stream_iv':
: undefined reference to `des_key_sched'
/var/files/netbsd/src.2/obj/lib/libtelnet/libtelnet.a(enc_des.o)(.text+0x10=
54):
In function `fb64_stream_key':
: undefined reference to `des_key_sched'
/var/files/netbsd/src.2/obj/lib/libtelnet/libtelnet.a(enc_des.o)(.text+0x11=
68):
In function `cfb64_encrypt':
: undefined reference to `des_ecb_encrypt'
/var/files/netbsd/src.2/obj/lib/libtelnet/libtelnet.a(enc_des.o)(.text+0x12=
54):
In function `cfb64_decrypt':
: undefined reference to `des_ecb_encrypt'
/var/files/netbsd/src.2/obj/lib/libtelnet/libtelnet.a(enc_des.o)(.text+0x13=
7c):
In function `ofb64_encrypt':
: undefined reference to `des_ecb_encrypt'
/var/files/netbsd/src.2/obj/lib/libtelnet/libtelnet.a(enc_des.o)(.text+0x14=
68):
In function `ofb64_decrypt':
: undefined reference to `des_ecb_encrypt'
collect2: ld returned 1 exit status
*** Failed target:  telnetd
*** Failed command:
/var/files/netbsd/src.2/tooldir.Linux-2.4.21-27.0.4.ELsmp-i686/bin/mipsel--=
netbsd-gcc
-Wl,-nostdlib -o telnetd
-Wl,-rpath-link,/var/files/netbsd/src.2/obj/destdir.hpcmips/lib:/var/files/=
netbsd/src.2/obj/destdir.hpcmips/usr/lib
-L/var/files/netbsd/src.2/obj/destdir.hpcmips/lib
-B/var/files/netbsd/src.2/obj/destdir.hpcmips/usr/lib/
-B/var/files/netbsd/src.2/obj/destdir.hpcmips/usr/lib/ authenc.o
global.o slc.o state.o sys_term.o telnetd.o termstat.o utility.o
-lutil -ltermcap /var/files/netbsd/src.2/obj/lib/libtelnet/libtelnet.a
-lkrb5 -lasn1 -lcrypto -lcom_err
-L/var/files/netbsd/src.2/obj/lib/libvers -lvers -lroken
-L/var/files/netbsd/src.2/obj/destdir.hpcmips/usr/lib
-L/var/files/netbsd/src.2/obj/destdir.hpcmips/usr/lib
*** Error code 1

Thanks,
Claudio Neves