Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
2.2.0
-
None
-
None
-
None
Description
FreeBSD does not have libdl.so (dlopen() et al are in libc). So the buld fails:
[exec] /usr/bin/cc -fPIC -g -Wall -O2 -D_REENTRANT -D_GNU_SOURCE -D_LARGE
FILE_SOURCE -D_FILE_OFFSET_BITS=64 -shared -Wl,-soname,libhdfs.so.0.0.0 -o tar
get/usr/local/lib/libhdfs.so.0.0.0 CMakeFiles/hdfs.dir/main/native/libhdfs/excep
tion.c.o CMakeFiles/hdfs.dir/main/native/libhdfs/jni_helper.c.o CMakeFiles/hdfs.
dir/main/native/libhdfs/hdfs.c.o /usr/local/openjdk7/jre/lib/amd64/server/libjvm.so -ldl -lpthread -Wl,-rpath,/usr/local/openjdk7/jre/lib/amd64/server
[exec] *** Error code 1
The solution is not to use "-ldl" under FreeBSD at all.
Attachments
Issue Links
- duplicates
-
HDFS-5365 Fix libhdfs compile error on FreeBSD9
- Closed