Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
3.0.0-alpha1
-
None
-
None
Description
There are several portability problems preventing from compiling native component on freebsd.
1. libgen.h is not included. correct function prototype is there but linux glibc has workaround to define it for user if libgen.h is not directly included. Include this file directly.
2. query max size of login name using sysconf. it follows same code style like rest of code using sysconf too.
3. cgroups are linux only feature, make conditional compile and return error if mount_cgroup is attempted on non linux OS
4. do not use posix function setpgrp() since it clashes with same function from BSD 4.2, use equivalent function. After inspecting glibc sources its just shortcut to setpgid(0,0)
These changes makes it compile on both linux and freebsd.
Attachments
Attachments
Issue Links
- Is contained by
-
YARN-2161 Fix build on macosx: YARN parts
- Closed
- is depended upon by
-
HADOOP-10796 Porting Hadoop to FreeBSD
- Open
- is duplicated by
-
HADOOP-10742 Problems building with -Pnative on FreeBSD 10
- Resolved
-
HADOOP-10765 Unable to build hadoop-2.2.0 under FreeBSD-10
- Resolved