From owner-freebsd-questions@FreeBSD.ORG Sat Dec 12 23:55:21 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 567A71065672 for ; Sat, 12 Dec 2009 23:55:21 +0000 (UTC) (envelope-from bennett@cs.niu.edu) Received: from mp.cs.niu.edu (mp.cs.niu.edu [131.156.145.41]) by mx1.freebsd.org (Postfix) with ESMTP id 12A5E8FC0C for ; Sat, 12 Dec 2009 23:55:20 +0000 (UTC) Received: from mp.cs.niu.edu (bennett@localhost [127.0.0.1]) by mp.cs.niu.edu (8.14.3/8.14.3) with ESMTP id nBCNtGrl007667; Sat, 12 Dec 2009 17:55:16 -0600 (CST) Date: Sat, 12 Dec 2009 17:55:16 -0600 (CST) From: Scott Bennett Message-Id: <200912122355.nBCNtGOL007666@mp.cs.niu.edu> To: Lena@lena.kiev.ua, freebsd-questions@freebsd.org Cc: 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: Sat, 12 Dec 2009 23:55:21 -0000 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. >Then I patched /usr/ports/mail/mutt/Makefile : > > CONFIGURE_ARGS= --enable-pop --enable-imap --disable-fcntl \ >- --with-ssl=${OPENSSLBASE} --sysconfdir=${PREFIX}/etc \ >+ --with-ssl=/usr/local --sysconfdir=${PREFIX}/etc \ > >but got the same. I suppose that OPENSSL_OVERWRITE_BASE doesn't work: >http://lists.freebsd.org/pipermail/freebsd-questions/2004-November/065565.html >What can I do? > See explanation above. Scott Bennett, Comm. ASMELG, CFIAG ********************************************************************** * Internet: bennett at cs.niu.edu * *--------------------------------------------------------------------* * "A well regulated and disciplined militia, is at all times a good * * objection to the introduction of that bane of all free governments * * -- a standing army." * * -- Gov. John Hancock, New York Journal, 28 January 1790 * **********************************************************************