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] [Updated] (HDFS-11724) libhdfs compilation is broken on OS X
Date Sat, 29 Apr 2017 18:38:04 GMT

     [ https://issues.apache.org/jira/browse/HDFS-11724?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

John Zhuge updated HDFS-11724:
    Attachment: HDFS-11724.001.patch

Patch 001
* <posix/thread_local_storage.c> includes <stdlib.h> instead of <malloc.h>

Testing done
* Centos 7.2
** Build passed
** hadoop-hdfs-native-client unit tests passed
* Mac
** Build passed
** hadoop-hdfs-native-client unit tests passed except <test_test_libhdfs_zerocopy_hdfs_static>
due to the known issue that short circuit read does not work on Mac (HDFS-3296)

> 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: John Zhuge
>            Priority: Blocker
>         Attachments: HDFS-11724.001.patch
> 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