build options for OpenBSD incomplete/out-of-date #7447

issue ghost opened this issue on January 31, 2016
  1. ghost commented at 5:36 PM on January 31, 2016: none

    Trying the instructions in build-openbsd.md on OpenBSD 5.7 fails with

    In file included from addrman.h:14:0,
                     from init.cpp:12:
    init.cpp: In function 'bool AppInit2(boost::thread_group&, CScheduler&)':
    init.cpp:1076:61: error: 'OPENSSL_VERSION' was not declared in this scope
         LogPrintf("Using OpenSSL version %s\n", OpenSSL_version(OPENSSL_VERSION));
    

    Apparently, this is due to OpenSSL no longer being present on recent versions of OpenBSD. To fix this, I had to pkg_add openssl (which installs the eopenssl package, which is a kind of wrapper for libressl afaik) and replace the configure command given in the instructions by

    ./configure --with-gui=no --with-boost=$BOOST_PREFIX CC=egcc CXX=eg++ CPP=ecpp LDFLAGS="-L${BDB_PREFIX}/lib/ -L/usr/local/lib/eopenssl/" CPPFLAGS="-I${BDB_PREFIX}/include/ -I/usr/local/include/eopenssl/"

    Perhaps the documentation could be updated to reflect that.

  2. paveljanik cross-referenced this on Feb 11, 2016 from issue recipe for target 'libbitcoin_server_a-init.o' failed by dotgodly
  3. paveljanik commented at 8:34 PM on February 11, 2016: contributor

    Can you please check the fix suggested in #7520, ie. do not install eopenssl, do not add ...eopenssl... paths and use the change added there?

  4. paveljanik cross-referenced this on Feb 11, 2016 from issue LibreSSL doesn't define OPENSSL_VERSION, use LIBRESSL_VERSION_TEXT instead by paveljanik
  5. laanwj added the label Build system on Feb 12, 2016
  6. laanwj closed this on Feb 12, 2016

  7. laanwj added the label Linux/Unix on Feb 16, 2016
  8. laanwj cross-referenced this on Feb 23, 2016 from issue Fix for #7080 breaks LibreSSL ??? by AliceWonderMiscreations
  9. bitcoin 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-05-20 06:55 UTC