Subject: building src/libexec/telnetd fails if MKKERBEROS4=no
To: None <current-users@netbsd.org>
From: Jukka Salmi <j+nbsd@2004.salmi.ch>
List: current-users
Date: 12/20/2004 23:12:04
--6TrnltStXW4iwmi0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Hi,
building src/libexec/telnetd fails if MKKERBEROS4 is set to 'no'
(for both HEAD and netbsd-2-0 sources): I'm getting undefined
references to des_new_random_key, des_ecb_encrypt, des_key_sched and
des_init_random_number_generator. These symbols seem to be in libdes;
however, -ldes is added to LDADD only if Kerberos IV is built.
How should this problem be solved? Does the attached patch make
sense?
TIA, Jukka
--
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~
--6TrnltStXW4iwmi0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="telnetd.no-krb4.patch"
--- libexec/telnetd/Makefile.orig 2003-12-13 23:07:35.000000000 +0100
+++ libexec/telnetd/Makefile 2004-12-20 23:06:55.000000000 +0100
@@ -21,12 +21,12 @@
.if (${USE_KERBEROS} != "no")
CPPFLAGS+=-I${DESTDIR}/usr/include/krb5
CPPFLAGS+=-DKRB5 -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
--6TrnltStXW4iwmi0--