[Tor-BSD] Having issues forcing Tor release 0.2.6.9 to build with update libssl.so.32.0 library
Seth
list at sysfu.com
Tue Jun 30 14:23:14 EDT 2015
On Tue, 30 Jun 2015 08:20:12 -0700, teor <teor2345 at gmail.com> wrote:
> As a quick shortcut, does
> ./configure --with-openssl-dir=/usr/local …
> get you linkage to libcrypto and libssl in /usr/local/lib?
> (You were using --with-openssl-dir=/usr/local/lib, apologies for not
> picking this up sooner.)
I didn't pick up on it either until you gave the /usr/local example.
Here's the linkage when configured with './configure
--with-openssl-dir=/usr/local'
$ ldd /usr/local/bin/tor | grep -E 'lib(ssl|crypto)'
00000a658d3c8000 00000a658d827000 rlib 0 1 0
/usr/lib/libssl.so.32.0
00000a659d845000 00000a659de15000 rlib 0 1 0
/usr/local/lib/libcrypto.so.33.0
Same procedure with the symlink removed: /usr/bin/openssl ->
/usr/local/bin/openssl
$ ldd /usr/local/bin/tor | grep -E 'lib(ssl|crypto)'
0000145c5e473000 0000145c5e8d2000 rlib 0 1 0
/usr/lib/libssl.so.32.0
0000145be77b0000 0000145be7d80000 rlib 0 1 0
/usr/local/lib/libcrypto.so.33.0
> If you can run a verbose build that shows the linker command used to
> link the tor binary, that would be helpful.
>
> Can you try:
> CC="/usr/bin/gcc -v" ./configure --with-openssl-dir=/usr/local/lib
>
> If this works, can you please provide the output of make, after the line:
> CCLD src/or/tor
>
> This will help me see what arguments are actually being passed to the
> linker.
Did not work, but capture make output after requested line attached anyhow.
> One of the following methods should give you a tor binary that's linked
> with /usr/local/lib/libssl.so and /usr/local/lib/libcrypto.so. Once I
> know which method produces a correctly linked tor binary, I'll have
> enough information to log a bug with the Tor Trac system.
>
> If you do these in order, please feel free to stop at the first
> successful method. I only need to know how to get correct tor linkage,
> with the earliest Tor version, and the fewest extra arguments to
> ./configure.
>
> Using the sources for Tor 0.2.6.9:
>
> 1. Using --with-openssl-dir=/usr/local
> ./configure --with-openssl-dir=/usr/local
> (You used /usr/local/lib previously. This could be the issue.)
_Failed_ (see above)
> 2. Using --with-openssl-dir=/usr/local with /usr/local/bin first in the
> path
> PATH=/usr/local/bin:$PATH ./configure --with-openssl-dir=/usr/local
_Failed_
$ ldd /usr/local/bin/tor | grep -E "lib(ssl|crypto)"
00001a887ced2000 00001a887d331000 rlib 0 1 0
/usr/lib/libssl.so.32.0
00001a87f355d000 00001a87f3b2d000 rlib 0 1 0
/usr/local/lib/libcrypto.so.33.0
$ grep openssl config.log
$ ./configure --with-openssl-dir=/usr/local
configure:5972: checking for openssl
configure:5990: found /usr/local/bin/openssl
configure:6003: result: /usr/local/bin/openssl
configure:7793: checking for openssl directory
configure:8002: checking whether we need extra options to link openssl
ac_cv_path_OPENSSL=/usr/local/bin/openssl
tor_cv_library_openssl_dir=/usr/local
tor_cv_library_openssl_linker_option='(none)'
OPENSSL='/usr/local/bin/openssl'
TOR_CPPFLAGS_openssl='-I/usr/local/include'
TOR_LDFLAGS_openssl='-L/usr/local/lib'
> Using the latest git sources for Tor 0.2.7.?-alpha:
>
> 3. Using --with-openssl-dir=/usr/local with the latest version of tor
> ./configure --with-openssl-dir=/usr/local
Built with the following commands (.configure failed BTW without including
asciidoc switch)
$ sudo AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.15 sh autogen.sh
$ sudo ./configure --with-openssl-dir=/usr/local --disable-asciidoc
$ sudo make check; sudo make install
_Failed_
$ ldd /usr/local/bin/tor | grep -E "lib(ssl|crypto)"
0000053a363a5000 0000053a36804000 rlib 0 1 0
/usr/lib/libssl.so.32.0
00000539994b0000 0000053999a80000 rlib 0 1 0
/usr/local/lib/libcrypto.so.33.0
> 4. Using --with-openssl-dir=/usr/local with the latest version of tor
> and /usr/local/bin first in the path
> PATH=/usr/local/bin:$PATH ./configure --with-openssl-dir=/usr/local
_Failed_
ldd /usr/local/bin/tor | grep -E "lib(ssl|crypto)"
000002a10518f000 000002a1055ee000 rlib 0 1 0
/usr/lib/libssl.so.32.0
000002a11979d000 000002a119d6d000 rlib 0 1 0
/usr/local/lib/libcrypto.so.33.0
Commands used
$ sudo PATH=/usr/local/bin:$PATH ./configure --with-openssl-dir=/usr/local
--disable-asciidoc
$ sudo make check;sudo make install
> Thanks for bearing with me during this process.
Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tor-make-log-cut.log
Type: application/octet-stream
Size: 4035 bytes
Desc: not available
URL: <http://lists.nycbug.org/pipermail/tor-bsd/attachments/20150630/f4e47edf/attachment.obj>
More information about the Tor-BSD
mailing list