Subject: SASL2 and kerberos
To: None <netbsd-users@netbsd.org>
From: Louis Guillaume <lguillaume@berklee.edu>
List: netbsd-users
Date: 07/16/2003 11:46:20
Hello,

I'm trying to build then pkgsrc cyrus-sasl2 such that it would be able 
to authenticate users via the built-in Heimdal kerberos 5 that comes 
with NetBSD.

This is NetBSD-1.6U and a fresh cvs update of pkgsrc as of last night. 
Here's what I tried...

# SASL_USE_GSSAPI=YES make install

When it gets to "Making all in saslauthd", I see this error, which stops 
the build...

cc -DHAVE_CONFIG_H 
-DSASLAUTHD_CONF_FILE_DEFAULT=\"/usr/pkg/etc/saslauthd.conf\" -I. -I. 
-I.. -I./include -I../include  -I/usr/pkg/include -I/usr/local/include 
-I/usr/include -I/usr/include -I/usr/include -I/usr/include 
-I/usr/include -I/usr/include  -Wall -W -Wall -O2 -I/usr/pkg/include -c 
auth_krb5.c
auth_krb5.c:48: krb5.h: No such file or directory
*** Error code 1

... Looking at auth_krb5.c, there's this funky comment...


/* ok, this is  wrong but the most convenient way of doing
  * it for now. We assume (possibly incorrectly) that if GSSAPI exists then
  * the Kerberos 5 headers and libraries exist.
  * What really should be done is a configure.in check for krb5.h and use
  * that since none of this code is GSSAPI but rather raw Kerberos5.
  *
  * This function also has a bug where an alternate realm can't be
  * specified.
  */

/* PUBLIC DEPENDENCIES */
#include "mechanisms.h"

#ifdef AUTH_KRB5
# include <krb5.h>
#endif /* AUTH_KRB5 */


...I have a /usr/include/krb5/krb5.h. So I tried "#include 
<krb5/krb5.h>" and the build got a little further until...

ld: cannot find -lgssapi_krb5

...and I can't find that one either (libgssapi_krb5.a) so  I'm stuck.

Is anything missing from my system? Any help would be fantastic.

Many thanks,

Louis