Subject: Re: misc/28727: building src/libexec/telnetd fails if MKKERBEROS4=no
To: None <netbsd-bugs@netbsd.org>
From: Jukka Salmi <j+nbsd@2004.salmi.ch>
List: netbsd-bugs
Date: 12/21/2004 00:33:08
--qDbXVdCdHGoSgWSk
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
The telnet client seems to need the same patch as telnetd:
# link telnet/telnet
/opt/tools/bin/i386--netbsdelf-gcc -Wl,-nostdlib -o telnet -Wl,-rpath-link,/opt/dst/embed/lib:/opt/dst/embed/usr/lib -L/opt/dst/embed/lib -B/opt/dst/embed/usr/lib/ -B/opt/dst/embed/usr/lib/ authenc.o commands.o main.o network.o ring.o sys_bsd.o telnet.o terminal.o tn3270.o utilities.o -ltermcap /build/nbsd/embed/lib/libtelnet/libtelnet.a -lipsec -lkrb5 -lasn1 -lcrypto -lcom_err -lroken -L/opt/dst/embed/usr/lib -L/opt/dst/embed/usr/lib
/build/nbsd/embed/lib/libtelnet/libtelnet.a(enc_des.o)(.text+0x167): In function `ofb64_start':
: undefined reference to `des_new_random_key'
/build/nbsd/embed/lib/libtelnet/libtelnet.a(enc_des.o)(.text+0x174): In function `ofb64_start':
: undefined reference to `des_ecb_encrypt'
[...]
/build/nbsd/embed/lib/libtelnet/libtelnet.a(enc_des.o)(.text+0xa21): In function `ofb64_decrypt':
: undefined reference to `des_ecb_encrypt'
collect2: ld returned 1 exit status
*** Failed target: telnet
*** Failed command: /opt/tools/bin/i386--netbsdelf-gcc -Wl,-nostdlib -o telnet -Wl,-rpath-link,/opt/dst/embed/lib:/opt/dst/embed/usr/lib -L/opt/dst/embed/lib -B/opt/dst/embed/usr/lib/ -B/opt/dst/embed/usr/lib/ authenc.o commands.o main.o network.o ring.o sys_bsd.o telnet.o terminal.o tn3270.o utilities.o -ltermcap /build/nbsd/embed/lib/libtelnet/libtelnet.a -lipsec -lkrb5 -lasn1 -lcrypto -lcom_err -lroken -L/opt/dst/embed/usr/lib -L/opt/dst/embed/usr/lib
*** Error code 1
Stop.
nbmake: stopped in /usr/src/usr.bin/telnet
[...]
The attached patch should fix this.
--
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~
--qDbXVdCdHGoSgWSk
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="telnet.no-krb4.patch"
--- usr.bin/telnet/Makefile.orig 2003-12-13 23:07:35.000000000 +0100
+++ usr.bin/telnet/Makefile 2004-12-21 00:29:20.000000000 +0100
@@ -59,12 +59,12 @@
.if (${USE_KERBEROS} != "no")
CPPFLAGS+=-I${DESTDIR}/usr/include/krb5
CPPFLAGS+=-DKRB5 -DFORWARD -DAUTHENTICATION -DENCRYPTION
-LDADD+= -lkrb5 -lasn1 -lcrypto
+LDADD+= -lkrb5 -lasn1 -lcrypto -ldes
DPADD+= ${LIBKRB5} ${LIBASN1} ${LIBCRYPTO}
.if (${USE_KERBEROS4} != "no")
CPPFLAGS+= -DKRB4
-LDADD+= -lkrb -ldes
+LDADD+= -lkrb
DPADD+= ${LIBKRB} ${LIBDES}
.endif
--qDbXVdCdHGoSgWSk--