[MacPorts] #69471: gtk2 @2.24.33_3+quartz fails to build: incompatible function pointer types

MacPorts noreply at macports.org
Sun Mar 10 22:01:47 UTC 2024


#69471: gtk2 @2.24.33_3+quartz fails to build: incompatible function pointer types
------------------------+--------------------
  Reporter:  DrLex0     |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.9.1
Resolution:             |   Keywords:
      Port:  gtk2 gimp  |
------------------------+--------------------
Description changed by DrLex0:

Old description:

> I am attempting to upgrade my MacPorts to Sonoma. First I tried the
> restore_ports.tcl script, the gtk2 build failed with “Requested variants”
> mismatch.
>
> So, I again wiped everything (sudo port -f uninstall installed), and re-
> executed the same commands from scratch as I had used to install things
> under Mojave. The first command already failed:
> {{{
> sudo port install gimp +quartz -x11
> }}}
>
> 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. I re-installed them just to be sure, it made no difference. I
> guess this is unrelated to the actual failure.
>
> The gtk2 build again 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?
>
> I rely heavily on GIMP, and the MacPorts build is the most usable from
> what is available, moreover I also want to reinstall some other programs
> that rely on gtk2, so I hope this can be fixed quickly.

New description:

 I am attempting to upgrade my MacPorts to Sonoma. First I tried the
 restore_ports.tcl script, the gtk2 build failed with “Requested variants”
 mismatch.

 So, I again wiped everything (sudo port -f uninstall installed), and re-
 executed the same commands from scratch as I had used to install things
 under Mojave. The first command already failed:
 {{{
 sudo port install gimp +quartz -x11
 }}}

 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. I re-installed them just to be sure, it made no difference. I
 guess this is unrelated to the actual failure.

 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?

 I rely heavily on GIMP, and the MacPorts build is the most usable from
 what is available, moreover I also want to reinstall some other programs
 that rely on gtk2, so I hope this can be fixed quickly.

--

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


More information about the macports-tickets mailing list