Opened 3 months ago

Last modified 6 weeks ago

#69471 closed defect

gtk2 @2.24.33_3+quartz fails to build: incompatible function pointer types — at Version 2

Reported by: DrLex0 (Alexander Thomas) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.9.1
Keywords: Cc: DrLex0 (Alexander Thomas)
Port: gtk2 gimp

Description (last modified by DrLex0 (Alexander Thomas))

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.

Change History (3)

comment:1 Changed 3 months ago by DrLex0 (Alexander Thomas)

Cc: DrLex0 added
Port: gtk2 gimp added
Version: 2.9.1

comment:2 Changed 3 months ago by DrLex0 (Alexander Thomas)

Description: modified (diff)

Changed 3 months ago by jmroot (Joshua Root)

Attachment: main.log.bz2 added
Note: See TracTickets for help on using tickets.