[MacPorts] #69471: gtk2 @2.24.33_3+quartz fails to build: incompatible function pointer types
MacPorts
noreply at macports.org
Sun Mar 10 23:42:12 UTC 2024
#69471: gtk2 @2.24.33_3+quartz fails to build: incompatible function pointer types
------------------------+----------------------
Reporter: DrLex0 | Owner: mascguy
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.9.1
Resolution: | Keywords:
Port: gtk2 gimp |
------------------------+----------------------
Comment (by DrLex0):
I have managed to get it to build, by manually editing 2 files inside the
gtk2/work/gtk+-2.24.33 dir:
1. I compared what macports tries to build, against the latest gtk2
source, and dropped the `(GCompareFunc)` in line 1474 of gtk/gtkscale.c
2. Fixed tests/testmenubars.c: add missing `int` type to `depth`
parameter, drop superfluous `TRUE` arguments from invocations of this
function. This file can never have compiled, except maybe with some really
ancient lenient compiler. No idea why it is now being compiled, the latest
gtk2 source no longer has this file anyhow, so the proper fix is probably
to just delete it…
After this, gimp2 build succeeded. But, gutenprint build failed because of
this: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269972
So, I also manually patched it, and now I have a working GIMP again.
--
Ticket URL: <https://trac.macports.org/ticket/69471#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list