Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Accumulo >> mail # dev >> missing jni.h building native map


Copy link to this message
-
missing jni.h building native map
I'm fairly sure building the native map was working for me just yesterday.
Today I open a brand new Ubuntu 10.04 VM, downloaded all the same packages
and ran into a compilation issue.

cd nativeMap ; make
make[1]: Entering directory
`/home/medined/bin/accumulo-assemble-1.6.0-SNAPSHOT/server/src/main/c++/nativeMap'
mkdir -p ../../../../../lib/native/map
g++ -g -fPIC -shared -O2 -fno-omit-frame-pointer -fno-strict-aliasing -Wall
-I/include/linux -I/include -m32 -o libNativeMap-Linux-i386-32.so
org_apache_accumulo_server_tabletserver_NativeMap.cc util.cc
In file included from
org_apache_accumulo_server_tabletserver_NativeMap.cc:17:
org_apache_accumulo_server_tabletserver_NativeMap.h:18:17: error: jni.h: No
such file or directory
In file included from
org_apache_accumulo_server_tabletserver_NativeMap.cc:17:
org_apache_accumulo_server_tabletserver_NativeMap.h:31: error: ‘JNIEXPORT’
does not name a type
org_apache_accumulo_server_tabletserver_NativeMap.h:39: error: expected
constructor, destructor, or type conversion before ‘void’
org_apache_accumulo_server_tabletserver_NativeMap.h:47: error: ‘JNIEXPORT’
does not name a type
org_apache_accumulo_server_tabletserver_NativeMap.h:55: error: expected
constructor, destructor, or type conversion before ‘void’
org_apache_accumulo_server_tabletserver_NativeMap.h:63: error: ‘JNIEXPORT’
does not name a type
org_apache_accumulo_server_tabletserver_NativeMap.h:71: error: ‘JNIEXPORT’
does not name a type
org_apache_accumulo_server_tabletserver_NativeMap.h:79: error: ‘JNIEXPORT’
does not name a type
org_apache_accumulo_server_tabletserver_NativeMap.h:87: error: ‘JNIEXPORT’
does not name a type
org_apache_accumulo_server_tabletserver_NativeMap.h:95: error: ‘JNIEXPORT’
does not name a type
org_apache_accumulo_server_tabletserver_NativeMap.h:103: error: ‘JNIEXPORT’
does not name a type
org_apache_accumulo_server_tabletserver_NativeMap.h:111: error: expected
constructor, destructor, or type conversion before ‘void’
org_apache_accumulo_server_tabletserver_NativeMap.h:119: error: ‘JNIEXPORT’
does not name a type
org_apache_accumulo_server_tabletserver_NativeMap.h:127: error: expected
constructor, destructor, or type conversion before ‘void’
In file included from SubKey.h:19,
                 from
org_apache_accumulo_server_tabletserver_NativeMap.cc:18:
Field.h:50: error: ‘JNIEnv’ has not been declared
Field.h:50: error: ‘jbyteArray’ has not been declared
Field.h:56: error: ‘JNIEnv’ has not been declared
Field.h:56: error: ‘jbyteArray’ has not been declared
Field.h:87: error: ‘JNIEnv’ has not been declared
Field.h:87: error: ‘jbyteArray’ has not been declared
Field.h:107: error: ‘JNIEnv’ has not been declared
Field.h:107: error: ‘jbyteArray’ has not been declared
Field.h:112: error: ‘jbyteArray’ does not name a type
Field.h: In constructor ‘Field::Field(LinkedBlockAllocator*, int*, int,
int)’:
Field.h:53: error: request for member ‘GetByteArrayRegion’ in ‘* env’,
which is of non-class type ‘int’
Field.h:53: error: ‘jbyte’ was not declared in this scope
Field.h:53: error: expected primary-expression before ‘)’ token
Field.h: In constructor ‘Field::Field(LinkedBlockAllocator*, int*, int)’:
Field.h:57: error: request for member ‘GetArrayLength’ in ‘* env’, which is
of non-class type ‘int’
Field.h:59: error: request for member ‘GetByteArrayRegion’ in ‘* env’,
which is of non-class type ‘int’
Field.h:59: error: ‘jbyte’ was not declared in this scope
Field.h:59: error: expected primary-expression before ‘)’ token
Field.h: In member function ‘void Field::set(int*, int, int)’:
Field.h:92: error: request for member ‘GetByteArrayRegion’ in ‘* env’,
which is of non-class type ‘int’
Field.h:92: error: ‘jbyte’ was not declared in this scope
Field.h:92: error: expected primary-expression before ‘)’ token
Field.h: In member function ‘void Field::fillIn(int*, int) const’:
Field.h:109: error: request for member ‘SetByteArrayRegion’ in ‘* env’,
which is of non-class type ‘int’
Field.h:109: error: ‘jbyte’ was not declared in this scope
Field.h:109: error: expected primary-expression before ‘)’ token
Field.h: At global scope:
Field.h:132: error: expected ‘)’ before ‘*’ token
In file included from
org_apache_accumulo_server_tabletserver_NativeMap.cc:18:
SubKey.h:78: error: ‘JNIEnv’ has not been declared
SubKey.h:78: error: ‘jbyteArray’ has not been declared
SubKey.h:78: error: ‘jbyteArray’ has not been declared
SubKey.h:78: error: ‘jbyteArray’ has not been declared
SubKey.h:78: error: ‘jlong’ has not been declared
SubKey.h:78: error: ‘jboolean’ has not been declared
In file included from
org_apache_accumulo_server_tabletserver_NativeMap.cc:18:
SubKey.h: In constructor ‘SubKey::SubKey(LinkedBlockAllocator*, int*, int,
int, int, int, int, int32_t)’:
SubKey.h:80: error: request for member ‘GetArrayLength’ in ‘* env’, which
is of non-class type ‘int’
SubKey.h:81: error: request for member ‘GetArrayLength’ in ‘* env’, which
is of non-class type ‘int’
SubKey.h:82: error: request for member ‘GetArrayLength’ in ‘* env’, which
is of non-class type ‘int’
SubKey.h:94: error: request for member ‘GetByteArrayRegion’ in ‘* env’,
which is of non-class type ‘int’
SubKey.h:94: error: ‘jbyte’ was not declared in this scope
SubKey.h:94: error: expected primary-expression before ‘)’ token
SubKey.h:95: error: request for member ‘GetByteArrayRegion’ in ‘* env’,
which is of non-class type ‘int’
SubKey.h:95: error: expected primary-expression before ‘)’ token
SubKey.h:96: error: request for member ‘GetByteArrayRegion’ in ‘* env’,
which is of non-class type ‘int’
SubKey.h:96: error: expected primary-expression before ‘)’ token
SubKey.h: At global scope:
SubKey.h:185: error: expected ‘)’ before ‘*’ token
In file included from
org_apache_accumulo_server_tabletserver_NativeMap.cc:20:
NativeMap.h:128: error: expected ‘;’ before ‘(’ token
NativeMap.h:133: error: expected ‘;’ before ‘ColumnMap’
In file included from
org_apache_accumulo_server_tabletserver_NativeMap.cc:20:
NativeMap.h:151: error: ‘JNIEnv’ has not bee
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB