对JNI_GetCreatedJavaVMs的未定义引用

时间:2015-12-24 02:21:07

标签: c++ hadoop java-native-interface

这是构建日志,任何人都可以提供帮助吗?

/usr/local/hadoop-2.5.1/lib/native/libhdfs.a(jni_helper.c.o): In function `getGlobalJNIEnv':

/data/elmerzeng/install/packages/hadoop-2.5.1-src/hadoop-hdfs-project/hadoop-hdfs/src/main/native/libhdfs/jni_helper.c:446: undefined reference to `JNI_GetCreatedJavaVMs'

/data/elmerzeng/install/packages/hadoop-2.5.1-src/hadoop-hdfs-project/hadoop-hdfs/src/main/native/libhdfs/jni_helper.c:505: undefined reference to `JNI_CreateJavaVM'

/data/elmerzeng/install/packages/hadoop-2.5.1-src/hadoop-hdfs-project/hadoop-hdfs/src/main/native/libhdfs/jni_helper.c:505: undefined reference to `JNI_CreateJavaVM'

/usr/local/hadoop-2.5.1/lib/native/libhdfs.a(jni_helper.c.o): In function `getJNIEnv':

/data/elmerzeng/install/packages/hadoop-2.5.1-src/hadoop-hdfs-project/hadoop-hdfs/src/main/native/libhdfs/jni_helper.c:570: undefined reference to `pthread_key_create'

/data/elmerzeng/install/packages/hadoop-2.5.1-src/hadoop-hdfs-project/hadoop-hdfs/src/main/native/libhdfs/jni_helper.c:579: undefined reference to `pthread_getspecific'

/data/elmerzeng/install/packages/hadoop-2.5.1-src/hadoop-hdfs-project/hadoop-hdfs/src/main/native/libhdfs/jni_helper.c:598: undefined reference to `pthread_setspecific'
collect2: error: ld returned 1 exit status

0 个答案:

没有答案