Linking error building librsvg for macOS due to undefined glib symbols
I am getting this error when building librsvg:
*** Warning: Linking the shared library librsvg-2.la against the
*** static library /private/tmp/nix-build-librsvg-2.45.5.drv-0/librsvg-2.45.5/target/release/librsvg_internals.a is not portable!
Undefined symbols for architecture x86_64:
"_g_desktop_app_info_get_implementations", referenced from:
gio::auto::desktop_app_info::DesktopAppInfo::get_implementations::hd61cee2ed025f55b in librsvg_internals.a(gio-b466a6b949b79cce.gio.8ozrrwrp-cgu.6.rcgu.o)
"_g_desktop_app_info_get_type", referenced from:
_$LT$gio..auto..desktop_app_info..DesktopAppInfo$u20$as$u20$glib..types..StaticType$GT$::static_type::hd437fc3c3909c7bc in librsvg_internals.a(gio-b466a6b949b79cce.gio.8ozrrwrp-cgu.6.rcgu.o)
"_g_desktop_app_info_new", referenced from:
gio::auto::desktop_app_info::DesktopAppInfo::new::h24e53ce90e45ff97 in librsvg_internals.a(gio-b466a6b949b79cce.gio.8ozrrwrp-cgu.6.rcgu.o)
"_g_desktop_app_info_new_from_keyfile", referenced from:
gio::auto::desktop_app_info::DesktopAppInfo::new_from_keyfile::haba2870e8d2586f9 in librsvg_internals.a(gio-b466a6b949b79cce.gio.8ozrrwrp-cgu.6.rcgu.o)
"_g_desktop_app_info_search", referenced from:
gio::desktop_app_info::_$LT$impl$u20$gio..auto..desktop_app_info..DesktopAppInfo$GT$::search::h3714b284ef82ff46 in librsvg_internals.a(gio-b466a6b949b79cce.gio.8ozrrwrp-cgu.6.rcgu.o)
"_g_desktop_app_info_set_desktop_env", referenced from:
gio::auto::desktop_app_info::DesktopAppInfo::set_desktop_env::h4f4705081cdf8a2c in librsvg_internals.a(gio-b466a6b949b79cce.gio.8ozrrwrp-cgu.6.rcgu.o)
ld: symbol(s) not found for architecture x86_64
Those symbols are not provided by glib for macOS. I'm not sure why the gio bindings are using them?
Edited by Andre Klapper