After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 779489 - macOS build does not link to libpangoft2, causing missing symbols
macOS build does not link to libpangoft2, causing missing symbols
Status: RESOLVED FIXED
Product: librsvg
Classification: Core
Component: general
git master
Other Mac OS
: Normal normal
: ---
Assigned To: librsvg maintainers
librsvg maintainers
Depends on:
Blocks:
 
 
Reported: 2017-03-02 18:20 UTC by Kornel
Modified: 2017-08-07 16:23 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kornel 2017-03-02 18:20:16 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
Comment 1 Federico Mena Quintero 2017-08-07 16:23:27 UTC
Fixed in commit 344a1c1c63e194b218cf82474ec5684345fa2cda.  Thanks for the heads-up; unfortunately I cannot test this on MacOS :)