From owner-freebsd-questions@FreeBSD.ORG Sun Apr 23 01:16:26 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EFD0716A403 for ; Sun, 23 Apr 2006 01:16:26 +0000 (UTC) (envelope-from slitbit@fastmail.fm) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9287943D46 for ; Sun, 23 Apr 2006 01:16:26 +0000 (GMT) (envelope-from slitbit@fastmail.fm) Received: from frontend2.internal (frontend2.internal [10.202.2.151]) by frontend1.messagingengine.com (Postfix) with ESMTP id 3E0ACD4C6CD; Sat, 22 Apr 2006 21:16:24 -0400 (EDT) Received: from web2.messagingengine.com ([10.202.2.211]) by frontend2.internal (MEProxy); Sat, 22 Apr 2006 21:15:44 -0400 Received: by web2.messagingengine.com (Postfix, from userid 99) id B2E5646; Sat, 22 Apr 2006 21:15:44 -0400 (EDT) Message-Id: <1145754944.27350.259695638@webmail.messagingengine.com> X-Sasl-Enc: BowHrpH/o9ej+WYFOqOPVdl/td4YqBPNjACNrukOfe3k 1145754944 From: "ph rhole oper" To: "Andrew Pantyukhin" , freebsd-questions@freebsd.org Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="ISO-8859-7" MIME-Version: 1.0 X-Mailer: MIME::Lite 5022 (F2.72; T1.15; A1.62; B3.04; Q3.03) References: <1145613149.19574.259591981@webmail.messagingengine.com> In-Reply-To: Date: Sun, 23 Apr 2006 04:15:44 +0300 Cc: Subject: Re: port building & linking X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Apr 2006 01:16:27 -0000 On Sat, 22 Apr 2006 20:26:28 +0400, "Andrew Pantyukhin" said: > On 4/21/06, ph rhole oper wrote: > > I need to build a port (mail/cyrus-imapd23) and add support for the > > mit-kerberos implementation to it. > > It needs to link to the -lkrb5 library.There are two libkrb5*.so in my > > system: > > the heimdal one (/usr/lib/libkrb5*.so) and the mit one > > (/usr/local/lib/libkrb5*.so). > > The configure script, searching for -lkrb5, finds /usr/lib/libkrb5.so > > first, and links to the heimdal implementation. > > Is there any way i can force it to only link against > > /usr/local/lib/libkrb5.so?I need the mit implementation. > > > > > > simon. > > > > -- > > http://www.fastmail.fm - Access your email from home and the web > > > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > > > Are you talking about cyrus-imapd or cyrus-sasl? cyrus-sasl cyrus-imapd23 > has some options in its Makefile, like KRB5_HOME. interesting option but i didnt see anything like this for cyrus-imapd.I solved the problem with a rather drastic way though: cd /usr/lib && for i in *krb5* *com_err* *gss*;do mv -v $i heimdal.$i;done && ldconfig -R && export LDFLAGS="-L/usr/local/lib -lkrb5 -lkrb5support -lcom_err -lgssapi" && cd /usr/ports/cyrus-imapd23/ && make install just temporarily to force it use the /usr/local/lib/* libraries. simon. -- http://www.fastmail.fm - Accessible with your email software or over the web