stephan-hof / pyrocksdb

Python bindings for RocksDB
BSD 3-Clause "New" or "Revised" License
150 stars 169 forks source link

Undefined symbol in librt.so #43

Open adsharma opened 8 years ago

adsharma commented 8 years ago

import rocksdb Traceback (most recent call last): File "", line 1, in File "/tmp/pyrocks_test/lib/python2.6/site-packages/rocksdb/init.py", line 1, in from ._rocksdb import * ImportError: /usr/lib/librocksdb.so: undefined symbol: clock_gettime

I think this will go away if you add "rt" as a library in setup.py

I was testing with a rocksdb rpm generated from trunk after this diff: https://github.com/adsharma/rocksdb/commit/6a4b16bac97ec8f851cc62f0943315c0d5d2d867