[tor-bugs] #9230 [Tor]: tor current compile breakage "libor-crypto.a" undefined EVP_aes_128_ctr
Tor Bug Tracker & Wiki
blackhole at torproject.org
Fri Jul 12 11:25:04 UTC 2013
#9230: tor current compile breakage "libor-crypto.a" undefined EVP_aes_128_ctr
------------------------+---------------------------------------------------
Reporter: yancm | Owner:
Type: defect | Status: new
Priority: normal | Milestone: Tor: 0.2.4.x-final
Component: Tor | Version: Tor: unspecified
Keywords: tor-client | Parent:
Points: | Actualpoints:
------------------------+---------------------------------------------------
Comment(by yancm):
The only way I was able to get it to compile previously was to edit the
generated Makefile directly (but I will give the make V=1 output below)...
however... maybe we need to understand why the --with-openssl-dir=/usr/pkg
flag to configure is not picking up the pkgsrc openssl as the primary
problem here? configure clearly points to the system openssl (older)
rather than the one in /usr/pkg...which is reflected in Makefile...
# make V=1
make all-am
gcc -g -O2 -D_FORTIFY_SOURCE=2 -fstack-protector-all -Wstack-protector
-fwrapv --param ssp-buffer-size=1 -fPIE -Wall -fno-strict-aliasing -pie
-z relro -z now -o src/tools/tor-gencert src/tools/tor-gencert.o
src/common/libor.a src/common/libor-crypto.a
src/common/libcurve25519_donna.a -lm -lz -lssl -lcrypto -lpthread
src/common/libor-crypto.a(aes.o): In function `aes_new_cipher':
src/common/aes.c:100: undefined reference to `EVP_aes_128_ctr'
*** Error code 1
Stop.
make: stopped in /usr/local/src/tor
*** Error code 1
Stop.
make: stopped in /usr/local/src/tor
#
I do believe the pkgsrc openssl has a shared library:
In /ust/pkg/lib...
# ls -lasd *ssl*
0 lrwxr-xr-x 1 root wheel 29 Jun 10 20:43
libevent_openssl-2.0.so.5@ -> libevent_openssl-2.0.so.5.1.9
22 -rwxr-xr-x 1 root wheel 21841 Jun 10 20:43
libevent_openssl-2.0.so.5.1.9*
16 -rw-r--r-- 1 root wheel 14904 Jun 10 20:43 libevent_openssl.a
2 -rwxr-xr-x 1 root wheel 1074 Jun 10 20:43 libevent_openssl.la*
0 lrwxr-xr-x 1 root wheel 29 Jun 10 20:43 libevent_openssl.so@ ->
libevent_openssl-2.0.so.5.1.9
512 -rw-r--r-- 1 root wheel 500698 Jun 3 17:53 libssl.a
0 lrwxr-xr-x 1 root wheel 15 Jun 3 17:53 libssl.so@ ->
libssl.so.1.0.0
400 -r-xr-xr-x 1 root wheel 378867 Jun 3 17:53 libssl.so.1.0.0*
#
But not sure why the .so is identified as 1.0.0...
# /usr/pkg/bin/openssl
OpenSSL> version
OpenSSL 1.0.1e 11 Feb 2013
OpenSSL> exit
#
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/9230#comment:6>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list