Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dependency issue with leveldb? #3864

Closed
dooglus opened this issue Mar 14, 2014 · 1 comment
Closed

dependency issue with leveldb? #3864

dooglus opened this issue Mar 14, 2014 · 1 comment

Comments

@dooglus
Copy link
Contributor

dooglus commented Mar 14, 2014

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?

@laanwj
Copy link
Member

laanwj commented Mar 14, 2014

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants