Re: gssapi: Undefined symbol "GSS_C_NT_HOSTBASED_SERVICE" and "gss_oid_equal"

From: Robert Noland <rnoland_at_FreeBSD.org>
Date: Wed, 24 Sep 2008 19:04:41 -0400
On Thu, 2008-09-25 at 00:02 +0400, Boris Samorodov wrote:
> Hi All,
> 
> 
> I've done a fresh install of 8-amd64-current system, added a
> cyrus-imapd (packaged at tinderbox -- another host). And I can't use
> gssapi:

Please try this patch... I sent it to the maintainer during the freeze.

robert.

> -----
> moosa% imtest -m gssapi imap.domain.ru
> S: * OK imap.domain.ru Cyrus IMAP4 v2.2.10 server ready
> C: C01 CAPABILITY
> S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUB
> JECT THREAD=REFERENCES ANNOTATEMORE IDLE STARTTLS AUTH=NTLM AUTH=GSSAPI AUTH=OTP AUTH=DIGEST-MD5 AUTH=CRAM-MD5 SASL-IR X-NETSCAPE
> S: C01 OK Completed
> C: A01 AUTHENTICATE GSSAPI
> S: +
> dlopen: /usr/lib/libgssapi_spnego.so.10: Undefined symbol "GSS_C_NT_HOSTBASED_SERVICE"
> /libexec/ld-elf.so.1: /usr/lib/libgssapi_krb5.so.10: Undefined symbol "gss_oid_equal"
> -----
> 
> Some additional info (kernel is GENERIC without WITNESS* and INVARIANTS*):
> -----
> moosa% uname -a
> FreeBSD moosa 8.0-CURRENT FreeBSD 8.0-CURRENT #1: Tue Sep 23 01:42:30 MSD 2008     root_at_moosa:/usr/obj/usr/src/sys/MOOSA  amd64
> moosa% sysctl kern.osreldate
> kern.osreldate: 800049
> moosa% file `which imtest`
> /usr/local/bin/imtest: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), for FreeBSD 8.0 (800045), dynamically linked (uses shared libs), FreeBSD-style, strippe
> d
> moosa% strings /usr/lib/libgssapi_spnego.so.10 | grep GSS_C_NT_HOSTBASED_SERVICE
> GSS_C_NT_HOSTBASED_SERVICE
> moosa% strings /usr/lib/libgssapi_krb5.so.10 | grep gss_oid_equal
> gss_oid_equal
> -----
> 
> Any help is appreciated. Thanks!
> 
> 
> WBR

===> Updating from CVS
M Makefile
A files/extra-patch-configure
===> Generating patch
===> Viewing diff with less
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/mail/cyrus-imapd23/Makefile,v
retrieving revision 1.173
diff -u -r1.173 Makefile
--- Makefile	20 Aug 2008 00:56:55 -0000	1.173
+++ Makefile	17 Sep 2008 23:04:16 -0000
_at__at_ -137,7 +137,7 _at__at_
 .endif
 
 .if ${OSVERSION} >= 800037
-BROKEN=		does not compile
+EXTRA_PATCHES+=	${FILESDIR}/extra-patch-configure
 .endif
 
 CYRUS_USER?=	cyrus
Index: files/extra-patch-configure
===================================================================
RCS file: files/extra-patch-configure
diff -N files/extra-patch-configure
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/extra-patch-configure	17 Sep 2008 23:04:16 -0000
_at__at_ -0,0 +1,20 _at__at_
+--- configure.orig	2008-04-25 14:34:53.000000000 -0400
++++ configure	2008-09-17 18:46:12.000000000 -0400
+_at__at_ -14921,7 +14922,7 _at__at_
+   echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+   ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lgssapi ${GSSAPIBASE_LIBS} -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err ${LIB_SOCKET} $LIBS"
++LIBS="-lgssapi ${GSSAPIBASE_LIBS} -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err ${LIB_SOCKET} -lhx509 $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h.  */
+ _ACEOF
+_at__at_ -15391,7 +15392,7 @@
+     GSSAPIBASE_STATIC_LIBS="$GSSAPIBASE_LIBS $gssapi_dir/libgssapi_krb5.a $gssapi_dir/libkrb5.a $gssapi_dir/libk5crypto.a $gssapi_dir/libcom_err.a ${K5SUPSTATIC}"
+   elif test "$gss_impl" = "heimdal"; then
+     CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL"
+-    GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err"
++    GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err -lhx509"
+     GSSAPIBASE_STATIC_LIBS="$GSSAPIBASE_STATIC_LIBS $gssapi_dir/libgssapi.a $gssapi_dir/libkrb5.a $gssapi_dir/libasn1.a $gssapi_dir/libroken.a $gssapi_dir/libcom_err.a ${LIB_CRYPT}"
+   elif test "$gss_impl" = "cybersafe03"; then
+ # Version of CyberSafe with two libraries
===> Done
Received on Wed Sep 24 2008 - 21:05:12 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:35 UTC