Build into OpenBSD 6.2 #11868

issue hucste opened this issue on December 11, 2017
  1. hucste commented at 8:14 PM on December 11, 2017: none

    <!-- Describe the issue -->

    I attempt to build segun "OpenBSD build guide"

    At the "Building Berkeley DB" stage, i've this error:

    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether the C compiler works... no
    configure: error: in `/home/user/Documents/Dev/NotMine/bitcoin/db4/db-4.8.30.NC/build_unix':
    configure: error: C compiler cannot create executables
    See `config.log' for more details.
    

    <!--- What was the actual behavior (provide screenshots if the issue is GUI-related)? -->

    <!--- How reliably can you reproduce the issue, what are the steps to do so? -->

    as explain on guide: ./contrib/install_db4.sh $(pwd) CC=egcc CXX=eg++ CPP=ecpp

    <!-- Any extra information that might be useful in the debugging process. -->

    <!--- This is normally the contents of a `debug.log` or `config.log` file. Raw text or a link to a pastebin type site are preferred. -->

    Here, the config log (pasted for one year): https://paste.debian-fr.xyz/?23d2ec6f02f6dff3#6YgqTsh6tPX7BpVFZHjLyBZb/UF7M6cJVvdtjdUQl7E=

  2. fanquake added the label Linux/Unix on Dec 11, 2017
  3. laanwj commented at 12:31 PM on December 19, 2017: member

    #11945 should fix this

  4. hucste commented at 8:45 PM on December 20, 2017: none

    Ok, this fix really the building Berkeley DB.

    Now, i'have problem to build bitcoin with clang. It fails with this error:

    leveldb/util/logging.cc:58:40: warning: comparison of integers of different signs: 'const int' and 'unsigned long long' [-Wsign-compare]
              (v == kMaxUint64/10 && delta > kMaxUint64%10)) {
                                     ~~~~~ ^ ~~~~~~~~~~~~~
    1 warning generated.
      CXX      leveldb/util/leveldb_libleveldb_a-options.o
      CXX      leveldb/util/leveldb_libleveldb_a-status.o
      CXX      leveldb/port/leveldb_libleveldb_a-port_posix.o
      AR       leveldb/libleveldb.a
      CXX      leveldb/port/leveldb_libleveldb_sse42_a-port_posix_sse.o
      AR       leveldb/libleveldb_sse42.a
      CXX      leveldb/helpers/memenv/leveldb_libmemenv_a-memenv.o
      AR       leveldb/libmemenv.a
      CXXLD    bitcoind
    /home/user/bitcoin/db4/lib//libdb_cxx-4.8.a(os_uid.o): In function `__os_unique_id':
    os_uid.c:(.text+0x77): warning: warning: rand() may return deterministic values, is that what you want?
    /usr/local/lib/libevent_core.so.1.1: warning: warning: random() may return deterministic values, is that what you want?
    /home/user/bitcoin/db4/lib//libdb_cxx-4.8.a(partition.o): In function `__part_rename':
    partition.c:(.text+0x265): warning: warning: sprintf() is often misused, please use snprintf()
    /usr/local/lib/libboost_filesystem.so.6.0: warning: warning: strcpy() is almost always misused, please use strlcpy()
    /home/user/bitcoin/db4/lib//libdb_cxx-4.8.a(repmgr_stat.o): In function `__repmgr_site_list':
    repmgr_stat.c:(.text+0x376): warning: warning: stpcpy() is dangerous; do not use it
    libbitcoin_wallet.a(libbitcoin_wallet_a-db.o): In function `CDBEnv::Verify(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool (*)(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&), std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&)':
    wallet/db.cpp:183: undefined reference to `Db::verify(char const*, char const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, unsigned int)'
    libbitcoin_wallet.a(libbitcoin_wallet_a-db.o): In function `CDBEnv::Salvage(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool, std::__1::vector<std::__1::pair<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> >, std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > >, std::__1::allocator<std::__1::pair<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> >, std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > > > >&)':
    wallet/db.cpp:335: undefined reference to `Db::verify(char const*, char const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, unsigned int)'
    /home/user/bitcoin/db4/lib//libdb_cxx-4.8.a(cxx_db.o): In function `_verify_callback_c':
    cxx_db.cpp:(.text+0xb9d): undefined reference to `std::basic_ios<char, std::char_traits<char> >::clear(std::_Ios_Iostate)'
    cxx_db.cpp:(.text+0xbc2): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
    /home/user/bitcoin/db4/lib//libdb_cxx-4.8.a(cxx_db.o): In function `_GLOBAL__sub_I_cxx_db.cpp':
    cxx_db.cpp:(.text+0x278c): undefined reference to `std::ios_base::Init::Init()'
    cxx_db.cpp:(.text+0x27a1): undefined reference to `std::ios_base::Init::~Init()'
    /home/user/bitcoin/db4/lib//libdb_cxx-4.8.a(cxx_dbc.o): In function `_GLOBAL__sub_I_cxx_dbc.cpp':
    cxx_dbc.cpp:(.text+0x49a): undefined reference to `std::ios_base::Init::Init()'
    cxx_dbc.cpp:(.text+0x4af): undefined reference to `std::ios_base::Init::~Init()'
    /home/user/bitcoin/db4/lib//libdb_cxx-4.8.a(cxx_dbt.o): In function `_GLOBAL__sub_I_cxx_dbt.cpp':
    cxx_dbt.cpp:(.text+0xb6): undefined reference to `std::ios_base::Init::Init()'
    cxx_dbt.cpp:(.text+0xcb): undefined reference to `std::ios_base::Init::~Init()'
    /home/user/bitcoin/db4/lib//libdb_cxx-4.8.a(cxx_env.o): In function `DbEnv::_stream_error_function(__db_env const*, char const*, char const*)':
    cxx_env.cpp:(.text+0x4b05): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
    cxx_env.cpp:(.text+0x4b1a): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
    cxx_env.cpp:(.text+0x4b46): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
    cxx_env.cpp:(.text+0x4b5b): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
    /home/user/bitcoin/db4/lib//libdb_cxx-4.8.a(cxx_env.o): In function `DbEnv::_stream_message_function(__db_env const*, char const*)':
    cxx_env.cpp:(.text+0x4bdc): undefined reference to `std::basic_ios<char, std::char_traits<char> >::clear(std::_Ios_Iostate)'
    cxx_env.cpp:(.text+0x4c01): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
    cxx_env.cpp:(.text+0x4c16): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
    /home/user/bitcoin/db4/lib//libdb_cxx-4.8.a(cxx_env.o): In function `_GLOBAL__sub_I_cxx_env.cpp':
    cxx_env.cpp:(.text+0x4ca8): undefined reference to `std::ios_base::Init::Init()'
    cxx_env.cpp:(.text+0x4cbd): undefined reference to `std::ios_base::Init::~Init()'
    /home/user/bitcoin/db4/lib//libdb_cxx-4.8.a(cxx_except.o): In function `_GLOBAL__sub_I_cxx_except.cpp':
    cxx_except.cpp:(.text+0x86d): undefined reference to `std::ios_base::Init::Init()'
    cxx_except.cpp:(.text+0x882): undefined reference to `std::ios_base::Init::~Init()'
    /home/user/bitcoin/db4/lib//libdb_cxx-4.8.a(cxx_lock.o): In function `_GLOBAL__sub_I_cxx_lock.cpp':
    cxx_lock.cpp:(.text+0x72): undefined reference to `std::ios_base::Init::Init()'
    cxx_lock.cpp:(.text+0x87): undefined reference to `std::ios_base::Init::~Init()'
    /home/user/bitcoin/db4/lib//libdb_cxx-4.8.a(cxx_mpool.o): In function `_GLOBAL__sub_I_cxx_mpool.cpp':
    cxx_mpool.cpp:(.text+0xaf4): undefined reference to `std::ios_base::Init::Init()'
    cxx_mpool.cpp:(.text+0xb09): undefined reference to `std::ios_base::Init::~Init()'
    /home/user/bitcoin/db4/lib//libdb_cxx-4.8.a(cxx_txn.o): In function `_GLOBAL__sub_I_cxx_txn.cpp':
    cxx_txn.cpp:(.text+0x4fc): undefined reference to `std::ios_base::Init::Init()'
    cxx_txn.cpp:(.text+0x511): undefined reference to `std::ios_base::Init::~Init()'
    clang++: error: linker command failed with exit code 1 (use -v to see invocation)
    gmake[2]: *** [Makefile:3638: bitcoind] Error 1
    gmake[2]: Leaving directory '/home/user/bitcoin/src'
    gmake[1]: *** [Makefile:9378: all-recursive] Error 1
    gmake[1]: Leaving directory '/home/user/bitcoin/src'
    gmake: *** [Makefile:745: all-recursive] Error 1
    
    

    Now, i'm going to attempt with g++ tools.


    Egual, error:

      CXXLD    libbitcoinconsensus.la
    
    *** Warning: This system can not link to static lib archive secp256k1/libsecp256k1.la.
    *** I have the capability to make that library automatically link in when
    *** you link to this library.  But I can only do this if you have a
    *** shared version of the library, which you do not appear to have.
      CXX      bitcoind-bitcoind.o
    In file included from /usr/local/include/boost/align/align.hpp:15:0,
                     from /usr/local/include/boost/smart_ptr/detail/array_allocator.hpp:12,
                     from /usr/local/include/boost/smart_ptr/detail/array_count_impl.hpp:12,
                     from /usr/local/include/boost/smart_ptr/make_shared_array.hpp:12,
                     from /usr/local/include/boost/smart_ptr/make_shared.hpp:18,
                     from /usr/local/include/boost/thread/csbl/memory/shared_ptr.hpp:17,
                     from /usr/local/include/boost/thread/detail/nullary_function.hpp:16,
                     from /usr/local/include/boost/thread/barrier.hpp:21,
                     from /usr/local/include/boost/thread.hpp:23,
                     from ./scheduler.h:14,
                     from bitcoind.cpp:17:
    /usr/local/include/boost/align/detail/align_cxx11.hpp:16:20: error: 'std::align' has not been declared
             using std::align;
                        ^
    In file included from /usr/local/include/boost/smart_ptr/detail/array_count_impl.hpp:12:0,
                     from /usr/local/include/boost/smart_ptr/make_shared_array.hpp:12,
                     from /usr/local/include/boost/smart_ptr/make_shared.hpp:18,
                     from /usr/local/include/boost/thread/csbl/memory/shared_ptr.hpp:17,
                     from /usr/local/include/boost/thread/detail/nullary_function.hpp:16,
                     from /usr/local/include/boost/thread/barrier.hpp:21,
                     from /usr/local/include/boost/thread.hpp:23,
                     from ./scheduler.h:14,
                     from bitcoind.cpp:17:
    /usr/local/include/boost/smart_ptr/detail/array_allocator.hpp: In member function 'boost::detail::as_allocator<A, T, R>::pointer boost::detail::as_allocator<A, T, R>::allocate(boost::detail::as_allocator<A, T, R>::size_type, boost::detail::as_allocator<A, T, R>::const_void_pointer)':
    /usr/local/include/boost/smart_ptr/detail/array_allocator.hpp:138:23: error: 'align' is not a member of 'boost::alignment'
                     (void)boost::alignment::align(M, n2, p2, n3);
                           ^
    /usr/local/include/boost/smart_ptr/detail/array_allocator.hpp: In member function 'Y* boost::detail::ms_allocator<T, Y>::allocate(boost::detail::ms_allocator<T, Y>::size_type, const void*)':
    /usr/local/include/boost/smart_ptr/detail/array_allocator.hpp:247:23: error: 'align' is not a member of 'boost::alignment'
                     (void)boost::alignment::align(M, n2, p2, n3);
                           ^
    gmake[2]: *** [Makefile:8140: bitcoind-bitcoind.o] Error 1
    gmake[2]: Leaving directory '/home/user/bitcoin/src'
    gmake[1]: *** [Makefile:9378: all-recursive] Error 1
    gmake[1]: Leaving directory '/home/user/bitcoin/src'
    gmake: *** [Makefile:746: all-recursive] Error 1
    
    
  5. laanwj referenced this in commit 7a11ba7e01 on Dec 21, 2017
  6. laanwj closed this on Feb 6, 2019

  7. ghost commented at 3:56 PM on February 6, 2019: none

    try to work without stopping!

  8. DrahtBot locked this on Dec 16, 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