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

[tor-talk] tor 0.4.4.7 Checking for OpenSSL Version Numbers



Before tor 0.4.4.7 I was able to build tor with the latest versions of this software: zlib, libressl, libevent. Each of which I built as a static library. x86_64-apple-darwin15.6.0 (I tried static tor a long time ago and failed, and haven’t tried since.)

Now, after much testing I find the only way I can now successfully build tor is like this: zlib (static), openssl 1.1.1i (shared, with deprecated APIs enabled, libevent 2.1.12 (static), then tor 0.4.4.7. 

My very limited tests and plain old use of tor <= 0.4.4.6 built with static: zlib, libressl, and libevent indicated it worked fine. 

Based on trying to build tor 0.4.4.7 with static and shared libressl, static & shared openssl, etc... lead to varied errors which I would be glad to share and try to help fix to the extent I can. 

Some homework reveals the change is most likely on this page. 
https://gitlab.torproject.org/tpo/core/tor/-/commit/c6fb26695b1b84b287cc641f7bfaaaba32b67cde

Thank you.



p.s. here is the point of failure during make. Using the software in the first sentence. 

  CC       src/lib/tls/libtor_tls_a-tortls_openssl.o
In file included from src/lib/tls/tortls_openssl.c:48:
In file included from /custom/usr/local/include/openssl/ssl.h:150:
In file included from /custom/usr/local/include/openssl/hmac.h:67:
In file included from /custom/usr/local/include/openssl/evp.h:67:
In file included from /custom/usr/local/include/openssl/bio.h:69:
/custom/usr/local/include/openssl/crypto.h:335:35: error: too many
      arguments provided to function-like macro invocation
unsigned long OpenSSL_version_num(void);
                                  ^
./src/lib/crypt_ops/compat_openssl.h:37:9: note: macro 'OpenSSL_version_num' defined here
#define OpenSSL_version_num() SSLeay()
        ^
In file included from src/lib/tls/tortls_openssl.c:48:
In file included from /custom/usr/local/include/openssl/ssl.h:150:
In file included from /custom/usr/local/include/openssl/hmac.h:67:
In file included from /custom/usr/local/include/openssl/evp.h:67:
In file included from /custom/usr/local/include/openssl/bio.h:69:
/custom/usr/local/include/openssl/crypto.h:335:15: warning: no previous
      extern declaration for non-static variable 'OpenSSL_version_num' [-Wmissing-variable-declarations]
unsigned long OpenSSL_version_num(void);

-- 
tor-talk mailing list - tor-talk@xxxxxxxxxxxxxxxxxxxx
To unsubscribe or change other settings go to
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk