Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Oct 2009 08:45:29 +0900
From:      Alexander Nedotsukov <bland@FreeBSD.org>
To:        Rick Macklem <rmacklem@uoguelph.ca>
Cc:        John Baldwin <john@baldwin.cx>, John Marshall <john.marshall@riverwillow.com.au>, Doug Rabson <dfr@FreeBSD.org>, freebsd-current@FreeBSD.org, George Mamalakis <mamalos@eng.auth.gr>
Subject:   Re: [PATCH] SASL problems with spnego on 8.0-BETA4
Message-ID:  <19306024-4C3D-41EC-A198-1652B047DF1A@FreeBSD.org>
In-Reply-To: <Pine.GSO.4.63.0910061856130.21826@muncher.cs.uoguelph.ca>
References:  <4AB27FB6.4010806@eng.auth.gr> <20090921222241.GF1001@rwpc12.mby.riverwillow.net.au> <20091002081319.GN37304@rwpc12.mby.riverwillow.net.au> <200910020824.15488.john@baldwin.cx> <Pine.GSO.4.63.0910061856130.21826@muncher.cs.uoguelph.ca>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail-6--459860985
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=us-ascii;
	format=flowed

Use this patch. 
--Apple-Mail-6--459860985
Content-Disposition: attachment;
	filename=libgssapi_foo.patch
Content-Type: application/octet-stream;
	name="libgssapi_foo.patch"
Content-Transfer-Encoding: 7bit

--- libgssapi_krb5/Makefile.orig	2009-10-07 08:32:45.526804858 +0900
+++ libgssapi_krb5/Makefile	2009-10-07 08:33:30.837746152 +0900
@@ -2,8 +2,8 @@
 
 LIB=	gssapi_krb5
 LDFLAGS= -Wl,-Bsymbolic
-LDADD=	-lkrb5 -lhx509 -lcrypto -lroken -lasn1 -lcom_err -lcrypt
-DPADD=	${LIBKRB5} ${LIBHX509} ${LIBCRYPTO} ${LIBROKEN} ${LIBASN1} \
+LDADD=	-lgssapi -lkrb5 -lhx509 -lcrypto -lroken -lasn1 -lcom_err -lcrypt
+DPADD=	${LIBGSSAPI} ${LIBKRB5} ${LIBHX509} ${LIBCRYPTO} ${LIBROKEN} ${LIBASN1} \
 	${LIBCOM_ERR} ${LIBCRYPT}
 
 INCS=	${KRB5DIR}/lib/gssapi/gssapi/gssapi_krb5.h
--- libgssapi_spnego/Makefile.orig	2009-10-07 08:32:37.694213217 +0900
+++ libgssapi_spnego/Makefile	2009-10-07 08:34:08.379282521 +0900
@@ -2,8 +2,8 @@
 
 LIB=	gssapi_spnego
 LDFLAGS= -Wl,-Bsymbolic
-LDADD=	-lasn1
-DPADD=	${LIBASN1}
+LDADD=	-lgssapi -lasn1
+DPADD=	${LIBGSSAPI} ${LIBASN1}
 
 SRCS=	accept_sec_context.c \
 	compat.c \

--Apple-Mail-6--459860985
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=us-ascii;
	format=flowed;
	delsp=yes



On 07.10.2009, at 8:01, Rick Macklem wrote:

>
>
> On Fri, 2 Oct 2009, John Baldwin wrote:
>
>>
>> Hmmm, I thought that libgssapi was supposed to use dlopen to load  
>> the proper
>> back-end libraries using /etc/gss/mech rather than having  
>> applications
>> directly link against them.
>>
> I think the problem is that the global var. defined in -lgssapi  
> doesn't
> get used by the app. so the .o file in -lgssapi where it's defined  
> doesn't
> get loaded. (Can't remember the exact name, but it's something like
> GSS_C_HOST_BASED_NAME.) Then, when -lgssapi-spengo gets loaded, it  
> can't
> resolve it. (I don't know enough about dynamic linking to know the
> correct way to fix this. The patch I suggested got it working...)
>
> rick
>
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org 
> "


--Apple-Mail-6--459860985--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19306024-4C3D-41EC-A198-1652B047DF1A>