[MacPorts] #58451: p5.28-gtk3 @0.34.0 Warning Fail to load shared library 'libcairo-gobject.2.dylib'
MacPorts
noreply at macports.org
Tue May 7 11:32:43 UTC 2019
#58451: p5.28-gtk3 @0.34.0 Warning Fail to load shared library 'libcairo-
gobject.2.dylib'
----------------------+--------------------
Reporter: nortcele | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: gtk3
----------------------+--------------------
When trying to use GTK3 with perl 5, there is allway a warning about a
failure to load shared library 'libcairo-gobject.2.dylib'.
To reproduce:
With a fresh installation of MacPorts.
{{{
sudo port install p5.28-gtk3
}}}
Once installed, try to use GTK3.
{{{
/opt/local/bin/perl5.28 -e "use Gtk3;"
}}}
You get the following warning.
{{{
WARNING **: Failed to load shared library 'libcairo-gobject.2.dylib'
referenced by the typelib: dlopen(libcairo-gobject.2.dylib, 9): image not
found at /opt/local/lib/perl5/vendor_perl/5.28/Gtk3.pm line 479.
}}}
One way to circunvent the warning and use cairo introspection is to help
perl to find the library with:
{{{
export DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib ; /opt/local/bin/perl5.28
-e "use Gtk3;"
}}}
But this shouldn't be necessary.
I can't say exacty if the problem comes from p5-gtk3, p5-cairo-gobject, p5
-glib-object-introspection or elsewhere.
--
Ticket URL: <https://trac.macports.org/ticket/58451>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list