Bug 13482 - Build errors due to missing struct members
Summary: Build errors due to missing struct members
Status: RESOLVED FIXED
Alias: None
Product: cairo
Classification: Unclassified
Component: freetype font backend (show other bugs)
Version: 1.4.12
Hardware: All All
: medium normal
Assignee: David Turner
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-01 11:19 UTC by Matt Selsky
Modified: 2007-12-01 19:45 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Matt Selsky 2007-12-01 11:19:01 UTC
I'm building cairo 1.4.12 with freetype 2.1.4.  Make gives me the following error:

 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../pixman/src -I/opt/freetype-2.1.4/include -I/opt/freetype-2.1.4/include/freetype2 -I/opt/fontconfig-2.2.99/include -I/opt/libpng-1.2.22/include/libpng12 -DXTHREADS -I/opt/libXrender-0.9.0/include -I/opt/renderext-0.9/include -I/usr/openwin/include -I/usr/openwin/include -Wall -Wextra -Wsign-compare -Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations -Wdeclaration-after-statement -Wold-style-definition -Wno-missing-field-initializers -Wno-unused-parameter -Wno-attributes -fno-strict-aliasing -g -O2 -MT cairo-ft-font.lo -MD -MP -MF .deps/cairo-ft-font.Tpo -c cairo-ft-font.c  -fPIC -DPIC -o .libs/cairo-ft-font.o
cairo-ft-font.c: In function '_cairo_ft_scaled_font_create':
cairo-ft-font.c:1531: error: 'FT_Bitmap_Size' has no member named 'x_ppem'
cairo-ft-font.c:1532: error: 'FT_Bitmap_Size' has no member named 'y_ppem'
cairo-ft-font.c: In function '_decompose_glyph_outline':
cairo-ft-font.c:1829: warning: passing argument 2 of 'FT_Outline_Transform' discards qualifiers from pointer target type
cairo-ft-font.c: In function '_cairo_ft_load_truetype_table':
cairo-ft-font.c:2129: warning: unused variable 'face'
cairo-ft-font.c:2128: warning: unused variable 'unscaled'
make[2]: *** [cairo-ft-font.lo] Error 1

y_ppem and x_ppem were not added to the FT_Bitmap_Size struct until freetype 2.1.9, but the documentation says that only freetype 2.1.4 is required.
Comment 1 Behdad Esfahbod 2007-12-01 11:44:39 UTC
Do you what the library version (its different from release version) of 2.1.9 is?
Try:

$ pkg-config --modversion freetype2

Thanks,
Comment 2 Matt Selsky 2007-12-01 11:58:43 UTC
That returns nothing.  My freetype package doesn't have any .pc files.
Comment 3 Matt Selsky 2007-12-01 12:02:44 UTC
pkg-config support wasn't added to freetype until 2.1.5
Comment 4 Behdad Esfahbod 2007-12-01 16:49:14 UTC
Right.  And I asked for 2.1.9 that seems to be the real required version.
Comment 5 Matt Selsky 2007-12-01 17:00:10 UTC
For freetype-2.1.9:

$ pkg-config --modversion freetype2
9.7.3
Comment 6 Behdad Esfahbod 2007-12-01 17:42:31 UTC
Fixed thanks.

b46bb58e11f9d7b7fa68a64ca887c9b996b8f6f2
Comment 7 Matt Selsky 2007-12-01 18:15:05 UTC
Does README need to be updated as well?
Comment 8 Behdad Esfahbod 2007-12-01 19:45:30 UTC
commit 5f38e215ed4ec930492ee373db37a767d85a6ee8
Author: Behdad Esfahbod <behdad@behdad.org>
Date:   Sat Dec 1 22:44:54 2007 -0500

    [README] Remove the Dependencies section as it falls out of date easily



Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.