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 "Allen Wittenauer (JIRA)" <ji...@apache.org> on 2011/06/07 23:17:04 UTC

[jira] [Commented] (HADOOP-7147) Native code does not build on BSD/OSX

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

Allen Wittenauer commented on HADOOP-7147:
------------------------------------------

Actually, we probably want to ignore the call anyway.  Looks like setnetgrent suffers from some really bizarro portability issues. On Linux, setnetgrent returns 1 on success.  On Solaris, it returns 0.  

There is a side issue as well, at least on Solaris, where setnetgrent() will actually reset for *all* threads that are in the midst of enumerating netgroups.  I haven't verified if this is true on Linux or other platforms.

> Native code does not build on BSD/OSX
> -------------------------------------
>
>                 Key: HADOOP-7147
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7147
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 0.23.0
>            Reporter: Todd Lipcon
>
> HADOOP-6864 uses the setnetgrent function in a way which is not compatible with BSD APIs, where the call returns void rather than int. This prevents the native libs from building on OSX, for example.

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