forhappy/cpy-leveldb — Issue #3: /crtbeginT.o: could not read symbols: Bad value
Author: oleiade
Created: 2012-03-02 10:23:43+00:00
State: open

Here's an error I get when I come to python setup.py build. Any ideas of how to resolve it? I use a Fedora system, leveldb and snappy compiled and installed fine.

gcc -pthread -shared build/temp.linux-x86_64-2.7/src/initmodule.o build/temp.linux-x86_64-2.7/src/leveldb.o build/temp.linux-x86_64-2.7/src/write_batch.o build/temp.linux-x86_64-2.7/src/iterator.o build/temp.linux-x86_64-2.7/src/snapshot.o build/temp.linux-x86_64-2.7/src/range_iterator.o -L/usr/lib64 -lpython2.7 -o build/lib.linux-x86_64-2.7/leveldb.so -L./leveldb -static -lleveldb -lsnappy -lpthread
/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/4.6.1/crtbeginT.o: relocation R_X86_64_32 against `__DTOR_END__' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-redhat-linux/4.6.1/crtbeginT.o: could not read symbols: Bad value