[MacPorts] #64727: gettext-runtime: Can't build on clean macOS Lion

MacPorts noreply at macports.org
Thu Feb 24 21:24:13 UTC 2022


#64727: gettext-runtime: Can't build on clean macOS Lion
------------------------------+------------------------
  Reporter:  catap            |      Owner:  ryandesign
      Type:  defect           |     Status:  assigned
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:
Resolution:                   |   Keywords:
      Port:  gettext-runtime  |
------------------------------+------------------------

Comment (by catap):

 The minimal code that fails:
 {{{
 macOS-Lion:tmp catap$ cat test.c
 # define _GL_HAS_ATTRIBUTE(attr) __has_attribute (__##attr##__)

 #if _GL_HAS_ATTRIBUTE (const)
 # define _GL_ATTRIBUTE_CONST __attribute__ ((__const__))
 #else
 # define _GL_ATTRIBUTE_CONST
 #endif

 macOS-Lion:tmp catap$ clang test.c
 test.c:3:5: error: builtin feature check macro requires a parenthesized
 identifier
 #if _GL_HAS_ATTRIBUTE (const)
     ^
 test.c:1:34: note: expanded from macro '_GL_HAS_ATTRIBUTE'
 # define _GL_HAS_ATTRIBUTE(attr) __has_attribute (__##attr##__)
                                  ^
 test.c:3:5: error: expected end of line in preprocessor expression
 #if _GL_HAS_ATTRIBUTE (const)
     ^
 test.c:1:63: note: expanded from macro '_GL_HAS_ATTRIBUTE'
 # define _GL_HAS_ATTRIBUTE(attr) __has_attribute (__##attr##__)
                                                               ^
 2 errors generated.
 macOS-Lion:tmp catap$ clang --version
 Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM
 3.1svn)
 Target: x86_64-apple-darwin11.4.2
 Thread model: posix
 macOS-Lion:tmp catap$
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/64727#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list