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 752646 - Fails to link with Pango when x11 backend disabled
Fails to link with Pango when x11 backend disabled
Status: RESOLVED DUPLICATE of bug 751625
Product: gtk+
Classification: Platform
Component: Backend: Wayland
3.16.x
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2015-07-20 22:58 UTC by Ross Burton
Modified: 2015-07-20 23:00 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ross Burton 2015-07-20 22:58:19 UTC
If the GTK+ stack is compiled without X11 (i.e. no libx11 present, X backend disabled in gtk+), GTK+ 3.16.4 fails to link:

| ./.libs/libgtk-3.so: undefined reference to `PANGO_FC_FONT_MAP'
| ./.libs/libgtk-3.so: undefined reference to `PANGO_IS_FC_FONT_MAP'

(longer log at https://autobuilder.yoctoproject.org/main/builders/nightly-no-x11/builds/4/steps/BuildImages/logs/stdio)

As those are macros, I'm guessing pango-fcfontmap.h gets indirectly included somewhere and not explicitly.
Comment 1 Ross Burton 2015-07-20 22:59:15 UTC
Aha

| /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-no-x11/build/build/tmp/work/core2-64-poky-linux/gtk+3/3.16.4-r0/gtk+-3.16.4/gtk/gtksettings.c:3053:7: warning: implicit declaration of function 'PANGO_IS_FC_FONT_MAP' [-Wimplicit-function-declaration]
|        if (PANGO_IS_FC_FONT_MAP (fontmap) && !FcConfigUptoDate (NULL))
|        ^
| /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-no-x11/build/build/tmp/work/core2-64-poky-linux/gtk+3/3.16.4-r0/gtk+-3.16.4/gtk/gtksettings.c:3053:7: warning: implicit declaration of function 'FcConfigUptoDate' [-Wimplicit-function-declaration]
| /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-no-x11/build/build/tmp/work/core2-64-poky-linux/gtk+3/3.16.4-r0/gtk+-3.16.4/gtk/gtksettings.c:3055:11: warning: implicit declaration of function 'pango_fc_font_map_cache_clear' [-Wimplicit-function-declaration]
|            pango_fc_font_map_cache_clear (PANGO_FC_FONT_MAP (fontmap));
|            ^
| /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-no-x11/build/build/tmp/work/core2-64-poky-linux/gtk+3/3.16.4-r0/gtk+-3.16.4/gtk/gtksettings.c:3055:11: warning: implicit declaration of function 'PANGO_FC_FONT_MAP' [-Wimplicit-function-declaration]
| /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-no-x11/build/build/tmp/work/core2-64-poky-linux/gtk+3/3.16.4-r0/gtk+-3.16.4/gtk/gtksettings.c:3056:11: warning: implicit declaration of function 'FcInitReinitialize' [-Wimplicit-function-declaration]
|            if (FcInitReinitialize ())
|            ^
Comment 2 Ross Burton 2015-07-20 23:00:06 UTC

*** This bug has been marked as a duplicate of bug 751625 ***