#57334 closed defect (fixed)
gimp2: error: typedef redefinition with different types
| Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | dbevans (David B. Evans) |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | |
| Keywords: | Cc: | ||
| Port: | gimp2 |
Description
gimp2 fails to build on 10.6:
In file included from gimpwidgets-utils.c:37:
In file included from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:30:
In file included from /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QD.h:41:
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QuickdrawTypes.h:267:41: error: typedef redefinition with different types ('struct Cursor' vs 'XID' (aka 'unsigned long'))
typedef struct Cursor Cursor;
^
/opt/local/include/X11/X.h:103:13: note: previous definition is here
typedef XID Cursor;
^
1 error generated.
make[3]: *** [gimpwidgets-utils.o] Error 1
Apparently macOS and X11 both define something different called Cursor. Not sure how such a conflict is meant to be dealt with, nor why we don't see the problem with other X11 software. See #19743 for a previous instance of this type of problem with another port, which was unhelpfully closed as invalid.
Change History (4)
comment:1 Changed 8 years ago by kencu (Ken)
comment:2 Changed 8 years ago by dbevans (David B. Evans)
comment:3 Changed 8 years ago by dbevans (David B. Evans)
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
comment:4 Changed 8 years ago by dbevans (David B. Evans)
Note: See
TracTickets for help on using
tickets.

I fixed that like this <https://github.com/macports/macports-ports/blob/master/www/webkit2-gtk/files/patch-snowleopard-npruntime-redefine-cursor.diff> in wbkit2-gtk.