Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-19170

Fixes compilation issues on Mac

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.5.0, 3.4.1
    • None
    • OS:  macOS Catalina 10.15.7

      compiler: clang 12.0.0

      cmake: 3.24.0

    Description

      When I build hadoop-common native in Mac OS, I found this error:

      /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) 

      The reason is that Mac OS does not support glibc. And C conditional compilation requires validation of all expressions.

      Attachments

        Activity

          People

            zhengchenyu Chenyu Zheng
            zhengchenyu Chenyu Zheng
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: