[ https://issues.apache.org/jira/browse/HADOOP-19170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17846477#comment-17846477 ]
ASF GitHub Bot commented on HADOOP-19170: ----------------------------------------- zhengchenyu commented on PR #6827: URL: https://github.com/apache/hadoop/pull/6827#issuecomment-2111467319 > thanks, merged to trunk. If you do a PR cherrypicking this against hadoop branch-3.4 I'll commit it there as soon as yetus is happy...no need for any code review. Yes, this is only lack of unit test. In this PR, only change conditional compilation, the unit test could not take effect . Just backport https://github.com/apache/hadoop/pull/6822 to branch-3.4. > Fixes compilation issues on Mac > ------------------------------- > > Key: HADOOP-19170 > URL: https://issues.apache.org/jira/browse/HADOOP-19170 > Project: Hadoop Common > Issue Type: Bug > Environment: OS: macOS Catalina 10.15.7 > compiler: clang 12.0.0 > cmake: 3.24.0 > Reporter: Chenyu Zheng > Assignee: Chenyu Zheng > Priority: Major > Labels: pull-request-available > Fix For: 3.5.0 > > > When I build hadoop-common native in Mac OS, I found this error: > {code:java} > /xxxxx/hadoop/hadoop-common-project/hadoop-common/src/main/native/src/exception.c:114:50: > error: function-like macro '__GLIBC_PREREQ' is not defined > #if defined(__sun) || defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 32) {code} > The reason is that Mac OS does not support glibc. And C conditional > compilation requires validation of all expressions. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org