[
https://issues.apache.org/jira/browse/HADOOP-11638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14364485#comment-14364485
]
Chris Nauroth commented on HADOOP-11638:
----------------------------------------
Thanks, Colin. While the previous code compiled on Mac, I'm not sure if anyone
knows whether or not it really worked. :-) We only use Mac as a deployment
environment and never as a real deployment environment (AFAIK), so it's quite
possible that no one noticed a problem. The revert was based on the fact that
the prior patch took us from a working Mac build (but possibly with bugs in
this part of the code) to a compilation failure.
Thanks for filing HDFS-7938.
> OpensslSecureRandom.c pthreads_thread_id should support FreeBSD and Solaris
> in addition to Linux
> ------------------------------------------------------------------------------------------------
>
> Key: HADOOP-11638
> URL: https://issues.apache.org/jira/browse/HADOOP-11638
> Project: Hadoop Common
> Issue Type: Bug
> Components: native
> Affects Versions: 2.6.0
> Reporter: Dmitry Sivachenko
> Assignee: Kiran Kumar M R
> Labels: freebsd
> Fix For: 2.7.0
>
> Attachments: HADOOP-11638-001.patch, HADOOP-11638-002.patch,
> HADOOP-11638-003.patch, HADOOP-11638-004.patch
>
>
> In OpensslSecureRandom.c you use Linux-specific syscall gettid():
> static unsigned long pthreads_thread_id(void)
> {
> return (unsigned long)syscall(SYS_gettid);
> }
> Man page says:
> gettid() is Linux-specific and should not be used in programs that are
> intended to be portable.
> This breaks hadoop-2.6.0 compilation on FreeBSD (may be on other OSes too).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)