Re: [MacPorts] #57333: xorg-server-devel @1.20.1 does not build on Mac OS X 10.5.8, Leopard, because of redefinition of typedef ‘CARD32’

MacPorts noreply at macports.org
Mon Nov 19 16:52:40 UTC 2018


#57333: xorg-server-devel @1.20.1 does not build on Mac OS X 10.5.8, Leopard,
because of redefinition of typedef ‘CARD32’
--------------------------------+----------------------
  Reporter:  ballapete          |      Owner:  jeremyhu
      Type:  defect             |     Status:  assigned
  Priority:  Normal             |  Milestone:
 Component:  ports              |    Version:  2.5.4
Resolution:                     |   Keywords:  leopard
      Port:  xorg-server-devel  |
--------------------------------+----------------------

Comment (by kencu):

 Here's another approach we could consider... we could build with gcc6 (to
 get around the redefinition of typedef error), and then fix the gcc6 build
 up with these two small additions, which I think are straightforward
 enough:

 {{{
 xorg-server-devel on 10.5 leopard

 add to hw/xquartz/xpr/s-list.hw


 #ifndef X_PFX
 #define X_PFX(x) x_ ## x
 #endif

 +#ifndef __private_extern__
 +#define __private_extern__ extern
 +#endif

 #ifndef X_EXTERN
 #define X_EXTERN __private_extern__
 #endif




 =========


 in hw/xquartz/pbproxy/Makefile

 -OBJCFLAGS = $(CFLAGS)
 +OBJCFLAGS = $(CFLAGS) -fobjc-exceptions

 }}}

 I'm not 1000% sure of the {{{_private_extern__}}} business, but it was
 found in a Google search for this error and indeed does fix it. I'm not
 sure all of the lineage to that fix.

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


More information about the macports-tickets mailing list