Skip Menu |

This queue is for tickets about the Font-FreeType CPAN distribution.

Report information
The Basics
Id: 32713
Status: resolved
Priority: 0/
Queue: Font-FreeType

People
Owner: Nobody in particular
Requestors: klk206 [...] panix.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.04_01



Subject: patch for Font-FreeType-0.03
Date: Sun, 27 Jan 2008 15:59:21 -0600
To: bug-Font-FreeType [...] rt.cpan.org
From: Konstantin L Kouptsov <klk206 [...] panix.com>
Hi. When I try co install the following package http://search.cpan.org/CPAN/authors/id/G/GE/GEOFFR/Font-FreeType-0.03.tar.gz I get a compile error: Font-FreeType-0.03$ make cp lib/Font/FreeType.pm blib/lib/Font/FreeType.pm cp lib/Font/FreeType/Glyph.pm blib/lib/Font/FreeType/Glyph.pm cp lib/Font/FreeType/Face.pm blib/lib/Font/FreeType/Face.pm /usr/bin/perl /usr/share/perl/5.8/ExtUtils/xsubpp -typemap /usr/share/perl/5.8/ExtUtils/typemap -typemap typemap FreeType.xs > FreeType.xsc && mv FreeType.xsc FreeType.c cc -c -I/usr/include/freetype2 -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"0.03\" -DXS_VERSION=\"0.03\" -fPIC "-I/usr/lib/perl/5.8/CORE" FreeType.c FreeType.xs: In function 'XS_Font__FreeType__Glyph_char_code': FreeType.xs:808: error: invalid lvalue in assignment FreeType.xs: In function 'XS_Font__FreeType__Glyph_outline_decompose_': FreeType.xs:1013: warning: assignment from incompatible pointer type FreeType.xs:1014: warning: assignment from incompatible pointer type FreeType.xs:1015: warning: assignment from incompatible pointer type FreeType.xs:1016: warning: assignment from incompatible pointer type make: *** [FreeType.o] Error 1 Font-FreeType-0.03$ This is easily fixable. A patch is attached. Konstantin.
diff -r Font-FreeType-0.03/FreeType.xs Font-FreeType-0.03-mod/FreeType.xs 229c229 < handle_move_to (FT_Vector *to, void *data) --- > handle_move_to (const FT_Vector *to, void *data) 246c246 < handle_line_to (FT_Vector *to, void *data) --- > handle_line_to (const FT_Vector *to, void *data) 263c263 < handle_conic_to (FT_Vector *control, FT_Vector *to, void *data) --- > handle_conic_to (const FT_Vector *control, const FT_Vector *to, void *data) 295c295 < handle_cubic_to (FT_Vector *control1, FT_Vector *control2, FT_Vector *to, --- > handle_cubic_to (const FT_Vector *control1, const FT_Vector *control2, const FT_Vector *to, 808c808,809 < RETVAL = newSVuv((UV) glyph->char_code = char_code); --- > glyph->char_code = char_code; > RETVAL = newSVuv((UV) glyph->char_code);
Thanks for the patch. Fixed in v0.04_01!