[tlbuild] portability fix for texk/web2c/luatexdir/luafontloader/fontforge/fontforge/namelist.c
Vladimir Volovich
vvv at vsu.ru
Wed Jun 3 16:43:06 CEST 2009
Hi Taco,
when compiling TL2009 on aix, i'm getting this error:
source='luatexdir/luafontloader/fontforge/fontforge/namelist.c' object='libff_a-namelist.o' libtool=no \
DEPDIR=.deps depmode=aix /bin/bash ../../../texk/web2c/../../build-aux/depcomp \
xlc -DHAVE_CONFIG_H -I. -I../../../texk/web2c -I./.. -I/usr/local/vvv/src/source/Work/texk -I/usr/local/vvv/src/source/texk -DFONTFORGE_CONFIG_NO_WINDOWING_UI=1 -DLUA_FF_LIB=1 -D_NO_PYTHON=1 -DX_DISPLAY_MISSING=1 -DNODYNAMIC=1 -D_NO_FREETYPE=1 -D_NO_LIBUNINAMESLIST=1 -UHAVE_LIBINTL_H -I../../../texk/web2c/luatexdir/lua51 -I../../../texk/web2c/luatexdir/luafontloader/fontforge/inc -I../../../texk/web2c/luatexdir/luafontloader/fontforge/fontforge -I/opt/freeware/include -DUSE_STDLIB_WORKAROUNDS -O2 -qmaxmem=262144 -qarch=com -qlanglvl=extended -qcpluscmt -c -o libff_a-namelist.o `test -f 'luatexdir/luafontloader/fontforge/fontforge/namelist.c' || echo '../../../texk/web2c/'`luatexdir/luafontloader/fontforge/fontforge/namelist.c
"../../../texk/web2c/luatexdir/luafontloader/fontforge/fontforge/namelist.c", line 40.3: 1506-131 (S) Explicit dimension specification or initializer required for an auto or static array.
and a fix is this one:
==============================
--- texk/web2c/luatexdir/luafontloader/fontforge/fontforge/namelist.c (revision 13576)
+++ texk/web2c/luatexdir/luafontloader/fontforge/fontforge/namelist.c (working copy)
@@ -37,7 +37,7 @@
char *name;
int unicode;
int provenance; /* 1=> Adobe PUA, 2=>AMS PUA, 3=>TeX */
-} psaltnames[];
+} psaltnames[5488]; /* Explicit dimension specification or initializer required for an auto or static array. */
static NameList agl_sans, agl, adobepua, greeksc, tex, ams;
NameList *namelist_for_new_fonts = &agl;
==============================
note that in r7694, this fix was already applied last year, but it
disappeared after a re-import of luatex sources. probably because luatex
re-imported a more recent version of fontforge.
the best would be if you could ask fontforge upstream authors to fix
their sources so it won't re-appear again; but if you can just fix
luatex and TL2009 repository, it will be helpful too.
Best,
v.
More information about the tlbuild
mailing list