[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [SOLVED] Re: Tor fails to build connections after FreeBSD security update



On Fri, Dec 11, 2009 at 05:10:35AM -0600, Scott Bennett wrote:
>      On Fri, 11 Dec 2009 05:04:02 -0600 (CST) I wrote:
> >     I wrote:
> >>     On Sun, 6 Dec 2009 14:13:14 +0100 Hans Schnehl <torvallenator@xxxxxxxxx>
> >>wrote:
> >>>On Sun, Dec 06, 2009 at 04:37:51AM -0600, Scott Bennett wrote:
> >>>>      Hmm.  I have 0.9.8l installed, too, but I guess I don't know which
> >>>> version (i.e., base system vs. port) the build procedure for tor links in.
> >>>
> >>    [Much stuff deleted  --SB]
> >>>
> >>>I added  'WITH_OPENSSL_PORT=YES' to /etc/make.conf and let FreeBSD do the
> >>>rest with 'make install clean' in the tor-devel directory.
> >>>
> >>>Out comes a perfectly compiled binary doing what it is supposed to.
> >>>
>       [More stuff deleted  --SB]
> >>
> >>What, exactly, does the ports subsystem do to make tor build using the openssl
> >>port?
> >>     Any helpful suggestions, other than to build tor from the tor-devel port,
> >>which I have no intention of doing, would be greatly appreciated.  In the
> >>meantime, I no longer have a working tor. :---*(
> >>
> >     Never mind. :-)
> >     I did play with the security/tor-devel port, but didn't install it.
> >Looking at the output, I noticed that the link edit of tor had a
> >"-rpath=/usr/local/lib" on the gcc command that I didn't have in mine.
> 
>      I made a crucial typo below.
> 
> >Adding 'LDFLAGS="-rpath-/usr/local/lib"' to the ./configure took care of the
>                         ^ should be equal sign '='
> >problem.  0.2.2.6-alpha is running properly now. :-)
> >     Thanks, Hans, for the clues that were indeed in your message.  I just
> >was a bit slow on the uptake.
> >

Yep. 
Well, if NOT using the ports, below works too, apart from Scott's
solution. 
---------------
This is /bin/csh; Consider setting ENV according to your shell.


# setenv LD_LIBRARY_PATH /usr/local/lib  ## may be removed after build 

# echo $LD_LIBRARY_PATH/
/usr/local/lib/

# tar xzf tor-0.2.2.6-alpha.tar.gz   ## or git    

# cd tor-0.2.2.6-alpha

# ./configure --with-openssl-dir=/usr/local/lib && make

# ldd src/or/tor
src/or/tor:
	libz.so.4 => /lib/libz.so.4 (0x8817f000)
	libm.so.5 => /lib/libm.so.5 (0x88191000)
	libevent-1.4.so.3 => /usr/local/lib/libevent-1.4.so.3 (0x881a6000)
	libssl.so.5 => /usr/local/lib/libssl.so.5 (0x881bc000)
	libcrypto.so.5 => /usr/local/lib/libcrypto.so.5 (0x88200000)
	libthr.so.3 => /lib/libthr.so.3 (0x88347000)
	libc.so.7 => /lib/libc.so.7 (0x8835b000)
	librt.so.1 => /usr/lib/librt.so.1 (0x88447000)


----------------

This update, BTW, will not only break the 'small fraction of the router
population' ;), but also all those using Tor as a client until up
to 8 Stable on newly installed and updated FreeBSD systems.  
What's on 9 -Current ?