emacs-snap icon indicating copy to clipboard operation
emacs-snap copied to clipboard

xdg-open undefined symbol in GLIBC_PRIVATE

Open sergiusens opened this issue 1 year ago • 5 comments

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 avatar Nov 23 '23 01:11 sergiusens

image

sergiusens avatar Nov 23 '23 01:11 sergiusens

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

sergiusens avatar Nov 23 '23 01:11 sergiusens

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)

alexmurray avatar Nov 23 '23 01:11 alexmurray

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.

sergiusens avatar Nov 23 '23 10:11 sergiusens

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

alexmurray avatar Nov 23 '23 11:11 alexmurray