You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Dmitry Sivachenko <tr...@gmail.com> on 2014/06/17 13:02:48 UTC

hadoop-2.2: build error on FreeBSD

Hello!

FreeBSD does not need "-ldl" when linking programs that use dlopen() (dlopen is in libc).
Now I am getting the following error trying to compile hadoop-2.2.0 on FreeBSD:

     [exec] /usr/bin/cc  -fPIC  -g -Wall -O2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64   -shared -Wl,-soname,libhdfs.so.0.0.0 -o target/usr/local/lib/libhdfs.so.0.0.0 CMakeFiles/hdfs.dir/main/native/libhdfs/exception.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] /usr/local/bin/cmake -H/usr/home/mitya/hadoop-2.2.0-src/hadoop-hdfs-project/hadoop-hdfs/src -B/usr/home/mitya/hadoop-2.2.0-src/h/usr/bin/ld: cannot find -ldl


Can you please adjust your build system not to use "-ldl" on FreeBSD?

Thanks!