Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Upgrade to firefox-bin-141.0 Couldn't load XPCOM

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
11 posts • Page 1 of 1
Author
Message
figueroa
Advocate
Advocate
User avatar
Posts: 3032
Joined: Sun Aug 14, 2005 8:15 pm
Location: Edge of marsh USA
Contact:
Contact figueroa
Website

Upgrade to firefox-bin-141.0 Couldn't load XPCOM

  • Quote

Post by figueroa » Tue Jul 22, 2025 4:22 pm

Routine upgrade this morning:

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."
I don't use Wayland. Masking and emerging and running firefox-bin-140.0.4 works fine.
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi -wayland
Top
Hu
Administrator
Administrator
Posts: 24403
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Tue Jul 22, 2025 4:49 pm

This appears to be www-client/firefox-bin-141.0: will not start without wayland regardless of USE flag (needs x11-libs/gtk:3[wayland]). Per the bug report, it's not clear yet whether upstream will fix this or if everyone using firefox-bin will need to build their gtk with Wayland support, even when they do not use that support.
Top
figueroa
Advocate
Advocate
User avatar
Posts: 3032
Joined: Sun Aug 14, 2005 8:15 pm
Location: Edge of marsh USA
Contact:
Contact figueroa
Website

  • Quote

Post by figueroa » Tue Jul 22, 2025 5:09 pm

Thank you so much, Hu. I'll check that out.
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi -wayland
Top
stefan11111
Veteran
Veteran
Posts: 1025
Joined: Sun Jan 29, 2023 6:08 pm
Location: Romania
Contact:
Contact stefan11111
Website

  • Quote

Post by stefan11111 » Tue Jul 22, 2025 9:10 pm

figueroa wrote:Thank you so much, Hu. I'll check that out.
Try building gtk with this patch:

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
Firefox-bin 141 should work with this patch.
My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Top
figueroa
Advocate
Advocate
User avatar
Posts: 3032
Joined: Sun Aug 14, 2005 8:15 pm
Location: Edge of marsh USA
Contact:
Contact figueroa
Website

  • Quote

Post by figueroa » Tue Jul 22, 2025 9:12 pm

Not "SOLVED" but now working.

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] 
Outcome: firefox-141.0 is now apparently working normally with no observable unintended consequences. Will continue to watch for related bugs.
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi -wayland
Top
stefan11111
Veteran
Veteran
Posts: 1025
Joined: Sun Jan 29, 2023 6:08 pm
Location: Romania
Contact:
Contact stefan11111
Website

  • Quote

Post by stefan11111 » Tue Jul 22, 2025 9:34 pm

figueroa wrote:Not "SOLVED" but now working.
See my post above, you don't need to build gtk with USE=wayland.
My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Top
figueroa
Advocate
Advocate
User avatar
Posts: 3032
Joined: Sun Aug 14, 2005 8:15 pm
Location: Edge of marsh USA
Contact:
Contact figueroa
Website

  • Quote

Post by figueroa » Wed Jul 23, 2025 1:45 am

stefan11111 wrote:
figueroa wrote:Not "SOLVED" but now working.
See my post above, you don't need to build gtk with USE=wayland.
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.
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi -wayland
Top
stefan11111
Veteran
Veteran
Posts: 1025
Joined: Sun Jan 29, 2023 6:08 pm
Location: Romania
Contact:
Contact stefan11111
Website

  • Quote

Post by stefan11111 » Wed Jul 23, 2025 8:30 am

figueroa wrote: If the problem continues, I'll just build Firefox locally.
Is this not a thing with firefox built from source?
If so, that raises the question, what source did they build firefox-bin from?
My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Top
figueroa
Advocate
Advocate
User avatar
Posts: 3032
Joined: Sun Aug 14, 2005 8:15 pm
Location: Edge of marsh USA
Contact:
Contact figueroa
Website

  • Quote

Post by figueroa » Wed Jul 23, 2025 1:57 pm

I sudpect the -bin is built with +wayland. I can build from source with -wayland.

In any case, bug respnse indicates an upstream fix already. https://bugs.gentoo.org/960547#c3
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi -wayland
Top
Havin_it
Veteran
Veteran
Posts: 1343
Joined: Sun Jul 17, 2005 10:26 am
Location: Edinburgh, UK
Contact:
Contact Havin_it
Website

  • Quote

Post by Havin_it » Sat Jul 26, 2025 3:11 pm

The -bin is the actual upstream release binary, so yeah it has wayland enabled.

The USE flag on the ebuild is just there in order to DEPEND x11-libs/gtk+[wayland?]

The upstream bug has the fix targeted to v143 so unless they see fit to backport it and do a point-release, I suppose Gentoo will have to temporarily make that DEPEND mandatory for the next two releases :(

Amusingly it appears this already happened once before.
Top
figueroa
Advocate
Advocate
User avatar
Posts: 3032
Joined: Sun Aug 14, 2005 8:15 pm
Location: Edge of marsh USA
Contact:
Contact figueroa
Website

  • Quote

Post by figueroa » Wed Aug 06, 2025 6:40 pm

Success: firefox-bin-141.0.2 has fixed the wayland USE flag required in mesa and gtk+ and now runs fine without it.

Fail: thunderbird-bin-141.0 now has the same bug:

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.
I'm posting here first since I find bugs.gentoo.org inaccessible for now. Will also post in a new thread. I'm in the process of recompiling mesa and gtk+ with wayland support to work around this bug for thunderbird-bin.
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi -wayland
Top
Post Reply

11 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic