Fix for #7080 breaks LibreSSL ??? #7580

issue AliceWonderMiscreations opened this issue on February 23, 2016
  1. AliceWonderMiscreations commented at 1:07 PM on February 23, 2016: contributor

    LibreSSL 2.3.2 on CentOS 7 (x86_64) - 0.11.2 builds just dandy and even works. 0.12.0 fails to build.

    In file included from addrman.h:13:0,
                     from init.cpp:12:
    init.cpp: In function 'bool AppInit2(boost::thread_group&, CScheduler&)':
    init.cpp:1081:61: error: 'OPENSSL_VERSION' was not declared in this scope
         LogPrintf("Using OpenSSL version %s\n", OpenSSL_version(OPENSSL_VERSION));
                                                                 ^
    util.h:77:39: note: in definition of macro 'LogPrintf'
     #define LogPrintf(...) LogPrint(NULL, __VA_ARGS__)
                                       ^
    init.cpp:1081:76: error: 'OpenSSL_version' was not declared in this scope
         LogPrintf("Using OpenSSL version %s\n", OpenSSL_version(OPENSSL_VERSION));
    

    It looks like that might be caused by the fix for issue #7080 ??

  2. jonasschnelli added the label Bug on Feb 23, 2016
  3. jonasschnelli commented at 1:19 PM on February 23, 2016: contributor

    Agree. Maybe we should do the #ifdef introduced in 7083 the "opposite way". If OPENSSL_VERSION_NUMBER >= 0x10100000L use OpenSSL_version(OPENSSL_VERSION) if not use SSLeay_version(SSLEAY_VERSION) by default...

  4. sthen commented at 1:31 PM on February 23, 2016: none

    LibreSSL has these defines,

    #define LIBRESSL_VERSION_NUMBER 0x2030200fL
    #define LIBRESSL_VERSION_TEXT   "LibreSSL 2.3.2"
    #define OPENSSL_VERSION_NUMBER  0x20000000L
    #define OPENSSL_VERSION_TEXT    LIBRESSL_VERSION_TEXT
    

    so currently it would need to be something like "if defined(LIBRESSL_VERSION_NUMBER) || (OPENSSL_VERSION_NUMBER < 0x10100000L)".

  5. paveljanik commented at 1:55 PM on February 23, 2016: contributor
  6. AliceWonderMiscreations commented at 2:10 PM on February 23, 2016: contributor

    I can confirm sthen's suggestion fixes the issue.

  7. paveljanik commented at 2:15 PM on February 23, 2016: contributor

    @AliceWonderMiscreations can you please check #7520?

  8. laanwj commented at 2:20 PM on February 23, 2016: member

    Duplicate of #7515 and #7447 This was fixed in #7520, which should be backported to 0.12.1.

  9. laanwj closed this on Feb 23, 2016

  10. AliceWonderMiscreations commented at 11:17 PM on February 23, 2016: contributor

    Same issue exists in src/qt/rpcconsole.cpp

  11. paveljanik commented at 6:07 AM on February 24, 2016: contributor

    @AliceWonderMiscreations you can PR the similar fix :-) Will you try to contribute?

  12. AliceWonderMiscreations commented at 6:31 AM on February 24, 2016: contributor

    @paveljanik done - sometimes I forget how easy github makes it to do those things.

  13. MarcoFalke 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 06:15 UTC

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