Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gtk "atk-bridge" failed to load: libunity-gtk-module.so: undefined symbol: g_type_check_instance_is_fundamentally_a #19

Closed
maacl opened this issue Dec 19, 2016 · 10 comments
Labels
portability Issues with Portacle features misbehaving or flat-out not working on certain systems

Comments

@maacl
Copy link

maacl commented Dec 19, 2016

On Ubuntu 16.10 I get:

➜  portacle git:(master) ✗ ./portacle.run 
Warning: arch-dependent data dir '/home/linus/portacle/emacs/lin/libexec/emacs/25.1/x86_64-unknown-linux-gnu/': No such file or directory
Gtk-Message: Failed to load module "atk-bridge"
/home/mac/Desktop/portacle/emacs/lin/bin/emacs: symbol lookup error: /usr/lib/x86_64-linux-gnu/gtk-2.0/modules/libunity-gtk-module.so: undefined symbol: g_type_check_instance_is_fundamentally_a
@Shinmera
Copy link
Member

Shinmera commented Dec 19, 2016

The "no such file or directory" thing can be ignored, it is of no consequence and something peculiar to the Emacs compilation that I cannot get rid of.

The GTK symbol lookup is more troubling, but I'm not sure if your report means that Portacle does not launch at all, or just spews these warnings.

@maacl
Copy link
Author

maacl commented Dec 19, 2016

Sorry to be unclear. It does not launch at all. It exits with the last message above.

@Shinmera Shinmera changed the title No such file or directory etc. on launch Gtk "atk-bridge" failed to load: libunity-gtk-module.so: undefined symbol: g_type_check_instance_is_fundamentally_a Dec 19, 2016
@Shinmera Shinmera added the portability Issues with Portacle features misbehaving or flat-out not working on certain systems label Dec 19, 2016
@Shinmera
Copy link
Member

What happens if you try to run it like so:

GTK_MODULES="" GTK3_MODULES="" GTK2_MODULES="" ./portacle.run

@Shinmera
Copy link
Member

Ok, got a VM now. Unsetting GTK_MODULES at least makes Emacs launch, but pretty much everything else breaks down.

@Shinmera
Copy link
Member

I'll have to take a look at this some other time. Things are more bonkers than I thought possible.

@maacl
Copy link
Author

maacl commented Dec 19, 2016

Yeah, I can gte emacs to start with the above, but then I get:

(progn (load "/home/mac/Desktop/portacle/emacs/config/elpa/slime-20161109.640/swank-loader.lisp" :verbose t) (funcall (read-from-string "swank-loader:init")) (funcall (read-from-string "swank:start-server") "/tmp/slime.24084"))

/bin/bash: /home/mac/Desktop/portacle//usr/lin/lib/libtinfo.so.5: no version information available (required by /bin/bash)

Process inferior-lisp segmentation fault (core dumped)

@Shinmera
Copy link
Member

It looks like system's bash completely freaks out when invoked under library environment that is shipped with portacle. Thus almost nothing works, because even an execve will invoke bash potentially.

I need to ship a portable bash, or an approximation thereof to fix this. That'll take some time to work out. Certainly won't get it done before Christmas, I got exams to worry about first.

@maacl
Copy link
Author

maacl commented Dec 20, 2016

BTW I am running ZSH as my shell - could that be a factor?

@Shinmera
Copy link
Member

No, that makes no difference.

@Shinmera
Copy link
Member

Shinmera commented Feb 5, 2017

This has been fixed by the latest changes and should be officially available with the next release.

@Shinmera Shinmera closed this as completed Feb 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
portability Issues with Portacle features misbehaving or flat-out not working on certain systems
Projects
None yet
Development

No branches or pull requests

2 participants