[Fontconfig] fontconfig 2.10 and alignof(double) on AIX

Albert Chin fontconfig at mlists.thewrittenword.com
Tue Aug 20 21:44:24 PDT 2013


On AIX 32-bit and 64-bit, alignof(double) == 4. This isn't a problem
for 32-bit builds of fontconfig but for 64-bit builds, the following
assert in src/fcarch.c fails:
  FC_ASSERT_STATIC (0x08 + 1*FC_MAX(4,ALIGNOF_DOUBLE) == sizeof (FcValue));

$ cd /opt/build/fcpackage-2.10/fontconfig/src
$ gmake
gmake  all-am
gmake[1]: Entering directory `/opt/build/fcpackage-2.10/fontconfig/src'
xlc -DHAVE_CONFIG_H -I. -I..  -I.. -I../src -I/opt/TWWfsw/libttf24/include/freetype2 -I/opt/TWWfsw/libttf24/include   -I/opt/TWWfsw/libiconv113/include -I/opt/TWWfsw/libexpat20/include -DFC_CACHEDIR='"/opt/TWWfsw/fcpackage210/var/cache/fontconfig"' -DFONTCONFIG_PATH='"/opt/TWWfsw/fcpackage210/etc"'   -O2 -qro -qroconst -q64 -qmaxmem=-1 -c fcarch.c
"fcarch.c", line 59.1: 1506-195 (S) Integral constant expression with a value greater than zero is required.
gmake[1]: *** [fcarch.o] Error 1
gmake[1]: Leaving directory `/opt/build/fcpackage-2.10/fontconfig/src'
gmake: *** [all] Error 2

64-bit builds for Solaris/SPARC, Solaris/x86, HP-UX/PA-RISC,
and HP-UX/IA64 are ok.

-- 
albert chin (china at thewrittenword.com)


More information about the Fontconfig mailing list