Date: Sat, 12 Dec 2009 17:55:16 -0600 (CST) From: Scott Bennett <bennett@cs.niu.edu> To: Lena@lena.kiev.ua, freebsd-questions@freebsd.org Subject: Re: Mutt and openssl from port Message-ID: <200912122355.nBCNtGOL007666@mp.cs.niu.edu>
next in thread | raw e-mail | index | archive | help
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 * **********************************************************************
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912122355.nBCNtGOL007666>