External Publication
Visit Post

Other/future projects • Re: GTK2 revival

Pale Moon forum - Forum index [Unofficial] May 1, 2026
Source

Hi there. Just for the sake of it I tried to build this Gtk2 project of yours. Apart from a few deprecations I got a warning about an implicit declaration, and then later on an error upon linking related to that declaration. Dunno how to fix this. Running Linux Mint 19.2 (Ubuntu 18.04) with some backports, build tools GCC 9.5. Configuration log:

Gtk2-NG_configuration_log.zip

EDIT: Ah, it's probably due to Glib 2.72.4 missing g_sort_array. It's only available starting with 2.82. Can't install a newer glib unfortunately. Any workaround?

CODE:

gtkfilesystemmodel.c: In function ‘gtk_file_system_model_sort’:gtkfilesystemmodel.c:804:7: warning: implicit declaration of function ‘g_sort_array’ [-Wimplicit-function-declaration] 804 | g_sort_array (get_node (model, 1), /* start at index 1; don't sort the editable row */ | ^~~~~~~~~~~~[...]./.libs/libgtk-x11-2.0.so: undefined reference to `g_sort_array'collect2: error: ld returned 1 exit statusmake[4]: *** [Makefile:2962: gtk-query-immodules-2.0] Error 1[...]./.libs/libgtk-x11-2.0.so: undefined reference to `g_sort_array'collect2: error: ld returned 1 exit statuslinking of temporary binary failed: Command '['/bin/bash', '../libtool', '--mode=link', '--tag=CC', 'gcc', '-o', '<project path>/Gtk2-NG/gtk/tmp-introspectfivxap7y/Gtk-2.0', '-export-dynamic', '-DG_DISABLE_SINGLE_INCLUDES', '-DATK_DISABLE_SINGLE_INCLUDES', '-DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES', '-DGTK_DISABLE_SINGLE_INCLUDES', '-g', '-O2', '-Wall', '<project path>/Gtk2-NG/gtk/tmp-introspectfivxap7y/Gtk-2.0.o', '-L.', 'libgtk-x11-2.0.la', '-lgio-2.0', '-lgobject-2.0', '-Wl,--export-dynamic', '-lgmodule-2.0', '-pthread', '-lglib-2.0', '-lglib-2.0']' returned non-zero exit status 1.make[4]: *** [/usr/share/gobject-introspection-1.0/Makefile.introspection:156: Gtk-2.0.gir] Error 1

Discussion in the ATmosphere

Loading comments...