From owner-freebsd-questions@FreeBSD.ORG Sun Dec 13 16:54:31 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4B5E4106568B for ; Sun, 13 Dec 2009 16:54:31 +0000 (UTC) (envelope-from Lena@lena.kiev.ua) Received: from mx3.cyfra.ua (mx3.cyfra.ua [62.80.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 01FE98FC12 for ; Sun, 13 Dec 2009 16:54:30 +0000 (UTC) Received: from c.206.174.a516.dyn.adsl.cyfra.net ([62.80.174.206] helo=bedside.lena.kiev.ua) by mx3.cyfra.ua with esmtp (Exim 4.68) (envelope-from ) id 1NJriH-0006hu-VI for freebsd-questions@freebsd.org; Sun, 13 Dec 2009 18:54:30 +0200 Received: from bedside.lena.kiev.ua (localhost.lena.kiev.ua [127.0.0.1]) by bedside.lena.kiev.ua (8.14.3/8.14.3) with ESMTP id nBDGsJON019553; Sun, 13 Dec 2009 18:54:19 +0200 (EET) (envelope-from Lena@lena.kiev.ua) Received: (from lena@localhost) by bedside.lena.kiev.ua (8.14.3/8.14.3/Submit) id nBDGsI9q019552; Sun, 13 Dec 2009 18:54:18 +0200 (EET) (envelope-from Lena@lena.kiev.ua) Date: Sun, 13 Dec 2009 18:54:18 +0200 From: Lena@lena.kiev.ua To: Scott Bennett Message-ID: <20091213165418.GA19522@lena.kiev> References: <200912122355.nBCNtGOL007666@mp.cs.niu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200912122355.nBCNtGOL007666@mp.cs.niu.edu> User-Agent: Mutt/1.4.2.3i Cc: freebsd-questions@freebsd.org Subject: Re: Mutt and openssl from port 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, 13 Dec 2009 16:54:31 -0000 On Sat, Dec 12, 2009 at 05:55:16PM -0600, Scott Bennett wrote: > On Sat, 12 Dec 2009 21:46:27 +0200 Lena()lena.kiev.ua wrote: > >7.1-PRERELEASE. I'd like Mutt to use zlib compression when connecting to pop3s. > >openssl in base doesn't support zlib. I installed openssl port from package > >(in the port zlib in on by default), wrote in make.conf: > > > >WITH_OPENSSL_PORT=yes > > > >and `portupgrade -f mutt`. However, Mutt still uses openssl from base: > > > >~ $ ldd /usr/local/bin/mutt > >/usr/local/bin/mutt: > > libncursesw.so.7 => /lib/libncursesw.so.7 (0x28103000) > > libssl.so.5 => /usr/lib/libssl.so.5 (0x2814f000) > > libcrypto.so.5 => /lib/libcrypto.so.5 (0x28190000) > > libintl.so.8 => /usr/local/lib/libintl.so.8 (0x282ea000) > > libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x282f3000) > > libc.so.7 => /lib/libc.so.7 (0x283ea000) > > Right. We tor users just went through that, too. The problem is that > what WITH_OPENSSL_PORT=YES does is to add -L/usr/local/lib to the cc or gcc > command that does the link edit step. However, that adds the desired > directory to the *end* of the list of directories to be searched, when what > you want is to put it at the beginning of the list. What I ended up doing > was to add LDFLAGS="-rpath=/usr/local/lib" to the ./configure step for tor, > so you may want to take a look at the "make config" target to see how best > to do that for mutt. Be careful that the use of -rpath won't cause it to > include libraries from /usr/local/lib instead of from the base system for > other stuff where you might not want that to happen. Thanks, this seems to work: =========================================================================== --- Makefile.orig 2009-02-11 21:08:46.000000000 +0200 +++ Makefile 2009-12-13 18:05:06.000000000 +0200 @@ -83,9 +83,9 @@ GNU_CONFIGURE= yes USE_AUTOTOOLS= automake:19 autoconf:262 LDFLAGS+= -L${LOCALBASE}/lib -CONFIGURE_ENV= CC="${CC} -I${LOCALBASE}/include" LDFLAGS="${LDFLAGS}" +CONFIGURE_ENV= CC="${CC} -I${LOCALBASE}/include" LDFLAGS="-rpath=/usr/local/lib ${LDFLAGS}" CONFIGURE_ARGS= --enable-pop --enable-imap --disable-fcntl \ - --with-ssl=${OPENSSLBASE} --sysconfdir=${PREFIX}/etc \ + --with-ssl=/usr/local --sysconfdir=${PREFIX}/etc \ --with-sharedir=${PREFIX}/share/mutt \ --with-docdir=${DOCSDIR} --with-charmaps \ --enable-compressed =========================================================================== ~ $ ldd /usr/local/bin/mutt /usr/local/bin/mutt: libncursesw.so.7 => /lib/libncursesw.so.7 (0x28103000) libssl.so.5 => /usr/local/lib/libssl.so.5 (0x2814f000) libcrypto.so.5 => /usr/local/lib/libcrypto.so.5 (0x28193000) libintl.so.8 => /usr/local/lib/libintl.so.8 (0x282da000) libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x282e3000) libc.so.7 => /lib/libc.so.7 (0x283da000) libz.so.4 => /lib/libz.so.4 (0x284d9000) libthr.so.3 => /lib/libthr.so.3 (0x284eb000)