[tlbuild] build failure: texk/dvisvgm/dvisvgm-0.8.7/src/FontEngine.cpp has some type mismatches when calling freetype API

Vladimir Volovich vvv at vsu.ru
Fri May 28 13:23:25 CEST 2010


Hi!

i've got a build failure (on AIX):

source='dvisvgm-0.8.7/src/FontEngine.cpp' object='FontEngine.o' libtool=no \
        DEPDIR=.deps depmode=aix /bin/bash ../../../texk/dvisvgm/../../build-aux/depcomp \
        xlC -DHAVE_CONFIG_H -I. -I../../../texk/dvisvgm -I../../../texk/dvisvgm/dvisvgm-0.8.7/src -I../../../texk/dvisvgm/dvisvgm-0.8.7/potracelib -I/usr/local/vvv/src/source/Work/texk -I/usr/local/vvv/src/source/texk `cat /usr/local/vvv/src/source/Work/libs/freetype2/ft-includes` -I/usr/local/vvv/src/source/Work/libs/zlib/include   -I/opt/freeware/include -DUSE_STDLIB_WORKAROUNDS  -O2 -qmaxmem=262144 -qarch=com -qlanglvl=extended -c -o FontEngine.o `test -f 'dvisvgm-0.8.7/src/FontEngine.cpp' || echo '../../../texk/dvisvgm/'`dvisvgm-0.8.7/src/FontEngine.cpp
"../../../texk/dvisvgm/dvisvgm-0.8.7/src/FontEngine.cpp", line 115.59: 1540-0256 (S) A parameter of type "unsigned int *" cannot be initialized with an expression of type "int *".
"../../../texk/dvisvgm/dvisvgm-0.8.7/src/FontEngine.cpp", line 115.59: 1540-1205 (I) The error occurred while converting to parameter 2 of "FT_Get_First_Char(FT_Face, FT_UInt *)".
"../../../texk/dvisvgm/dvisvgm-0.8.7/src/FontEngine.cpp", line 118.69: 1540-0256 (S) A parameter of type "unsigned int *" cannot be initialized with an expression of type "int *".
"../../../texk/dvisvgm/dvisvgm-0.8.7/src/FontEngine.cpp", line 118.69: 1540-1205 (I) The error occurred while converting to parameter 3 of "FT_Get_Next_Char(FT_Face, FT_ULong, FT_UInt *)".
"../../../texk/dvisvgm/dvisvgm-0.8.7/src/FontEngine.cpp", line 62.51: 1540-0256 (S) A parameter of type "unsigned int *" cannot be initialized with an expression of type "int *".
"../../../texk/dvisvgm/dvisvgm-0.8.7/src/FontEngine.cpp", line 62.51: 1540-1205 (I) The error occurred while converting to parameter 2 of "FT_Get_First_Char(FT_Face, FT_UInt *)".
"../../../texk/dvisvgm/dvisvgm-0.8.7/src/FontEngine.cpp", line 66.61: 1540-0256 (S) A parameter of type "unsigned int *" cannot be initialized with an expression of type "int *".
"../../../texk/dvisvgm/dvisvgm-0.8.7/src/FontEngine.cpp", line 66.61: 1540-1205 (I) The error occurred while converting to parameter 3 of "FT_Get_Next_Char(FT_Face, FT_ULong, FT_UInt *)".
gmake[1]: *** [FontEngine.o] Error 1
gmake[1]: Leaving directory `/usr/local/vvv/src/source/Work/texk/dvisvgm'

these errors occurs on lines like:

        UInt32 charcode = FT_Get_First_Char(_currentFace, &glyphIndex);

changing &glyphIndex to (FT_UInt *)&glyphIndex in 4 places (lines 62,
66, 115, 118) fixes the problem.

Best,
v.


More information about the tlbuild mailing list