polkit 121 compatibility problem
Affected version
gnome-shell-40.2
Bug summary
Compilation of gnome-shell-40.2 against polkit 121 fails on NetBSD (though I don't think that matters here), with
[132/245] Compiling C object src/libgnome-shell.so.p/shell-polkit-authentication-agent.c.o
FAILED: src/libgnome-shell.so.p/shell-polkit-authentication-agent.c.o
gcc -Isrc/libgnome-shell.so.p -Isrc -I../src -I. -I.. -Isrc/st -I../src/st -Isrc/tray -I../src/tray -Ijs -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include/libxml2 -I/usr/pkg/include/gtk-3.0 -I/usr/pkg/include/pango-1.0 -I/usr/pkg/include/gdk-pixbuf-2.0 -I/usr/pkg/include/cairo -I/usr/X11R7/include -I/usr/pkg/include/dbus-1.0 -I/usr/pkg/lib/dbus-1.0/include -I/usr/pkg/include/atk-1.0 -I/usr/pkg/include/harfbuzz -I/usr/pkg/include/freetype2 -I/usr/pkg/include/at-spi2-atk/2.0 -I/usr/pkg/include/at-spi-2.0 -I/usr/X11R7/include/pixman-1 -I/usr/pkg/include/fribidi -I/usr/pkg/include/libpng16 -I/usr/pkg/include/gjs-1.0 -I/usr/pkg/include/gobject-introspection-1.0 -I/usr/pkg/include/json-glib-1.0 -I/usr/pkg/include/mutter-8/cogl -I/usr/pkg/include/graphene-1.0 -I/usr/pkg/lib/graphene-1.0/include -I/usr/pkg/include/mutter-8/clutter -I/usr/X11R7/include/libdrm -I/usr/pkg/include/startup-notification-1.0 -I/usr/pkg/include/polkit-1 -I/usr/pkg/include/gcr-3 -I/usr/pkg/include/gck-1 -I/usr/pkg/include/p11-kit-1 -I/usr/pkg/include/gsettings-desktop-schemas -I/usr/pkg/include/mutter-8 -I/usr/pkg/include/gnome-desktop-3.0 -I/usr/include -I/usr/pkg/include/nspr -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O2 -fPIC -D_FORTIFY_SOURCE=2 -fPIC -pthread -mfpmath=sse -msse -msse2 -mfpmath=sse -msse -msse2 -mfpmath=sse -msse -msse2 -include /usr/pkg/include/mozjs-78/js/RequiredDefines.h -isystem /usr/pkg/include/mozjs-78 -D_REENTRANT -DCLUTTER_ENABLE_EXPERIMENTAL_API -DCOGL_ENABLE_EXPERIMENTAL_API '-DVERSION="40.2"' '-DLOCALEDIR="/usr/pkg/share/locale"' '-DDATADIR="/usr/pkg/share"' '-DGNOME_SHELL_LIBEXECDIR="/usr/pkg/libexec"' '-DGNOME_SHELL_DATADIR="/usr/pkg/share/gnome-shell"' '-DGNOME_SHELL_PKGLIBDIR="/usr/pkg/lib/gnome-shell"' -MD -MQ src/libgnome-shell.so.p/shell-polkit-authentication-agent.c.o -MF src/libgnome-shell.so.p/shell-polkit-authentication-agent.c.o.d -o src/libgnome-shell.so.p/shell-polkit-authentication-agent.c.o -c ../src/shell-polkit-authentication-agent.c
In file included from /tmp/x11/gnome-shell/work/.buildlink/lib/glib-2.0/include/glibconfig.h:9:0,
from /tmp/x11/gnome-shell/work/.buildlink/include/glib-2.0/glib/gtypes.h:34,
from /tmp/x11/gnome-shell/work/.buildlink/include/glib-2.0/glib/galloca.h:34,
from /tmp/x11/gnome-shell/work/.buildlink/include/glib-2.0/glib.h:32,
from /tmp/x11/gnome-shell/work/.buildlink/include/glib-2.0/gobject/gbinding.h:30,
from /tmp/x11/gnome-shell/work/.buildlink/include/glib-2.0/glib-object.h:24,
from /tmp/x11/gnome-shell/work/.buildlink/include/polkit-1/polkitagent/polkitagenttypes.h:29,
from /tmp/x11/gnome-shell/work/.buildlink/include/polkit-1/polkitagent/polkitagent.h:30,
from ../src/shell-polkit-authentication-agent.h:12,
from ../src/shell-polkit-authentication-agent.c:13:
/tmp/x11/gnome-shell/work/.buildlink/include/glib-2.0/glib/gmacros.h:1338:49: error: redefinition of 'glib_autoptr_clear_PolkitAgentListener'
#define _GLIB_AUTOPTR_CLEAR_FUNC_NAME(TypeName) glib_autoptr_clear_##TypeName
^
/tmp/x11/gnome-shell/work/.buildlink/include/glib-2.0/glib/gmacros.h:1354:36: note: in expansion of macro '_GLIB_AUTOPTR_CLEAR_FUNC_NAME'
static G_GNUC_UNUSED inline void _GLIB_AUTOPTR_CLEAR_FUNC_NAME(TypeName) (TypeName *_ptr) \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/x11/gnome-shell/work/.buildlink/include/glib-2.0/glib/gmacros.h:1371:3: note: in expansion of macro '_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS'
_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS(TypeName, TypeName, func)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/shell-polkit-authentication-agent.h:18:1: note: in expansion of macro 'G_DEFINE_AUTOPTR_CLEANUP_FUNC'
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitAgentListener, g_object_unref)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/x11/gnome-shell/work/.buildlink/include/glib-2.0/glib/gmacros.h:1338:49: note: previous definition of 'glib_autoptr_clear_PolkitAgentListener' was here
#define _GLIB_AUTOPTR_CLEAR_FUNC_NAME(TypeName) glib_autoptr_clear_##TypeName
^
/tmp/x11/gnome-shell/work/.buildlink/include/glib-2.0/glib/gmacros.h:1354:36: note: in expansion of macro '_GLIB_AUTOPTR_CLEAR_FUNC_NAME'
static G_GNUC_UNUSED inline void _GLIB_AUTOPTR_CLEAR_FUNC_NAME(TypeName) (TypeName *_ptr) \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/x11/gnome-shell/work/.buildlink/include/glib-2.0/glib/gmacros.h:1371:3: note: in expansion of macro '_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS'
_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS(TypeName, TypeName, func)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/x11/gnome-shell/work/.buildlink/include/polkit-1/polkitagent/polkitagenttypes.h:43:1: note: in expansion of macro 'G_DEFINE_AUTOPTR_CLEANUP_FUNC'
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitAgentListener, g_object_unref)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/x11/gnome-shell/work/.buildlink/include/glib-2.0/glib/gmacros.h:1337:43: error: redefinition of 'glib_autoptr_cleanup_PolkitAgentListener'
#define _GLIB_AUTOPTR_FUNC_NAME(TypeName) glib_autoptr_cleanup_##TypeName
^
/tmp/x11/gnome-shell/work/.buildlink/include/glib-2.0/glib/gmacros.h:1356:36: note: in expansion of macro '_GLIB_AUTOPTR_FUNC_NAME'
static G_GNUC_UNUSED inline void _GLIB_AUTOPTR_FUNC_NAME(TypeName) (TypeName **_ptr) \
^~~~~~~~~~~~~~~~~~~~~~~
/tmp/x11/gnome-shell/work/.buildlink/include/glib-2.0/glib/gmacros.h:1371:3: note: in expansion of macro '_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS'
_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS(TypeName, TypeName, func)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/shell-polkit-authentication-agent.h:18:1: note: in expansion of macro 'G_DEFINE_AUTOPTR_CLEANUP_FUNC'
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitAgentListener, g_object_unref)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/x11/gnome-shell/work/.buildlink/include/glib-2.0/glib/gmacros.h:1337:43: note: previous definition of 'glib_autoptr_cleanup_PolkitAgentListener' was here
#define _GLIB_AUTOPTR_FUNC_NAME(TypeName) glib_autoptr_cleanup_##TypeName
^
/tmp/x11/gnome-shell/work/.buildlink/include/glib-2.0/glib/gmacros.h:1356:36: note: in expansion of macro '_GLIB_AUTOPTR_FUNC_NAME'
static G_GNUC_UNUSED inline void _GLIB_AUTOPTR_FUNC_NAME(TypeName) (TypeName **_ptr) \
^~~~~~~~~~~~~~~~~~~~~~~
/tmp/x11/gnome-shell/work/.buildlink/include/glib-2.0/glib/gmacros.h:1371:3: note: in expansion of macro '_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS'
_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS(TypeName, TypeName, func)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/x11/gnome-shell/work/.buildlink/include/polkit-1/polkitagent/polkitagenttypes.h:43:1: note: in expansion of macro 'G_DEFINE_AUTOPTR_CLEANUP_FUNC'
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitAgentListener, g_object_unref)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/x11/gnome-shell/work/.buildlink/include/glib-2.0/glib/gmacros.h:1340:48: error: redefinition of 'glib_listautoptr_cleanup_PolkitAgentListener'
#define _GLIB_AUTOPTR_LIST_FUNC_NAME(TypeName) glib_listautoptr_cleanup_##TypeName
^
/tmp/x11/gnome-shell/work/.buildlink/include/glib-2.0/glib/gmacros.h:1358:36: note: in expansion of macro '_GLIB_AUTOPTR_LIST_FUNC_NAME'
static G_GNUC_UNUSED inline void _GLIB_AUTOPTR_LIST_FUNC_NAME(TypeName) (GList **_l) \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/x11/gnome-shell/work/.buildlink/include/glib-2.0/glib/gmacros.h:1371:3: note: in expansion of macro '_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS'
_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS(TypeName, TypeName, func)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/shell-polkit-authentication-agent.h:18:1: note: in expansion of macro 'G_DEFINE_AUTOPTR_CLEANUP_FUNC'
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitAgentListener, g_object_unref)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/x11/gnome-shell/work/.buildlink/include/glib-2.0/glib/gmacros.h:1340:48: note: previous definition of 'glib_listautoptr_cleanup_PolkitAgentListener' was here
#define _GLIB_AUTOPTR_LIST_FUNC_NAME(TypeName) glib_listautoptr_cleanup_##TypeName
^
/tmp/x11/gnome-shell/work/.buildlink/include/glib-2.0/glib/gmacros.h:1358:36: note: in expansion of macro '_GLIB_AUTOPTR_LIST_FUNC_NAME'
static G_GNUC_UNUSED inline void _GLIB_AUTOPTR_LIST_FUNC_NAME(TypeName) (GList **_l) \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/x11/gnome-shell/work/.buildlink/include/glib-2.0/glib/gmacros.h:1371:3: note: in expansion of macro '_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS'
_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS(TypeName, TypeName, func)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/x11/gnome-shell/work/.buildlink/include/polkit-1/polkitagent/polkitagenttypes.h:43:1: note: in expansion of macro 'G_DEFINE_AUTOPTR_CLEANUP_FUNC'
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitAgentListener, g_object_unref)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/x11/gnome-shell/work/.buildlink/include/glib-2.0/glib/gmacros.h:1342:49: error: redefinition of 'glib_slistautoptr_cleanup_PolkitAgentListener'
#define _GLIB_AUTOPTR_SLIST_FUNC_NAME(TypeName) glib_slistautoptr_cleanup_##TypeName
^
/tmp/x11/gnome-shell/work/.buildlink/include/glib-2.0/glib/gmacros.h:1360:36: note: in expansion of macro '_GLIB_AUTOPTR_SLIST_FUNC_NAME'
static G_GNUC_UNUSED inline void _GLIB_AUTOPTR_SLIST_FUNC_NAME(TypeName) (GSList **_l) \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/x11/gnome-shell/work/.buildlink/include/glib-2.0/glib/gmacros.h:1371:3: note: in expansion of macro '_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS'
_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS(TypeName, TypeName, func)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/shell-polkit-authentication-agent.h:18:1: note: in expansion of macro 'G_DEFINE_AUTOPTR_CLEANUP_FUNC'
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitAgentListener, g_object_unref)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/x11/gnome-shell/work/.buildlink/include/glib-2.0/glib/gmacros.h:1342:49: note: previous definition of 'glib_slistautoptr_cleanup_PolkitAgentListener' was here
#define _GLIB_AUTOPTR_SLIST_FUNC_NAME(TypeName) glib_slistautoptr_cleanup_##TypeName
^
/tmp/x11/gnome-shell/work/.buildlink/include/glib-2.0/glib/gmacros.h:1360:36: note: in expansion of macro '_GLIB_AUTOPTR_SLIST_FUNC_NAME'
static G_GNUC_UNUSED inline void _GLIB_AUTOPTR_SLIST_FUNC_NAME(TypeName) (GSList **_l) \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/x11/gnome-shell/work/.buildlink/include/glib-2.0/glib/gmacros.h:1371:3: note: in expansion of macro '_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS'
_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS(TypeName, TypeName, func)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/x11/gnome-shell/work/.buildlink/include/polkit-1/polkitagent/polkitagenttypes.h:43:1: note: in expansion of macro 'G_DEFINE_AUTOPTR_CLEANUP_FUNC'
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitAgentListener, g_object_unref)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/x11/gnome-shell/work/.buildlink/include/glib-2.0/glib/gmacros.h:1344:49: error: redefinition of 'glib_queueautoptr_cleanup_PolkitAgentListener'
#define _GLIB_AUTOPTR_QUEUE_FUNC_NAME(TypeName) glib_queueautoptr_cleanup_##TypeName
^
/tmp/x11/gnome-shell/work/.buildlink/include/glib-2.0/glib/gmacros.h:1362:36: note: in expansion of macro '_GLIB_AUTOPTR_QUEUE_FUNC_NAME'
static G_GNUC_UNUSED inline void _GLIB_AUTOPTR_QUEUE_FUNC_NAME(TypeName) (GQueue **_q) \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/x11/gnome-shell/work/.buildlink/include/glib-2.0/glib/gmacros.h:1371:3: note: in expansion of macro '_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS'
_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS(TypeName, TypeName, func)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/shell-polkit-authentication-agent.h:18:1: note: in expansion of macro 'G_DEFINE_AUTOPTR_CLEANUP_FUNC'
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitAgentListener, g_object_unref)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/x11/gnome-shell/work/.buildlink/include/glib-2.0/glib/gmacros.h:1344:49: note: previous definition of 'glib_queueautoptr_cleanup_PolkitAgentListener' was here
#define _GLIB_AUTOPTR_QUEUE_FUNC_NAME(TypeName) glib_queueautoptr_cleanup_##TypeName
^
/tmp/x11/gnome-shell/work/.buildlink/include/glib-2.0/glib/gmacros.h:1362:36: note: in expansion of macro '_GLIB_AUTOPTR_QUEUE_FUNC_NAME'
static G_GNUC_UNUSED inline void _GLIB_AUTOPTR_QUEUE_FUNC_NAME(TypeName) (GQueue **_q) \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/x11/gnome-shell/work/.buildlink/include/glib-2.0/glib/gmacros.h:1371:3: note: in expansion of macro '_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS'
_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS(TypeName, TypeName, func)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/x11/gnome-shell/work/.buildlink/include/polkit-1/polkitagent/polkitagenttypes.h:43:1: note: in expansion of macro 'G_DEFINE_AUTOPTR_CLEANUP_FUNC'
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitAgentListener, g_object_unref)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I didn't see any commits to src/shell-polkit-authentication-agent.h or .c in the last year that might fix this, nor a bug report.