Re: [MacPorts] #45666: emacs-app: error: conflicting types for ‘Cursor’
MacPorts
noreply at macports.org
Mon Dec 22 21:28:15 PST 2014
#45666: emacs-app: error: conflicting types for ‘Cursor’
-------------------------+-------------------
Reporter: dbonnafo@… | Owner: hum@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.2
Resolution: | Keywords:
Port: emacs-app |
-------------------------+-------------------
Comment (by MichaelThomasSullivan@…):
I got the same error on Mac OS X 10.5.8 PPC.
The file macim.m in which the error occurs is added by the "inline" patch
(patch-inline-24.4-20140820.diff) which is applied by the default variant
inline. More recent versions of OS X don't get the error because Apple has
removed the Cursor type from the Carbon framework (it was documented as
being deprecated since Tiger).
I couldn't find any meaningful documentation for that inline patch, but
from the code it appears to add support for input modes for languages like
Japanese, Korean, Chinese, etc. If you don't use those languages the
easiest way to get emacs-app to build on older versions of OS X is to
simply disable the inline variant, i.e. "port install emacs-app -inline".
If you do want the inline variant, a tiny bit of preprocessor hackery can
hide the Cursor type defined by the Carbon framework so that it doesn't
conflict with Emacs' own Cursor type (neither of which are used in
macim.m). I've attached it as patch-src-macim.m.diff; note that this must
be applied after the inline patch creates macim.m.
--
Ticket URL: <https://trac.macports.org/ticket/45666#comment:6>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list