Subject: Re: distribution build fails if MKKERBEROS4=no
To: None <netbsd-help@netbsd.org>
From: Jukka Salmi <j+nbsd@2004.salmi.ch>
List: netbsd-help
Date: 12/20/2004 18:26:18
Jukka Salmi --> netbsd-help (2004-12-20 17:34:53 +0100):
> Hi,
> 
> I just tried to build a distribution with the following variables set
> to "no": MKBFD, MKCVS, MKGCCCMDS, MKGDB, MKHESIOD, MKKERBEROS4, MKLINT,
> MKSENDMAIL, MKSHARE, MKSKEY, MKUUCP, MKYP.
> 
> I intentionally disabled Kerberos IV only; I still want Kerberos V.
> 
> Everything went fine until libexec/telnetd was linked, but this resulted
> in undefined references to des_new_random_key, des_ecb_encrypt,
> des_key_sched and des_init_random_number_generator. Seems like libdes
> was missing. I noticed libexec/telnetd/Makefile adds -ldes to LDADD only
> if Kerberos IV is built.

To be more precise: lib/libtelnet/Makefile adds enc_des.c (which contains
calls to the functions mentioned above) to SRCS for Kerberos V, but
libexec/telnetd/Makefile adds -ldes to LDADD only for Kerberos IV; so
this is probably a bug for which a PR should be sent...


Cheers, Jukka

> What's the correct solution to this problem? Add -ldes for Kerberos V
> too? At least this satisfies the linker...

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~