[MacPorts] #65707: gtk4 fails on Rosetta on gdkmacosclipboard-private.h and gdkmacosutils-private.h
MacPorts
noreply at macports.org
Mon Aug 22 07:05:15 UTC 2022
#65707: gtk4 fails on Rosetta on gdkmacosclipboard-private.h and gdkmacosutils-
private.h
----------------------------------------------------+----------------------
Reporter: barracuda156 | Owner: mascguy
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.7.2
Keywords: powerpc, leopard, snowleopard, rosetta | Port: gtk4
----------------------------------------------------+----------------------
{{{
In file included from ../gtk-4.6.7/gdk/macos/gdkmacosclipboard.c:24:
../gtk-4.6.7/gdk/macos/gdkmacosclipboard-private.h:65:1: error: cannot
find protocol declaration for 'NSPasteboardType'
65 | -(NSArray<NSPasteboardType> *)types;
| ^
In file included from ../gtk-4.6.7/gdk/macos/gdkmacosclipboard.c:25:
../gtk-4.6.7/gdk/macos/gdkmacosutils-private.h: In function
'convert_nspoint_from_screen':
../gtk-4.6.7/gdk/macos/gdkmacosutils-private.h:55:3: warning: 'NSWindow'
may not respond to '-convertRectFromScreen:'
55 | return [window convertRectFromScreen:NSMakeRect (point.x,
point.y, 0, 0)].origin;
| ^~~~~~
../gtk-4.6.7/gdk/macos/gdkmacosutils-private.h:55:3: warning: (messages
without a matching method signature will be assumed to return 'id' and
accept '...' as arguments)
../gtk-4.6.7/gdk/macos/gdkmacosutils-private.h:55:76: error: request for
member 'origin' in something not a structure or union
55 | return [window convertRectFromScreen:NSMakeRect (point.x,
point.y, 0, 0)].origin;
|
^
../gtk-4.6.7/gdk/macos/gdkmacosutils-private.h: In function
'convert_nspoint_to_screen':
../gtk-4.6.7/gdk/macos/gdkmacosutils-private.h:71:3: warning: 'NSWindow'
may not respond to '-convertRectToScreen:'
71 | return [window convertRectToScreen:NSMakeRect (point.x, point.y,
0, 0)].origin;
| ^~~~~~
../gtk-4.6.7/gdk/macos/gdkmacosutils-private.h:71:74: error: request for
member 'origin' in something not a structure or union
71 | return [window convertRectToScreen:NSMakeRect (point.x, point.y,
0, 0)].origin;
|
^
../gtk-4.6.7/gdk/macos/gdkmacosclipboard.c: At top level:
../gtk-4.6.7/gdk/macos/gdkmacosclipboard.c:397:1: error: cannot find
protocol declaration for 'NSPasteboardType'
397 | -(NSArray<NSPasteboardType> *)types
| ^
../gtk-4.6.7/gdk/macos/gdkmacosclipboard.c: In function
'on_data_ready_cb':
../gtk-4.6.7/gdk/macos/gdkmacosclipboard.c:447:50: error: expected
expression before '^' token
447 | deallocator:^(void *alloc,
NSUInteger length) { g_free (alloc); }];
| ^
../gtk-4.6.7/gdk/macos/gdkmacosclipboard.c:447:50: warning: no
'-initWithBytesNoCopy:length:deallocator:' method found
ninja: build stopped: subcommand failed.
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gnome_gtk4/gtk4/work/build"
&& /opt/local/bin/ninja -j6 -v
Exit code: 1
}}}
--
Ticket URL: <https://trac.macports.org/ticket/65707>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list