No description provided.
(OpenBSD 5.7) configure: error: Detected LibreSSL: This is NOT supported, and may break consensus compatibility! #6486
issue ghost opened this issue on July 28, 2015-
ghost commented at 12:08 PM on July 28, 2015: none
-
luke-jr commented at 12:16 PM on July 28, 2015: member
Yes, install OpenSSL instead.
-
ghost commented at 12:25 PM on July 28, 2015: none
OpenSSL installed, but does not solve the problem.
-
luke-jr commented at 12:27 PM on July 28, 2015: member
Please post config.log and what version of OpenSSL you are using.
-
ghost commented at 12:35 PM on July 28, 2015: none
225 KB (229.387 B) http://vpaste.net/ni5IC
-
ghost commented at 8:44 PM on July 28, 2015: none
I compile it --with-libressl flag.
-
luke-jr commented at 12:38 AM on July 29, 2015: member
The paste is incomplete; what version of OpenSSL is this?
-
ghost commented at 4:35 AM on July 29, 2015: none
OpenSSL 1.0.1k
- laanwj added the label Build system on Jul 29, 2015
-
laanwj commented at 3:34 PM on September 27, 2015: member
The problem here, it appeared, is that OpenBSD, when you use
pkg_add opensslinstalls openssl as the pkg-config packageeopenssl:orion@lethe:~/bitcoin$ pkg-config --libs --cflags openssl -I/usr/include -L/usr/lib -lssl -lcrypto orion@lethe:~/bitcoin$ pkg-config --libs --cflags eopenssl -I/usr/local/include -L/usr/local/lib/eopenssl -lssl -lcryptoBut couldn't even work around this with the painful:
./configure ... SSL_CFLAGS="$(pkg-config --cflags eopenssl)" SSL_LIBS="$(pkg-config --libs eopenssl)" CRYPTO_CFLAGS="$(pkg-config --cflags eopenssl)" CRYPTO_LIBS="$(pkg-config --libs eopenssl)"config.log shows:
configure:26667: checking for a supported OpenSSL version configure:26682: eg++ -o conftest -g -O2 -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -Wstack-protector -fstack-protector-all -fPIE -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -pie conftest.cpp -L/usr/local/lib/eopenssl -lssl -lcrypto -L/usr/local/lib/eopenssl -lssl -lcrypto >&5 conftest.cpp: In function 'int main()': conftest.cpp:68:14: error: 'RAND_egd' was not declared in this scope RAND_egd(NULL); ^Multiple problems here, which I could eventually work around:
- The libressl check ignores
SSL_CFLAGS/CRYPTO_CFLAGS: fixed in #6729 pkg-config --cflags eopensslreturns-I/usr/local/include, should be-I/usr/local/include/eopenssl(upstream issue)
After applying #6729, explicitly specifying the locations works:
./configure ... SSL_CFLAGS="-I/usr/local/include/eopenssl" SSL_LIBS="-L/usr/local/lib/eopenssl -lssl" CRYPTO_CFLAGS="-I/usr/local/include/eopenssl" CRYPTO_LIBS="-L/usr/local/lib/eopenssl -lcrypto"I can forgive you for eventually going with
--with-libresslflag.Edit: Happy we can drop the libressl check after switching to secp256k1 verification...
Edit.2: this fixes compiling; for running e.g. the tests you need
export LD_LIBRARY_PATH="/usr/local/lib/eopenssl" - The libressl check ignores
-
dcousens commented at 12:27 AM on November 18, 2015: contributor
Can be closed?
- laanwj closed this on Nov 20, 2015
- DrahtBot locked this on Sep 8, 2021