From owner-freebsd-current@FreeBSD.ORG Tue Oct 6 23:45:37 2009 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4176D1065692; Tue, 6 Oct 2009 23:45:37 +0000 (UTC) (envelope-from bland@FreeBSD.org) Received: from mail2.asahi-net.or.jp (mail2.asahi-net.or.jp [202.224.39.198]) by mx1.freebsd.org (Postfix) with ESMTP id BE7438FC27; Tue, 6 Oct 2009 23:45:36 +0000 (UTC) Received: from hub.bbnest.net (w133033.ppp.asahi-net.or.jp [121.1.133.33]) by mail2.asahi-net.or.jp (Postfix) with ESMTP id 08BC176865; Wed, 7 Oct 2009 08:45:34 +0900 (JST) Received: from nest.bbnest.net (nest.bbnest.net [10.0.0.249]) by hub.bbnest.net (8.14.3/8.14.3) with ESMTP id n96NjTa1030019 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Wed, 7 Oct 2009 08:45:29 +0900 (JST) (envelope-from bland@FreeBSD.org) Mime-Version: 1.0 (Apple Message framework v1076) Content-Type: multipart/mixed; boundary=Apple-Mail-6--459860985 From: Alexander Nedotsukov In-Reply-To: Date: Wed, 7 Oct 2009 08:45:29 +0900 Message-Id: <19306024-4C3D-41EC-A198-1652B047DF1A@FreeBSD.org> 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> To: Rick Macklem X-Mailer: Apple Mail (2.1076) X-DSPAM-Result: Whitelisted X-DSPAM-Processed: Wed Oct 7 08:45:34 2009 X-DSPAM-Confidence: 0.9995 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 4acbd69e300201779819952 Cc: John Baldwin , John Marshall , Doug Rabson , freebsd-current@FreeBSD.org, George Mamalakis Subject: Re: [PATCH] SASL problems with spnego on 8.0-BETA4 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Oct 2009 23:45:37 -0000 --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--