Re: [MacPorts] #57642: p5.26-http-xsheaders: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’

MacPorts noreply at macports.org
Fri Jan 11 02:44:14 UTC 2019


#57642: p5.26-http-xsheaders: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘void’
--------------------------------+----------------------
  Reporter:  ryandesign         |      Owner:  dbevans
      Type:  defect             |     Status:  assigned
  Priority:  Normal             |  Milestone:
 Component:  ports              |    Version:
Resolution:                     |   Keywords:  leopard
      Port:  p5-http-xsheaders  |
--------------------------------+----------------------

Comment (by kencu):

 surprisingly, bumping the compiler up to gcc6 didn't fix this. It's coming
 from these constructs in `/usr/include/secure/_string.h`:
 {{{
 #define memcpy(dest, src, len)                                  \
   ((__darwin_obsz0 (dest) != (size_t) -1)                               \
    ? __builtin___memcpy_chk (dest, src, len, __darwin_obsz0 (dest))     \
    : __inline_memcpy_chk (dest, src, len))

 static inline void *
 __inline_memcpy_chk (void *__dest, const void *__src, size_t __len)
 {
   return __builtin___memcpy_chk (__dest, __src, __len,
 __darwin_obsz0(__dest));
 }
 }}}
 which for some reason the compiler is not liking. Turning off
 FORTIFY_SOURCE=2 bypasses the file, so that enables the build.

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


More information about the macports-tickets mailing list