[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
Tue Jun 1 00:52:52 CEST 2010


"KB" == Karl Berry writes:

>  static void build_reverse_map (FT_Face face, map<UInt32, UInt32> &reverseMap) {
>  	UInt32 glyphIndex;
> -	UInt32 charcode = FT_Get_First_Char(face, &glyphIndex);
> +	/* The explicit cast is necessary with the AIX compiler,
> +	   which considers the dvisvgm definition signed,
> +	   and incompatible with the freetype definition.  */
> +	UInt32 charcode = FT_Get_First_Char(face, (FT_UInt *) &glyphIndex);

maybe just changing "UInt32 glyphIndex;" to "FT_UInt glyphIndex;" will
look more likely to be included into the upstream sources. i.e., in case
of glyphIndex, it will not rely on typedef based on templates (which
apparently goes wrong in xlC), but will just use the type already
provided by freetype (and expected by its functions).
 
Best,
v.


More information about the tlbuild mailing list