[MacPorts] #60610: gedit @3.28.1_1: error building +quartz
MacPorts
noreply at macports.org
Sun Jun 7 20:56:24 UTC 2020
#60610: gedit @3.28.1_1: error building +quartz
---------------------+----------------------
Reporter: kencu | Owner: dbevans
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: gedit |
---------------------+----------------------
Comment (by ryandesign):
gtk3 @3.24.20 defines the function as:
{{{
NSWindow *gdk_quartz_window_get_nswindow (GdkWindow *window)
}}}
And gedit @3.28.1 uses it like this:
{{{
NSWindow *nswin;
}}}
{{{
nswin = gdk_quartz_window_get_nswindow (win);
}}}
That seems to match.
I think the first errors in the log are more interesting:
{{{
:info:build gedit/gedit-app-osx.c:49:3: error: use of undeclared
identifier 'NSWindow'
:info:build NSWindow *nswin;
:info:build ^
:info:build gedit/gedit-app-osx.c:49:13: error: use of undeclared
identifier 'nswin'
:info:build NSWindow *nswin;
:info:build ^
:info:build gedit/gedit-app-osx.c:65:3: error: use of undeclared
identifier 'nswin'
:info:build nswin = gdk_quartz_window_get_nswindow (win);
:info:build ^
:info:build gedit/gedit-app-osx.c:65:11: error: implicit declaration of
function 'gdk_quartz_window_get_nswindow' is invalid in C99 [-Werror
,-Wimplicit-function-declaration]
:info:build nswin = gdk_quartz_window_get_nswindow (win);
:info:build ^
}}}
It looks like [https://gitlab.gnome.org/GNOME/gtk/-/issues/2452 gtk3
removed gdk_quartz_window_get_nswindow from the public API], despite the
fact that gedit and others are using it. gedit worked around it by
[https://gitlab.gnome.org/GNOME/gedit/-/merge_requests/74/diffs re-adding
the API]. We could apply that patch to the gedit port or update it to a
newer version.
--
Ticket URL: <https://trac.macports.org/ticket/60610#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list