Code: Select all
$ firefox-bin
XPCOMGlueLoad error for file /opt/firefox/libxul.so:
/opt/firefox/libxul.so: undefined symbol: gdk_wayland_device_get_wl_seat
Couldn't load XPCOM."Code: Select all
$ firefox-bin
XPCOMGlueLoad error for file /opt/firefox/libxul.so:
/opt/firefox/libxul.so: undefined symbol: gdk_wayland_device_get_wl_seat
Couldn't load XPCOM."
Try building gtk with this patch:figueroa wrote:Thank you so much, Hu. I'll check that out.
Code: Select all
firefox bin 141 needs this symbols in order to work, even on X11
--- a/gdk/x11/gdkmain-x11.c 2025-07-22 23:14:22.428975803 +0300
+++ b/gdk/x11/gdkmain-x11.c 2025-07-22 23:14:35.078446233 +0300
@@ -46,6 +46,16 @@
#include <X11/XKBlib.h>
#endif
+
+/* for wayland compat */
+__attribute__ ((visibility("default"))) void* gdk_wayland_device_get_wl_pointer() { return NULL; }
+__attribute__ ((visibility("default"))) void* gdk_wayland_device_get_wl_seat() { return NULL; }
+__attribute__ ((visibility("default"))) void* gdk_wayland_display_get_wl_compositor() { return NULL; }
+__attribute__ ((visibility("default"))) void* gdk_wayland_display_get_wl_display() { return NULL; }
+__attribute__ ((visibility("default"))) void* gdk_wayland_window_get_wl_surface() { return NULL; }
+__attribute__ ((visibility("default"))) void gdk_wayland_window_set_use_custom_surface() {}
+
+
/**
* SECTION:x_interaction
* @Short_description: X backend-specific functions
Code: Select all
Added to /etc/portage/package.use
x11-libs/gtk+ wayland
media-libs/mesa wayland
Results in:
# emerge -uDU @world -av
These are the packages that would be merged, in order:
Calculating dependencies... done!
Dependency resolution took 29.78 s (backtrack: 0/20).
[ebuild N ] dev-util/wayland-scanner-1.23.1::gentoo 233 KiB
[ebuild N ] dev-libs/wayland-1.23.1::gentoo USE="-doc -test" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild N ] dev-libs/wayland-protocols-1.45::gentoo USE="-test" 127 KiB
[ebuild R ] media-libs/mesa-25.0.7::gentoo USE="X llvm (opengl) proprietary-codecs wayland* zstd -d3d9 -debug -lm-sensors -opencl -osmesa -test -unwind -vaapi -valgrind -vdpau -vulkan -xa" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="sse2" LLVM_SLOT="20 -15 -16 -17 -18 -19" VIDEO_CARDS="intel r600 radeon -d3d12 (-freedreno) -lavapipe (-lima) -nouveau -nvk (-panfrost) -r300 -radeonsi (-v3d) (-vc4) -virgl (-vivante) -vmware -zink" 0 KiB
[ebuild R ] x11-libs/gtk+-3.24.49-r1:3::gentoo USE="X cups introspection wayland* (-aqua) -broadway -cloudproviders -colord -examples -gtk-doc -sysprof -test -vim-syntax -xinerama" ABI_X86="(64) -32 (-x32)" 0 KiB
Total: 5 packages (3 new, 2 reinstalls), Size of downloads: 360 KiB
Would you like to merge these packages? [Yes/No]

See my post above, you don't need to build gtk with USE=wayland.figueroa wrote:Not "SOLVED" but now working.
Since I have a low-impact working firefox-bin-141.0 for now, I'm OK doing nothing more at this time and just watching the progress. I don't want to be patching future versions in perpetuity. If the problem continues, I'll just build Firefox locally.stefan11111 wrote:See my post above, you don't need to build gtk with USE=wayland.figueroa wrote:Not "SOLVED" but now working.

Is this not a thing with firefox built from source?figueroa wrote: If the problem continues, I'll just build Firefox locally.
Code: Select all
$ thunderbird-bin
XPCOMGlueLoad error for file /opt/thunderbird/libxul.so:
/opt/thunderbird/libxul.so: undefined symbol: gdk_wayland_device_get_wl_seat
Couldn't load XPCOM.