Skip to content

Instantly share code, notes, and snippets.

@russelldb
Created July 5, 2011 08:27
Show Gist options
  • Save russelldb/1064482 to your computer and use it in GitHub Desktop.
Save russelldb/1064482 to your computer and use it in GitHub Desktop.
leveldb build error
Compiling c_src/eleveldb.cc
/usr/bin/ld: c_src/leveldb/libleveldb.a(db_impl.o): relocation R_X86_64_32S against `vtable for leveldb::DBImpl::RecoverLogFile(unsigned long, leveldb::VersionEdit*, unsigned long*)::LogReporter' can not be used when making a shared object; recompile with -fPIC
c_src/leveldb/libleveldb.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
ERROR: $CC c_src/eleveldb.o $LDFLAGS $DRV_LDFLAGS -o priv/eleveldb.so failed with error: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment