GNOME Bugzilla – Bug 770729
error: initializer element is not constant
Last modified: 2016-09-13 03:37:10 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
We are now using this patch to fix it: https://trac.macports.org/browser/trunk/dports/x11/pango-devel/files/patch-initializer-element-not-constant.diff?rev=152249
Homebrew has faced the same issue too. Here is the patch we use - https://github.com/Homebrew/homebrew-core/pull/4684/commits/6ea82ce3664eedeaf9fe284f57a4b45fd401d690