tor-0.4.5.1-alpha-16-gdd119b27 cannot be compiled agains LibreSSL-3.2[.0]
I got a
ray-argument -Wstrict-overflow=1 -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wswitch-bool -Wsync-nand -Wtrampolines -Wunused-but-set-parameter -Wunused-but-set-variable -Wunused-const-variable=2 -Wunused-local-typedefs -Wvariadic-macros -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat=2 -Wwrite-strings -Wnested-externs -Wbad-function-cast -Wswitch-enum -Waggregate-return -Wpacked -Wunused -Wunused-parameter -Wold-style-definition -Wmissing-declarations -c -o src/lib/crypt_ops/libtor_crypt_ops_testing_a-crypto_curve25519.o `test -f 'src/lib/crypt_ops/crypto_curve25519.c' || echo './'`src/lib/crypt_ops/crypto_curve25519.c
In file included from /usr/include/openssl/bio.h:69,
from /usr/include/openssl/evp.h:67,
from /usr/include/openssl/hmac.h:67,
from /usr/include/openssl/ssl.h:150,
from src/lib/tls/tortls_openssl.c:48:
/usr/include/openssl/crypto.h:335:39: error: macro "OpenSSL_version_num" passed 1 arguments, but takes just 0
335 | unsigned long OpenSSL_version_num(void);
| ^
In file included from src/lib/tls/tortls_openssl.c:34:
./src/lib/crypt_ops/compat_openssl.h:37: note: macro "OpenSSL_version_num" defined here
37 | #define OpenSSL_version_num() SSLeay()
|
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./src -I./src/ext -I./src/ext/trunnel -I./src/trunnel -I./src/ext -Isrc/ext -DSHARE_DATADIR="\"/usr/share\"" -DLOCALSTATEDIR="\"/var\"" -DBINDIR="\"/usr/bin\"" -DTOR_UNIT_TESTS -DHAVE_MODULE_RELAY=1 -DHAVE_MODULE_DIRAUTH=1 -DHAVE_MODULE_DIRCACHE=1 -O2 -pipe -march=native -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-all -Wstack-protector --param ssp-buffer-size=1 -fPIE -fasynchronous-unwind-tables -Wall -fno-strict-aliasing -Waddress -Warray-bounds -Wdate-time -Wdouble-promotion -Wduplicate-decl-specifier -Wduplicated-cond -Wextra -Wfloat-conversion -Wignored-attributes -Wimplicit-fallthrough -Winit-self -Wlogical-op -Wmissing-field-initializers -Wmissing-format-attribute -Wmissing-noreturn -Wnormalized=nfkc -Wnull-dereference -Woverlength-strings -Woverride-init -Wshadow -Wshift-count-negative -Wshift-count-overflow -Wshift-negative-value -Wshift-overflow=2 -Wsizeof-array-argument -Wstrict-overflow=1 -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wswitch-bool -Wsync-nand -Wtrampolines -Wunused-but-set-parameter -Wunused-but-set-variable -Wunused-const-variable=2 -Wunused-local-typedefs -Wvariadic-macros -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat=2 -Wwrite-strings -Wnested-externs -Wbad-function-cast -Wswitch-enum -Waggregate-return -Wpacked -Wunused -Wunused-parameter -Wold-style-definition -Wmissing-declarations -c -o src/lib/crypt_ops/libtor_crypt_ops_testing_a-crypto_dh.o `test -f 'src/lib/crypt_ops/crypto_dh.c' || echo './'`src/lib/crypt_ops/crypto_dh.c
In file included from /usr/include/openssl/bio.h:69,
from /usr/include/openssl/err.h:122,
from src/lib/tls/x509_openssl.c:30:
/usr/include/openssl/crypto.h:335:39: error: macro "OpenSSL_version_num" passed 1 arguments, but takes just 0
335 | unsigned long OpenSSL_version_num(void);
| ^
In file included from src/lib/tls/x509_openssl.c:18:
./src/lib/crypt_ops/compat_openssl.h:37: note: macro "OpenSSL_version_num" defined here
37 | #define OpenSSL_version_num() SSLeay()
|
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./src -I./src/ext -I./src/ext/trunnel -I./src/trunnel -I./src/ext -Isrc/ext -DSHARE_DATADIR="\"/usr/share\"" -DLOCALSTATEDIR="\"/var\"" -DBIN
at a stable hardened Gentoo.
FWIW "Tor version 0.4.5.1-alpha (git-6e25c49f)." is fine, so recent changes seems to broke it.