Subject: Re: problems compiling SASL2 with GSSAPI
To: None <netbsd-help@netbsd.org>
From: Jukka Salmi <jukka-netbsd@2003.salmi.ch>
List: netbsd-help
Date: 10/21/2003 00:49:54
Ken Hornstein --> netbsd-help (2003-10-20 16:06:37 -0400):
> >I can't get cyrus-sasl2 from pkgsrc to compile successfully if I set
> >SASL_USE_GSSAPI to YES:
> 
> Offhand, it looks like the configure process has incorrectly picked
> "MIT" as the library type, instead of Heimdal.  Not sure why that happened,
> though.

You were right; after I convinced configure of using heimdal that problem
was solved. But now I'm getting undefined references:
[...]
cc  -Wall -W -Wall -O2 -I/usr/pkg/include -L/usr/local/lib -R/usr/local/lib  -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -L/usr/lib -L/usr/lib -L/usr/lib -L/usr/lib -L/usr/lib -o saslauthd  mechanisms.o auth_dce.o auth_getpwent.o auth_krb5.o  auth_krb4.o auth_pam.o auth_rimap.o auth_shadow.o auth_sia.o  auth_sasldb.o lak.o auth_ldap.o cache.o utils.o ipc_unix.o ipc_doors.o  saslauthd-main.o md5.o -L/usr/lib -lgssapi -lkrb5 -lasn1 -lroken -lcrypt -lcom_err -lresolv  -lcrypt -lresolv -lresolv -lresolv -lresolv
/usr/lib/libkrb5.so: undefined reference to `RAND_write_file'
/usr/lib/libkrb5.so: undefined reference to `des_is_weak_key'
/usr/lib/libkrb5.so: undefined reference to `RAND_add'
/usr/lib/libkrb5.so: undefined reference to `des_pcbc_encrypt'
/usr/lib/libkrb5.so: undefined reference to `SHA1_Init'
/usr/lib/libkrb5.so: undefined reference to `des_cfb64_encrypt'
[...]
/usr/lib/libgssapi.so: undefined reference to `MD5_Update'
*** Error code 1
[...]

Any hints?

TIA, Jukka

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