From: Matthew X. Economou on
Hey everybody,

Whenever I try to build Cyrus SASL (from ports) with GSSAPI enabled,
autoconf returns the following errors. I don't know whether these are
due to problems with FreeBSD, with the port, or with the upstream
package. Would someone point me in the right direction?

configure:10594: checking for res_search in -lresolv
/usr/bin/ld: cannot find -lresolv
configure:10646: result: no

configure:10674: checking for gss_unwrap in -lgssapi
/usr/lib/libhx509.so: undefined reference to `MD2_Init'
/usr/lib/libhx509.so: undefined reference to `MD2_Final'
/usr/lib/libhx509.so: undefined reference to `MD2_Update'
configure:10726: result: no

configure:11111: WARNING: Disabling GSSAPI - specified library not
found

I posted config.log to http://pastebin.com/fcBEqJN0 and config.status
to http://pastebin.com/hRabJUST.

I'd appreciate any help.

Best wishes,
Matthew
From: Matthew X. Economou on
After discussing my build problems on the Cyrus SASL mailing list, I
was able to fix this problem, which was caused by the ports' version
of OpenSSL.

On Apr 12, 4:34 pm, "Matthew X. Economou" <xenophon+use...(a)irtnog.org>
wrote:
> configure:10674: checking for gss_unwrap in -lgssapi
> /usr/lib/libhx509.so: undefined reference to `MD2_Init'
> /usr/lib/libhx509.so: undefined reference to `MD2_Final'
> /usr/lib/libhx509.so: undefined reference to `MD2_Update'
> configure:10726: result: no

The above linker error was caused by the ports system linking the base
system's Kerberos 5 libraries against OpenSSL from ports, not the base
system's OpenSSL. I guess the OpenSSL port maintainer disabled MD2
support. Once I set "HEIMDAL_HOME=/usr" and "WITH_OPENSSL_BASE=yes"
in /etc/make.conf, I was able to build a version of Cyrus SASL that
included GSSAPI support.

Best wishes,
Matthew