Gtk 2 application does not star because symbol lookup error

Hello. I am trying to run a gtk application. When I execute the commands on a terminal to run it, what is show to me it is:

/media/34GB/Arquivos-de-Programas-Linux/palemoon/palemoon: symbol lookup error: /media/34GB/Arquivos-de-Programas-Linux/palemoon/ undefined symbol: gdk_x11_set_sm_client_id

I try to run it with: ./ --library-path /media/34GB/Arquivos-de-Programas-Linux/Gcc-4.9.4/lib64/:/media/34GB/Arquivos-de-Programas-Linux/Glibc-2.18-64bit/lib/:/usr/lib/:/lib/:/media/34GB/Arquivos-de-Programas-Linux/xorg/X11-1.6.6/lib/:/media/34GB/Arquivos-de-Programas-Linux/xorg/Xcb-1.13/lib/ /media/34GB/Arquivos-de-Programas-Linux/palemoon/palemoon

Is this error message indicating that a library file on my system (which I think it is Gtk related) does not have some function or other thing implemented that is necessary to run Palemoon?

How can I solve it? Another version (newer)? If yes, which one?

It means that the shared library was compiled against a version of GDK that had the gdk_x11_set_sm_client_id() symbol, but you’re trying to run it against a version of GDK that doesn’t have it.

The gdk_x11_set_sm_client_id() function is only available when building GTK with the X11 backend enabled.

1 Like

Okay. I changed my command to be sure it uses a GTK version with the symbol.

Instead, now I execute:

./ --library-path /media/34GB/Arquivos-de-Programas-Linux/Gcc-4.9.4/lib64/:/media/34GB/Arquivos-de-Programas-Linux/Freetype-2.2.1/lib/:/media/34GB/Arquivos-de-Programas-Linux/Fontconfig-2.4.0/lib/:/media/34GB/Arquivos-de-Programas-Linux/xorg/Xrender-±2.10.0/lib/:/media/34GB/Arquivos-de-Programas-Linux/Atk-1.17.0/lib/:/media/34GB/Arquivos-de-Programas-Linux/Pango-1.13.0/lib/:/media/34GB/Arquivos-de-Programas-Linux/Cairo-1.2.0/lib/:/media/34GB/Arquivos-de-Programas-Linux/xorg/X11-1.6.6/lib/:/media/34GB/Arquivos-de-Programas-Linux/xorg/Xcb-1.13/lib/:/media/34GB/Arquivos-de-Programas-Linux/xorg/Xext-1.3.4/lib/:/media/34GB/Arquivos-de-Programas-Linux/xorg/Xt-1.0.0/lib/:/media/34GB/Arquivos-de-Programas-Linux/Zlib-1.2.11/lib/:/media/34GB/Arquivos-de-Programas-Linux/xorg/ICE-1.0.0/lib/pkgconfig/ /media/34GB/Arquivos-de-Programas-Linux/palemoon/palemoon

I am sure the GTK has the symbol, because I executed nm -gD and it has:
000000000001f060 T gdk_set_show_events 000000000001b670 T gdk_set_sm_client_id 000000000004d780 T gdk_set_use_xshm

yet I continue to receive

(pale moon:17323): Gtk-WARNING **: Locale not supported by C library.
Using the fallback ‘C’ locale.
Gtk-Message: Failed to load module “canberra-gtk-module”: cannot open shared object file: No such file or directory
/media/34GB/Arquivos-de-Programas-Linux/palemoon/palemoon: symbol lookup error: /media/34GB/Arquivos-de-Programas-Linux/palemoon/ undefined symbol: gdk_x11_set_sm_client_id

So it seems its trying to use the system default Gtk that does not support the symbol. If so, how can I change it to use my own compiled copy? Why is not the one that I pass through ./ working?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.