vim / vim-appimage

AppImage for gVim
118 stars 18 forks source link

In Ubuntu 22.04 error libpango-1.0.so.0: undefined symbol: g_memdup2 #32

Closed MarioBross69 closed 1 year ago

MarioBross69 commented 2 years ago

In Ubuntu 22.04 Desktop when executing it the error occurs

gvim: symbol lookup error: /lib/x86_64-linux-gnu/libpango-1.0.so.0: undefined symbol: g_memdup2

Thanks

q962 commented 2 years ago

The reason why this problem occurs for me is to call the program in vim-terminal

Because AppRun sets LD_LIBRARY_PATH

MarioBross69 commented 2 years ago

It happens to me both from the terminal and from the desktop

Can you tell me an example of how to call Gvim.appimage with rpath?

Thank you

El jue, 16 jun 2022 a las 4:20, 提及 @.***>) escribió:

The reason why this problem occurs for me is to call the program in vim-terminal

Because AppRun sets LD_LIBRARY_PATH

— Reply to this email directly, view it on GitHub https://github.com/vim/vim-appimage/issues/32#issuecomment-1157158761, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF2SOX42ZZPHW5OGKJ4EFSLVPKFOTANCNFSM5YQU25NQ . You are receiving this because you authored the thread.Message ID: @.***>

q962 commented 2 years ago

No, this problem occurs because the latest version of gtk and its dependencies are compiled for myself. And libpango-1.0 in the system is an old version

But I don't know why vim doesn't include the libpango-1.0.so file, which is not found in the package.

This may be a packaging error of vim

And I haven't sorted out the logic of RPATH and LD_LIBRARY_PATH

chrisbra commented 2 years ago

so you are saying, libpango should be included in the appimage? Because currently it is deleted and not included on purpose:

https://github.com/vim/vim-appimage/blob/3a1f97f43b047536cb5b86aea9d4b86fe42cf096/scripts/appimage.sh#L83-L90

We could remove that, but the comment says this causes another problem if the library is there.

chrisbra commented 2 years ago

Hm, related: https://github.com/AppImage/pkg2appimage/commit/f2df956789f36204213876c96500c8b05595e43b

So let me disable that part and see if this helps

MarioBross69 commented 2 years ago

seems like a difficult problem to solve..., thank you very much for your work

El jue, 16 jun 2022 9:05, 提及 @.***> escribió:

No, this problem occurs because the latest version of gtk and its dependencies are compiled for myself. And libpango-1.0 in the system is an old version

But I don't know why vim doesn't include the libpango-1.0.so file, which is not found in the package.

This may be a packaging error of vim

And I haven't sorted out the logic of RPATH and LD_LIBRARY_PATH

— Reply to this email directly, view it on GitHub https://github.com/vim/vim-appimage/issues/32#issuecomment-1157310281, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF2SOX5QXZEZTSNIJ2NOTWDVPLG33ANCNFSM5YQU25NQ . You are receiving this because you authored the thread.Message ID: @.***>

MarioBross69 commented 2 years ago

With the new version more errors occur :-(

./GVim-v8.2.5114.glibc2.15-x86_64.AppImage /usr/lib/x86_64-linux-gnu/gio/modules/libgiognutls.so: undefined symbol: g_byte_array_steal Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgiognutls.so /usr/lib/x86_64-linux-gnu/gio/modules/libgiognomeproxy.so: undefined symbol: g_task_set_name Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgiognomeproxy.so /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so: undefined symbol: g_task_set_name Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so /usr/lib/x86_64-linux-gnu/gio/modules/libgiolibproxy.so: undefined symbol: g_task_set_name Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgiolibproxy.so /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so: undefined symbol: g_task_set_name Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgioremote-volume-monitor.so

(gvim:133339): Gtk-WARNING **: 19:41:42.833: Theme parsing error: gtk.css:1422:23: 'font-feature-settings' is not a valid property name

(gvim:133339): Gtk-WARNING **: 19:41:42.838: Theme parsing error: gtk.css:3308:25: 'font-feature-settings' is not a valid property name

(gvim:133339): Gtk-WARNING **: 19:41:42.840: Theme parsing error: gtk.css:3770:23: 'font-feature-settings' is not a valid property name

(gvim:133339): Gtk-WARNING **: 19:41:43.030: Theme parsing error: gtk.css:1422:23: 'font-feature-settings' is not a valid property name

(gvim:133339): Gtk-WARNING **: 19:41:43.034: Theme parsing error: gtk.css:3308:25: 'font-feature-settings' is not a valid property name

(gvim:133339): Gtk-WARNING **: 19:41:43.035: Theme parsing error: gtk.css:3770:23: 'font-feature-settings' is not a valid property name

(gvim:133339): Gtk-WARNING : 19:41:43.130: Could not load a pixbuf from icon theme. This may indicate that pixbuf loaders or the mime database could not be found. Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/Yaru/16x16/status/image-missing.png: No se ha reconocido el formato de imagen del archivo (gdk-pixbuf-error-quark, 3) Vim: Caught deadly signal ABRT Vim: Finished. Abortado (`core' generado)

q962 commented 2 years ago

Still a packaging problem, the dependencies are not all packaged: /usr/lib/x86_64-linux-gnu/gio/modules/*

You can try to circumvent this problem by running vim instead of GVim

MarioBross69 commented 2 years ago

I'm already using vim, but I was interested in using gvim Thank you

chrisbra commented 1 year ago

Hm, I have the same issue on Debian Bullseye:

/usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so: undefined symbol: g_task_set_name