You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Dmitry Sivachenko (JIRA)" <ji...@apache.org> on 2015/02/26 18:42:04 UTC
[jira] [Created] (HADOOP-11638) Linux-specific gettid() used in
OpensslSecureRandom.c
Dmitry Sivachenko created HADOOP-11638:
------------------------------------------
Summary: Linux-specific gettid() used in OpensslSecureRandom.c
Key: HADOOP-11638
URL: https://issues.apache.org/jira/browse/HADOOP-11638
Project: Hadoop Common
Issue Type: Bug
Affects Versions: 2.6.0
Reporter: Dmitry Sivachenko
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)