Description
Hi Roshan, I am trying to compile rocksdbjni with RocksDB 2.6 with the following set up.
OS: CentOS 5.2
JDK:jdk-7u6-64
gcc: gcc-4.7.1
I am able to follow each steps from README.md including compiling RocksDB 2.6.
However, I got the following errors when compiling the rocksdbjni.
Would you please take a look at this issue ? I might miss some thing obviously. Thanks a lot for your time !
[INFO] /bin/sh ./libtool --tag=CXX --mode=compile g++ -std=c++11 -DHAVE_CONFIG_H -I. -I./src -g -O2 -I/tmp/data/hackthon/rocksdb/include -I/usr/local/jdk-7u6-64/include -I/usr/local/jdk-7u6-64/include/linux -DROCKSDB_PLATFORM_POSIX -I/tmp/data/hackthon/rocksdb -c -o rocksdbjni.lo test -f 'src/rocksdbjni.cpp' || echo './'src/rocksdbjni.cpp
[INFO] libtool: compile: g++ -std=c++11 -DHAVE_CONFIG_H -I. -I./src -g -O2 -I/tmp/data/hackthon/rocksdb/include -I/usr/local/jdk-7u6-64/include -I/usr/local/jdk-7u6-64/include/linux -DROCKSDB_PLATFORM_POSIX -I/tmp/data/hackthon/rocksdb -c src/rocksdbjni.cpp -o .libs/rocksdbjni.o
[INFO] In file included from /tmp/data/hackthon/rocksdb/db/db_statistics.h:19:0,
[INFO] from src/rocksdbjni.h:41,
[INFO] from src/rocksdbjni.cpp:2:
[INFO] /tmp/data/hackthon/rocksdb/util/mutexlock.h:27:22: error: 'port' has not been declared
[INFO] /tmp/data/hackthon/rocksdb/util/mutexlock.h:27:34: error: expected ')' before '' token
[INFO] /tmp/data/hackthon/rocksdb/util/mutexlock.h:33:3: error: 'port' does not name a type
[INFO] /tmp/data/hackthon/rocksdb/util/mutexlock.h: In destructor 'rocksdb::MutexLock::~MutexLock()':
[INFO] /tmp/data/hackthon/rocksdb/util/mutexlock.h:30:24: error: 'class rocksdb::MutexLock' has no member named 'mu_'
[INFO] /tmp/data/hackthon/rocksdb/util/mutexlock.h: At global scope:
[INFO] /tmp/data/hackthon/rocksdb/util/mutexlock.h:46:21: error: 'port' has not been declared
[INFO] /tmp/data/hackthon/rocksdb/util/mutexlock.h:46:35: error: expected ')' before '' token
[INFO] /tmp/data/hackthon/rocksdb/util/mutexlock.h:52:3: error: 'port' does not name a type
[INFO] /tmp/data/hackthon/rocksdb/util/mutexlock.h: In destructor 'rocksdb::ReadLock::~ReadLock()':
[INFO] /tmp/data/hackthon/rocksdb/util/mutexlock.h:49:23: error: 'class rocksdb::ReadLock' has no member named 'mu_'
[INFO] /tmp/data/hackthon/rocksdb/util/mutexlock.h: At global scope:
[INFO] /tmp/data/hackthon/rocksdb/util/mutexlock.h:66:22: error: 'port' has not been declared
[INFO] /tmp/data/hackthon/rocksdb/util/mutexlock.h:66:36: error: expected ')' before '' token
[INFO] /tmp/data/hackthon/rocksdb/util/mutexlock.h:72:3: error: 'port' does not name a type
[INFO] /tmp/data/hackthon/ro/tmpcksdb/util/mutexlock.h: In destructor 'rocksdb::WriteLock::~WriteLock()':
[INFO] /tmp/data/hackthon/rocksdb/util/mutexlock.h:69:24: error: 'class rocksdb::WriteLock' has no member named 'mu_'
[INFO] make: ** [rocksdbjni.lo] Error 1