dependency issue with leveldb? #3864

issue dooglus opened this issue on March 14, 2014
  1. dooglus commented at 1:15 AM on March 14, 2014: contributor

    I just switched to the 0.9.0rc3 branch, after last building 0.8.x. There's a new build system now, using autoconf.

    I ran ./autogen.sh and ./configure successfully, but when I ran make it failed:

      [...]
      CXX    bitcoind.o
      CXX    bitcoin-cli.o
      CXX    version.o
      AR     libbitcoin_server.a
      AR     libbitcoin_cli.a
      AR     libbitcoin_wallet.a
      AR     libbitcoin_common.a
      CXXLD  bitcoin-cli
      CXXLD  bitcoind
    /usr/bin/ld: ../src/leveldb/libleveldb.a(db_impl.o): relocation R_X86_64_32S against `_ZTVN7leveldb2DBE' can not be used when making a shared object; recompile with -fPIC
    ../src/leveldb/libleveldb.a: could not read symbols: Bad value
    collect2: error: ld returned 1 exit status
    

    I was able to fix it by doing:

    cd src/leveldb
    make clean
    cd ..
    make
    

    but shouldn't there be a dependency check such that leveldb gets rebuilt if it has changed since the last build?

  2. laanwj added the label Build system on Mar 14, 2014
  3. laanwj commented at 2:12 AM on March 14, 2014: member

    This is expected. Generally you may need to do a one-time make clean yourself if you change the build system (this includes changing the .am and .ac files)

    In contrast with what many people think, there is no dependency check for changes to the (meta-)build system itself.

  4. laanwj closed this on Mar 14, 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-16 00:15 UTC

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