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

  3. laanwj added the label Build system on Feb 12, 2016
  4. laanwj closed this on Feb 12, 2016

  5. laanwj added the label Linux/Unix on Feb 16, 2016
  6. 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-13 15:15 UTC

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