[MacPorts] #69471: gtk2 @2.24.33_3+quartz fails to build: incompatible function pointer types
MacPorts
noreply at macports.org
Sun Mar 10 23:37:54 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 ryandesign):
Replying to [ticket:69471 DrLex0]:
> For some reason the gtk2 build always causes the “Install Command Line
Developer Tools.app” to be launched, claiming that “The "m4" command
requires the command line developer tools,” even though they are already
installed.
We had another report of this in #69467 yesterday, also using Xcode 15.3,
but this error is new to me. Xcode 15.3 was just released five days ago.
Maybe Apple broke something in this version of Xcode. I made a suggestion
in comment:ticket:69467:2 for how to possibly avoid this message. Let us
know if that eliminates that message, and whether it improves the gtk2
build problem, being sure to clean gtk2 before trying again. If you just
want to work around the problem without spending time investigating, you
could downgrade to Xcode 15.2. If you do that, also downgrade to the Xcode
15.2 version of the command line tools to maintain a matched set.
> The gtk2 build fails; digging into the log reveals this error:
> {{{
> :info:build gtkscale.c:1474:50: error: incompatible function pointer
types passing 'GCompareFunc' (aka 'int (*)(const void *, const void *)')
to parameter of type 'GCompareDataFunc' (aka 'int (*)(const void *, const
void *, void *)') [-Wincompatible-function-pointer-types]
> :info:build
(GCompareFunc) compare_marks,
> :info:build
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> :info:build /opt/local/include/glib-2.0/glib/gslist.h:76:26: note:
passing argument to parameter 'func' here
> :info:build GCompareDataFunc
func,
> }}}
> Full build log attached.
>
> Absolutely nothing to be found about this (but maybe that's just because
Google is useless nowadays).
> I can't be the first trying to install gtk2 +quartz in Sonoma?
We have had successful [https://ports.macports.org/port/gtk2/builds/
automated builds of gtk2] without +quartz on all macOS versions including
Sonoma but we don't do automated builds of non-default variants and we're
not using Xcode 15.3 on our build machines yet. This error may be new in
the version of clang included in Xcode 15.3.
--
Ticket URL: <https://trac.macports.org/ticket/69471#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list