libbitcoin_util_a-chainparamsbase compile failure #5472

issue Rav3nPL opened this issue on December 13, 2014
  1. Rav3nPL commented at 2:39 PM on December 13, 2014: contributor

    Current git https://github.com/bitcoin/bitcoin/commit/5f7279ac70b755d3aac9582d36e08bdf0e3f4fc6

     CXX      libbitcoin_util_a-chainparamsbase.o
    In file included from /usr/include/c++/4.9/cstring:42:0,
                     from /usr/include/boost/filesystem/path.hpp:36,
                     from util.h:27,
                     from chainparamsbase.cpp:8:
    /usr/include/string.h:407:74: error: conflicting declaration of ‘size_t strnlen(const char*, size_t)’ with ‘C’ linkage
          __THROW __attribute_pure__ __nonnull ((1));
                                                                              ^
    In file included from util.h:17:0,
                     from chainparamsbase.cpp:8:
    compat.h:92:8: note: previous declaration with ‘C++’ linkage
     size_t strnlen( const char *start, size_t max_len);
            ^
    In file included from /usr/include/c++/4.9/cstring:42:0,
                     from /usr/include/boost/filesystem/path.hpp:36,
                     from util.h:27,
                     from chainparamsbase.cpp:8:
    /usr/include/string.h:407:74: error: declaration of ‘size_t strnlen(const char*, size_t) throw ()’ has a different exception specifier
          __THROW __attribute_pure__ __nonnull ((1));
                                                                              ^
    In file included from util.h:17:0,
                     from chainparamsbase.cpp:8:
    compat.h:92:8: error: from previous declaration ‘size_t strnlen(const char*, size_t)’
     size_t strnlen( const char *start, size_t max_len);
            ^
    Makefile:3763: recipe for target 'libbitcoin_util_a-chainparamsbase.o' failed
    make[2]: *** [libbitcoin_util_a-chainparamsbase.o] Error 1
    make[2]: Leaving directory '/home/rav3n/bitcoin/src'
    Makefile:6202: recipe for target 'all-recursive' failed
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory '/home/rav3n/bitcoin/src'
    Makefile:558: recipe for target 'all-recursive' failed
    make: *** [all-recursive] Error 1
    
  2. paveljanik commented at 9:12 PM on December 13, 2014: contributor

    Looks like you have more than bitcoin-config.h files in the tree. Can you please remove the old one? The file should be generated in the src/config/ now.

  3. Rav3nPL commented at 9:24 PM on December 13, 2014: contributor

    I did re-run of ./autogen.sh ./configure and make go properly. Closing.

  4. Rav3nPL closed this on Dec 13, 2014

  5. MarcoFalke locked this on Sep 8, 2021
Contributors

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-21 21:15 UTC

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