GNOME Bugzilla – Bug 779489
macOS build does not link to libpangoft2, causing missing symbols
Last modified: 2017-08-07 16:23:27 UTC
Compilation results in missing symbols. I do have the library that has these symbols, but the library doesn't appear to be referenced anywhere in the build. ./autogen.sh --disable-Bsymbolic && make *** Warning: Linking the shared library librsvg-2.la against the *** static library /tmp/librsvg/target/release/librsvg_internals.a is not portable! Undefined symbols for architecture x86_64: "_FcConfigAppFontAddFile", referenced from: _rsvg_cairo_create_pango_context in librsvg_2_la-rsvg-cairo-draw.o "_FcConfigCreate", referenced from: _rsvg_cairo_create_pango_context in librsvg_2_la-rsvg-cairo-draw.o "_FcConfigDestroy", referenced from: _rsvg_cairo_render_free in librsvg_2_la-rsvg-cairo-render.o "_pango_fc_font_map_get_type", referenced from: _rsvg_cairo_create_pango_context in librsvg_2_la-rsvg-cairo-draw.o "_pango_fc_font_map_set_config", referenced from: _rsvg_cairo_create_pango_context in librsvg_2_la-rsvg-cairo-draw.o ld: symbol(s) not found for architecture x86_64 The symbols are in: /usr/local/Cellar/pango/1.40.4/lib/libpangoft2-1.0.a /usr/local/Cellar/pango/1.40.4/lib/libpangoft2-1.0.dylib I have pango installed via homebrew. pkg-config --libs pango -L/usr/local/Cellar/pango/1.40.4/lib -L/usr/local/Cellar/glib/2.50.3/lib -L/usr/local/opt/gettext/lib -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lintl pkg-config --libs pangoft2 -L/usr/local/Cellar/pango/1.40.4/lib -L/usr/local/Cellar/glib/2.50.3/lib -L/usr/local/opt/gettext/lib -L/usr/local/Cellar/fontconfig/2.12.1_2/lib -L/usr/local/opt/freetype/lib -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lintl -lfontconfig -lfreetype
Fixed in commit 344a1c1c63e194b218cf82474ec5684345fa2cda. Thanks for the heads-up; unfortunately I cannot test this on MacOS :)