Description
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).
Attachments
Attachments
Issue Links
- is depended upon by
-
HADOOP-10796 Porting Hadoop to FreeBSD
- Open
- is related to
-
HADOOP-11787 OpensslSecureRandom.c pthread_threadid_np usage signature is wrong on 32-bit Mac
- Closed
- relates to
-
HADOOP-11623 Native compilation fails on Solaris due to use of syscall function.
- Open