tor- build issues with zlib

tabi meta tabimeta at
Sat Nov 3 08:44:43 UTC 2007

hi torizens...

1 - how can i tell tor to compile and use the zlib in /usr/local ? 
 there are two zlib versions on the system. the older supports
 legacy apps. there doesn't seem to be a --with-zlib-dir option
 to do this.
2 - i get a gzip test error as below.

i've checked the bugtracker for both, no entries.
ideas? thx.

# installed in /usr

# installed in /usr/local

# host
pentiumII, freebsd 4.11-STABLE [really RELENG_4 as of a week ago]

# build info
ports/packages are not used, all from original sources.
configure options: --prefix, --mandir
configure, make, make install output is completely clean as usual, no
tor itself runs fine, no problems. just ignore the torrc and socket
stuff below.

# build output - zlib related
cf.std: checking zlib.h usability... yes
cf.std: checking zlib.h presence... yes
cf.std: checking for zlib.h... yes
mk.std: gcc  -g -O2 -Wall -g -O2  -L/usr/local/lib -o tor <objs>
 ../common/libor.a ../common/libor-crypto.a -lz -lssl -lcrypto -levent
-lssl -lcrypto
mk.std: gcc  -g -O2 -Wall -g -O2  -L/usr/local/lib -o test <objs>
 ../common/libor.a ../common/libor-crypto.a -lz -lssl -lcrypto -levent
-lssl -lcrypto

# ldd
tor01218/tor- => /usr/lib/ (0x28105000) => /usr/local/lib/ (0x28112000) => /usr/local/lib/
(0x2814d000) => /usr/local/lib/
(0x2827a000) => /usr/lib/ (0x2828e000)
tor01218/tor- => /usr/lib/ (0x28119000) => /usr/local/lib/ (0x28126000) => /usr/local/lib/
(0x28161000) => /usr/local/lib/
(0x2828e000) => /usr/lib/ (0x282a2000)

# exec - works fine, this is just a test
[notice] Tor v0.1.2.18. This is experimental software. Do not rely on
it for strong anonymity.
[notice] Configuration file "/usr/local/tor01218/etc/tor/torrc" not
present, using reasonable defaults.
[notice] Initialized libevent version 1.3e using method kqueue. Good.
[notice] Opening Socks listener on
[warn] Could not bind to Address already in use. Is Tor
already running?
[warn] Failed to parse/validate config: Failed to bind one of the
listener ports.
[err] Reading config failed--see warnings above.

# exec - excess .'s trimmed
Running Tor unit tests on FreeBSD i386
========================== Buffers =========================
========================== Crypto ==========================
========================= Util ============================
File test.c: line 1136 (test_gzip): assertion failed:
(!tor_gzip_compress(&buf2, &len1, buf1, strlen(buf1)+1, GZIP_METHOD))
========================= Onion Skins =====================
========================= Directory Formats ===============
========================= Policies ===================
========================= Rendezvous functionality ========

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

More information about the tor-talk mailing list