You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Chris Nauroth (JIRA)" <ji...@apache.org> on 2014/06/29 23:32:24 UTC
[jira] [Resolved] (HADOOP-10764) Unable to build hadoop-2.2.0 under
FreeBSD-10
[ https://issues.apache.org/jira/browse/HADOOP-10764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Nauroth resolved HADOOP-10764.
------------------------------------
Resolution: Duplicate
Hi, [~trtrmitya]. This one is another duplicate. Take a look at HDFS-5365. The bug is fixed in Hadoop 2.3.0 and later. If you have to stick to version 2.2.0, then the patch on HDFS-5365 probably still would apply cleanly on top of the 2.2.0 codebase. I hope this helps.
> Unable to build hadoop-2.2.0 under FreeBSD-10
> ---------------------------------------------
>
> Key: HADOOP-10764
> URL: https://issues.apache.org/jira/browse/HADOOP-10764
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 2.2.0
> Reporter: Dmitry Sivachenko
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.2#6252)