Issue when trying to compile on file libbitcoin_server_a-net.o #13993

issue alexander7567 opened this issue on August 17, 2018
  1. alexander7567 commented at 2:55 PM on August 17, 2018: none

    Attempting to build from source and I am getting the below error.

    Using Ubuntu 18.04 in Windows 10. Following these steps: https://github.com/bitcoin/bitcoin/blob/master/doc/build-windows.md#building-for-64-bit-windows

    Any ideas on this issue? First time building from source, just wanting to build to understand Bitcoin more in-depth. I have ran into many issues and was able to research and find an answer and clear the errors, but I am stuck on this one.

      CXX      bitcoind-bitcoind.o
      CXX      libbitcoin_server_a-addrdb.o
      CXX      libbitcoin_server_a-addrman.o
      CXX      libbitcoin_server_a-bloom.o
      CXX      libbitcoin_server_a-blockencodings.o
      CXX      libbitcoin_server_a-chain.o
      CXX      libbitcoin_server_a-checkpoints.o
      CXX      consensus/libbitcoin_server_a-tx_verify.o
      CXX      libbitcoin_server_a-httprpc.o
      CXX      libbitcoin_server_a-httpserver.o
      CXX      index/libbitcoin_server_a-base.o
      CXX      index/libbitcoin_server_a-txindex.o
      CXX      libbitcoin_server_a-init.o
      CXX      libbitcoin_server_a-dbwrapper.o
      CXX      libbitcoin_server_a-merkleblock.o
      CXX      libbitcoin_server_a-miner.o
      CXX      libbitcoin_server_a-net.o
    net.cpp: In member function ‘bool CConnman::BindListenPort(const CService&, std::__cxx11::string&, bool)’:
    net.cpp:2133:31: error: ‘SOMAXLONN’ was not declared in this scope
         if (listen(hListenSocket, SOMAXLONN) == SOCKET_ERROR)
                                   ^~~~~~~~~
    net.cpp:2133:31: note: suggested alternative: ‘SOMAXCONN’
         if (listen(hListenSocket, SOMAXLONN) == SOCKET_ERROR)
                                   ^~~~~~~~~
                                   SOMAXCONN
    Makefile:5994: recipe for target 'libbitcoin_server_a-net.o' failed
    make[2]: *** [libbitcoin_server_a-net.o] Error 1
    make[2]: Leaving directory '/home/user/bitcoin/src'
    Makefile:10046: recipe for target 'all-recursive' failed
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory '/home/user/bitcoin/src'
    Makefile:773: recipe for target 'all-recursive' failed
    make: *** [all-recursive] Error 1
    
  2. fanquake added the label Windows on Aug 17, 2018
  3. ken2812221 commented at 3:20 PM on August 17, 2018: contributor
  4. alexander7567 commented at 3:36 PM on August 17, 2018: none

    git clone https://github.com/bitcoin/bitcoin.git

    But I did move it around a few times before its final destination. Possibly corrupted code?

  5. ken2812221 commented at 3:38 PM on August 17, 2018: contributor

    You can try git reset --hard and compile it again.

  6. fanquake commented at 10:14 AM on August 18, 2018: member

    As pointed out by @ken2812221, the source has been modified in some way, as SOMAXLONN does not exist in the code base.

  7. fanquake closed this on Aug 18, 2018

  8. 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-17 03:14 UTC

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