Compilation fails on Arch Linux #11601

issue azavalla opened this issue on November 3, 2017
  1. azavalla commented at 5:12 PM on November 3, 2017: none

    Describe the issue

    Compilation of v0.15.0.1 fails on Archlinux.

    To reproduce the issue:

    1. $ git checkout v0.15.0.1
    2. $ ./autogen.sh
    3. $ ./configure
    4. $ make

    Behavior

    $ make
    Making all in src
     [ ... ]
      CXX      libbitcoin_util_a-util.o
    util.cpp: In function ‘void locking_callback(int, int, const char*, int)’:
    util.cpp:110:16: error: ‘CRYPTO_LOCK’ was not declared in this scope
         if (mode & CRYPTO_LOCK) {
                    ^~~~~~~~~~~
    util.cpp:110:16: note: suggested alternative: ‘CRYPTO_RWLOCK’
         if (mode & CRYPTO_LOCK) {
                    ^~~~~~~~~~~
                    CRYPTO_RWLOCK
    make[2]: *** [Makefile:6087: libbitcoin_util_a-util.o] Error 1
    

    What version of bitcoin-core are you using?

    Version v0.15.0.1, commit fb7b52938

    Machine specs:

    • OS: Archlinux 4.13.11-1-ARCH LSB Version: 1.4 Release: rolling

    Any extra information that might be useful in the debugging process.

    openssl version: openssl-1.1.0.f-2 boost-libs version: boost-libs-1.65.1-1

  2. fanquake added the label Linux/Unix on Nov 4, 2017
  3. dcousens commented at 1:34 AM on November 4, 2017: contributor

    @azavalla check https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/bitcoin - that is what is available if you use the community/bitcoin-daemon pacakage. Nevermind, saw #11602

  4. TheBlueMatt commented at 1:38 AM on November 4, 2017: member

    The issue, as @azavalla indicated in #11602, is that OpenSSL made a backwards-incompatible API change, seemingly without deprecation notice. It also resulted in other projects (like PostgreSQL) not building, so they may revert it, but we should update to handle the new API either way.

    On November 3, 2017 9:34:20 PM EDT, Daniel Cousens notifications@github.com wrote:

    @azavalla check https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/bitcoin

    • that is what is available if you use the community/bitcoin-daemon pacakage.

    -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/bitcoin/bitcoin/issues/11601#issuecomment-341862648

  5. dcousens commented at 1:38 AM on November 4, 2017: contributor

    @TheBlueMatt I just saw that, and was about to redact my suggestion.

  6. MarcoFalke commented at 6:33 PM on March 26, 2018: member

    What are the steps to reproduce? I tried to install the version mentioned in OP and it appears to work:

    $ sudo pacman -U https://archive.archlinux.org/packages/o/openssl/openssl-1.1.0.f-2-x86_64.pkg.tar.xz
    ...
    Packages (1) openssl-1.1.0.f-2
    ...
    $ make
    ...
      CXX      libbitcoin_util_a-util.o
      AR       libbitcoin_util.a
      CXXLD    bitcoind
    
  7. Empact commented at 8:40 AM on May 17, 2018: member

    They added back the constants here: https://github.com/openssl/openssl/pull/1266 / https://github.com/openssl/openssl/commit/dd850bcb395753a130a5d69697092d69555b6e2c

    So looks like any 1.1.0 release build should work.

  8. MarcoFalke closed this on May 17, 2018

  9. 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