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 770729 - error: initializer element is not constant
error: initializer element is not constant
Status: RESOLVED FIXED
Product: pango
Classification: Platform
Component: coretext
1.40.x
Other Mac OS
: Normal normal
: ---
Assigned To: gtk-quartz maintainers
pango-maint
Depends on:
Blocks:
 
 
Reported: 2016-09-02 04:39 UTC by Ryan Schmidt
Modified: 2016-09-13 03:37 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ryan Schmidt 2016-09-02 04:39:38 UTC
pango 1.40.2 fails to build on Mac OS X 10.6 Snow Leopard or earlier.

Here's a build log from the MacPorts automated build system:

​https://build.macports.org/builders/ports-10.6_x86_64_legacy-builder/builds/3549

The error is:

pangocoretext.c: In function ‘pango_core_text_shape_engine_get_type’:
pangocoretext.c:168: warning: ‘pango_engine_shape_get_type’ is deprecated (declared at ../pango/pango-engine.h:238)
pangocoretext-fontmap.c:122: error: initializer element is not constant
pangocoretext-fontmap.c:122: error: (near initialization for ‘ct_weight_map[0].ct_weight’)
pangocoretext-fontmap.c:131: error: initializer element is not constant
pangocoretext-fontmap.c:131: error: (near initialization for ‘ct_weight_map[9].ct_weight’)
mv -f .deps/pangocairo-fontmap.Tpo .deps/pangocairo-fontmap.Plo
make[4]: *** [pangocoretext-fontmap.lo] Error 1
Comment 2 Sreekanth S 2016-09-10 21:10:02 UTC
Homebrew has faced the same issue too. Here is the patch we use -

https://github.com/Homebrew/homebrew-core/pull/4684/commits/6ea82ce3664eedeaf9fe284f57a4b45fd401d690