hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Zhuge (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-11724) libhdfs compilation is broken on OS X
Date Sat, 29 Apr 2017 17:42:04 GMT

    [ https://issues.apache.org/jira/browse/HDFS-11724?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15989968#comment-15989968

John Zhuge commented on HDFS-11724:

Thanks [~aw] for catching this issue. You are right about using {{stdlib.h}} for {{malloc}}.
See these POSIX and Linux man pages:
* http://www.unix.com/man-page/POSIX/3posix/malloc/
* https://linux.die.net/man/3/malloc

> libhdfs compilation is broken on OS X
> -------------------------------------
>                 Key: HDFS-11724
>                 URL: https://issues.apache.org/jira/browse/HDFS-11724
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: libhdfs
>    Affects Versions: 3.0.0-alpha3
>            Reporter: Allen Wittenauer
>            Assignee: Sailesh Mukil
>            Priority: Blocker
> Looks like HDFS-11529 added an include for malloc.h, which isn't available on OS X and
likely other operating systems.  Many OSes use sys/malloc.h, including OS X.  But considering
this is supposed to be POSIX, then it should be using the define in stdlib.h (as mentioned
in pretty much every userland man page on malloc).

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org

View raw message