alexmurray / emacs-snap

GNU Emacs in a snap
https://snapcraft.io/emacs
71 stars 14 forks source link

xdg-open undefined symbol in GLIBC_PRIVATE #76

Open sergiusens opened 7 months ago

sergiusens commented 7 months ago
sergiusens@cuivienen:~$ snap run --shell emacs
sergiusens@cuivienen:~$ xdg-open https://ubuntu.com
gio: symbol lookup error: /snap/emacs/2249/usr/lib/x86_64-linux-gnu/gio/modules/../../../../../lib/x86_64-linux-gnu/libpthread.so.0: undefined symbol: __libc_pthread_init, version GLIBC_PRIVATE

Workaround

sergiusens@cuivienen:~$ unset GIO_MODULE_DIR
sergiusens@cuivienen:~$ xdg-open https://ubuntu.com
sergiusens@cuivienen:~$ Gtk-Message: 22:07:59.367: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
sergiusens commented 7 months ago

image

sergiusens commented 7 months ago

I added the following to early-init.el to workaround this

https://github.com/alexmurray/emacs-snap/blob/master/site-lisp/site-start.el#L16C1-L21C16

alexmurray commented 7 months ago

Hmmmm I'm surprised the code from site-lisp.el doesn't appear to be working (I realise it won't run for the snap run --shell emacs case but it should get run automatically by emacs on startup for the eshell example)

sergiusens commented 7 months ago

The only thing I can say that changed is that I blasted away my .emacs.d (moving away from my one month of spacemacs) and retangled my literate emacs.org (which had been previously working) and this started happening.

alexmurray commented 7 months ago

This seems very similar to https://github.com/alexmurray/emacs-snap/issues/73#issuecomment-1774075962 - which was due to some cached variables apparently. Can you try make sure there are no old .elc files or similar? Cheers