(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
  1. ghost commented at 12:08 PM on July 28, 2015: none

    No description provided.

  2. luke-jr commented at 12:16 PM on July 28, 2015: member

    Yes, install OpenSSL instead.

  3. ghost commented at 12:25 PM on July 28, 2015: none

    OpenSSL installed, but does not solve the problem.

  4. luke-jr commented at 12:27 PM on July 28, 2015: member

    Please post config.log and what version of OpenSSL you are using.

  5. ghost commented at 12:35 PM on July 28, 2015: none

    225 KB (229.387 B) http://vpaste.net/ni5IC

  6. ghost commented at 8:44 PM on July 28, 2015: none

    I compile it --with-libressl flag.

  7. luke-jr commented at 12:38 AM on July 29, 2015: member

    The paste is incomplete; what version of OpenSSL is this?

  8. ghost commented at 4:35 AM on July 29, 2015: none

    OpenSSL 1.0.1k

  9. laanwj added the label Build system on Jul 29, 2015
  10. laanwj commented at 3:34 PM on September 27, 2015: member

    The problem here, it appeared, is that OpenBSD, when you use pkg_add openssl installs openssl as the pkg-config package eopenssl:

    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 -lcrypto
    

    But 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 eopenssl returns -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-libressl flag.

    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"

  11. dcousens commented at 12:27 AM on November 18, 2015: contributor

    Can be closed?

  12. laanwj closed this on Nov 20, 2015

  13. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-17 03:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me