[ 
https://issues.apache.org/jira/browse/HADOOP-7477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13068025#comment-13068025
 ] 

Matt Foley commented on HADOOP-7477:
------------------------------------

Example from 0.20-security branch on Mac:
%% ant clean -Dlibhdfs=1 -Dcompile.c++=true -Dcompile.native=true compile-native

it gets pretty far along, and then errors with:
{noformat}
     [exec] checking for dlopen in -ldl... yes
     [exec] checking for JNI_GetCreatedJavaVMs in -ljvm... no
     [exec] checking for ANSI C header files... (cached) yes
     [exec] checking stdio.h usability... yes
     [exec] checking stdio.h presence... yes
     [exec] checking for stdio.h... yes
     [exec] checking stddef.h usability... yes
     [exec] checking stddef.h presence... yes
     [exec] checking for stddef.h... yes
     [exec] checking jni.h usability... yes
     [exec] checking jni.h presence... yes
     [exec] checking for jni.h... yes
     [exec] checking zlib.h usability... yes
     [exec] checking zlib.h presence... configure: error: Can't find either 
'objdump' or 'ldd' to compute the dynamic library for '-lz'
     [exec] yes
     [exec] checking for zlib.h... yes
     [exec] checking Checking for the 'actual' dynamic-library for '-lz'... 

BUILD FAILED
/Users/mfoley/projects/java/hadoop-0.20-security-trunk/build.xml:568: The 
following error occurred while executing this line:
/Users/mfoley/projects/java/hadoop-0.20-security-trunk/build.xml:617: exec 
returned: 1
{noformat}

> Native builds (compile-core-native) fail on Mac OSX due to dependency on 
> 'ldd' or 'objdump'
> -------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-7477
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7477
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 0.20.205.0, 0.23.0
>         Environment: Mac OSX build environment
>            Reporter: Matt Foley
>            Assignee: Giridharan Kesavan
>
> When trying to build the patch for HDFS-7432, which is a NativeIO 
> implementation for chmod, it became clear that building the 
> "compile-core-native" target doesn't work on Mac, apparently due to:
> {{[exec] checking zlib.h presence... configure: error: Can't find either 
> 'objdump' or 'ldd' to compute the dynamic library for '-lz'}}
> These utility programs are not present on Mac.  One source suggests using 
> {{otool -L}} instead.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to