GTK3 apps using libsoup3 won't start with this message: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported Apply equivalent patch to libsoup3 that was also added libsoup. --- libsoup-3.6.1/meson.build.orig +++ libsoup-3.6.1/meson.build @@ -101,14 +101,12 @@ glib_required_version = '>= 2.70.0' glib_dep = dependency('glib-2.0', version : glib_required_version, fallback: ['glib', 'libglib_dep']) -gmodule_dep = dependency('gmodule-no-export-2.0', version : glib_required_version, - fallback: ['glib', 'libgmodule_dep']) gobject_dep = dependency('gobject-2.0', version : glib_required_version, fallback: ['glib', 'libgobject_dep']) gio_dep = dependency('gio-2.0', version : glib_required_version, fallback: ['glib', 'libgio_dep']) -glib_deps = [glib_dep, gmodule_dep, gobject_dep, gio_dep] +glib_deps = [glib_dep, gobject_dep, gio_dep] cdata = configuration_data() --- libsoup-3.6.1/libsoup/soup-init.c.orig +++ libsoup-3.6.1/libsoup/soup-init.c @@ -10,7 +10,6 @@ #endif #include -#include #include "gconstructor.h" #ifdef G_OS_WIN32 @@ -20,21 +19,6 @@ HMODULE soup_dll; #endif -static gboolean -soup2_is_loaded (void) -{ - GModule *module = g_module_open (NULL, 0); - gpointer func; - gboolean result = FALSE; - - if (g_module_symbol (module, "soup_uri_new", &func)) - result = TRUE; - - g_module_close (module); - - return result; -} - static void soup_init (void) { @@ -51,8 +35,6 @@ bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); #endif - if (soup2_is_loaded ()) - g_error ("libsoup2 symbols detected. Using libsoup2 and libsoup3 in the same process is not supported."); } #if defined (G_OS_WIN32)