Opened 5 months ago

Last modified 4 months ago

#61471 assigned defect

virt-manager fails to load shared library on Big Sur

Reported by: idryzhov (Igor Ryzhov) Owned by: danchr (Dan Villiom Podlaski Christiansen)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: Cc: libsystem-ethan, elventear (Pepe Barbe), ra1nb0w
Port: virt-manager

Description

$ virt-manager
** (process:12757): WARNING **: 16:03:26.872: Failed to load shared library 'libgdk_pixbuf-2.0.0.dylib' referenced by the typelib: dlopen(libgdk_pixbuf-2.0.0.dylib, 9): image not found
: Could not open display: :0

Looks like a problem in gobject-introspection, because gdk-pixbuf has relative paths in gir files:

$ grep libgdk /opt/local/share/gir-1.0/* -r
/opt/local/share/gir-1.0/Gdk-2.0.gir:             shared-library="/opt/local/lib/libgdk-quartz-2.0.0.dylib"
/opt/local/share/gir-1.0/Gdk-3.0.gir:             shared-library="/opt/local/lib/libgdk-3.0.dylib"
/opt/local/share/gir-1.0/GdkPixbuf-2.0.gir:             shared-library="libgdk_pixbuf-2.0.0.dylib" <-- relative path
/opt/local/share/gir-1.0/GdkPixdata-2.0.gir:             shared-library="libgdk_pixbuf-2.0.0.dylib" <-- relative path

Change History (14)

comment:1 Changed 5 months ago by idryzhov (Igor Ryzhov)

Port: virt-manager added

comment:2 Changed 5 months ago by jmroot (Joshua Root)

Owner: set to danchr
Status: newassigned

comment:3 Changed 5 months ago by idryzhov (Igor Ryzhov)

Summary: virt-manager fails to load shared libraryvirt-manager fails to load shared library on Big Sur

comment:4 Changed 5 months ago by libsystem-ethan

Cc: libsystem-ethan added

comment:5 Changed 5 months ago by elventear (Pepe Barbe)

Cc: elventear added

comment:6 Changed 5 months ago by ra1nb0w

Cc: ra1nb0w added

comment:7 Changed 4 months ago by thenickdude (Nicholas Sherlock)

Same impact for the Deluge port:

WARNING **: 15:43:20.653: Failed to load shared library 'libgdk_pixbuf-2.0.0.dylib' referenced by the typelib: dlopen(libgdk_pixbuf-2.0.0.dylib, 9): image not found
/opt/local/share/gir-1.0/Gdk-2.0.gir:             shared-library="/opt/local/lib/libgdk-x11-2.0.0.dylib"
/opt/local/share/gir-1.0/Gdk-3.0.gir:             shared-library="/opt/local/lib/libgdk-3.0.dylib"
/opt/local/share/gir-1.0/GdkPixbuf-2.0.gir:             shared-library="libgdk_pixbuf-2.0.0.dylib"
/opt/local/share/gir-1.0/GdkPixdata-2.0.gir:             shared-library="libgdk_pixbuf-2.0.0.dylib"

I found I could work around the problem by setting LD_LIBRARY_PATH explicitly:

LD_LIBRARY_PATH=/opt/local/lib deluge

comment:8 Changed 4 months ago by netdesign (Netdesign)

The same issue exists on Mac OS Mojave 10.14.6, after port upgrade outdated

Here the log after launching virt-manager:

(process:17807): WARNING : 10:08:42.575: Failed to load shared library 'libgdk_pixbuf-2.0.0.dylib' referenced by the typelib: dlopen(libgdk_pixbuf-2.0.0.dylib, 9): image not found : Could not open display: /private/tmp/com.apple.launchd.QLKXO4qYtE/org.macports:0

And here the log after trying to reinstall the package:

---> Configuring virt-manager Error: Failed to configure virt-manager: gtksourceview4 must be installed with +x11 and without +quartz. Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gnome_virt-manager/virt-manager/main.log for details. Error: Follow https://guide.macports.org/#project.tickets to report a bug.

Nicholas Sherlock, I'm not able to workaround the issue exporting the LD_LIBRARY_PATH variable... :-(

comment:9 Changed 4 months ago by ra1nb0w

After updating the ports tree you need to force the rebuild (they need to revdump the ports):

sudo port -sn upgrade --force gobject-introspection gdk-pixbuf2

Then it should work fine.

comment:10 Changed 4 months ago by netdesign (Netdesign)

Ra1nb0w, I executed that command but virt-manager refuses to install:

Error: Failed to configure virt-manager: gtksourceview4 must be installed with +x11 and without +quartz. Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gnome_virt-manager/virt-manager/main.log for details. Error: Follow https://guide.macports.org/#project.tickets to report a bug. Error: Processing of port virt-manager failed

comment:11 Changed 4 months ago by ra1nb0w

This is another error. Probably you have choose quartz as default (/opt/local/etc/macports/variants.conf) but gtksourceview4 wants x11.

comment:12 Changed 4 months ago by netdesign (Netdesign)

I have this:

sh-3.2# cat /opt/local/etc/macports/variants.conf

# MacPorts system-wide global variants configuration file.

+x11

But still the same error: ---> Configuring virt-manager Error: Failed to configure virt-manager: gtksourceview4 must be installed with +x11 and without +quartz. Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gnome_virt-manager/virt-manager/main.log for details. Error: Follow https://guide.macports.org/#project.tickets to report a bug. Error: Processing of port virt-manager failed

Last edited 4 months ago by netdesign (Netdesign) (previous) (diff)

comment:13 Changed 4 months ago by ra1nb0w

There is something that force quartz variant and virt-manager with x11 variant or vice-versa. gtksourceview4 and virt-manager seems that they work fine if used with quartz. Maybe try to sudo port reclaim and recheck if you have some mismatch already built (started with quartz and now try to build with x11).

comment:14 Changed 4 months ago by fabianwenk (Fabian Wenk)

I had the same problem on Mojave 10.14.6, but with variant +quartz. The suggestion in comment 9 solved it for me.

Version 0, edited 4 months ago by fabianwenk (Fabian Wenk) (next)
Note: See TracTickets for help on using tickets.