freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Freetype] build problems with php 4.3.0


From: Felix Natter
Subject: [Freetype] build problems with php 4.3.0
Date: Tue, 4 Feb 2003 10:12:01 +0100 (MET)

hi,

I am having problems building php 4.3.0 with (bundled) GD and freetype
support (--with-freetype-dir=...):

/bin/sh libtool --silent --mode=compile gcc -I/root/php-4.3.0/ext/gd/libgd
-DHAVE_LIBPNG -DHAVE_LIBFREETYPE -Iext/gd/ -I/root/php-4.3.0/ext/gd/
-DPHP_ATOM_INC -I/root/php-4.3.0/include -I/root/php-4.3.0/main 
-I/root/php-4.3.0
-I/root/php-4.3.0/Zend -I/usr//include -I/usr/local/include/freetype2
-I/usr/include/mysql -I/root/php-4.3.0/ext/xml/expat  -DEAPI_MM 
-D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DHARD_SERVER_LIMIT=2048 -DDYNAMIC_MODULE_LIMIT=128
-DLINUX=22 -DMOD_SSL=208104 -DEAPI -DUSE_EXPAT -I/root/php-4.3.0/TSRM  -g -O2 
-prefer-pic -c /root/php-4.3.0/ext/gd/libgd/gdft.c -o ext/gd/libgd/gdft.lo 
In file included from /root/php-4.3.0/ext/gd/libgd/gdft.c:50:
/usr/local/include/freetype2/freetype/ftglyph.h:104: parse error before
`FT_Library'
/usr/local/include/freetype2/freetype/ftglyph.h:104: warning: no semicolon
at end of struct or union
/usr/local/include/freetype2/freetype/ftglyph.h:106: parse error before
`format'
/usr/local/include/freetype2/freetype/ftglyph.h:106: warning: data
definition has no type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:107: parse error before
`advance'
/usr/local/include/freetype2/freetype/ftglyph.h:107: warning: data
definition has no type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:109: warning: data
definition has no type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:156: parse error before
`FT_GlyphRec'
/usr/local/include/freetype2/freetype/ftglyph.h:156: warning: no semicolon
at end of struct or union
/usr/local/include/freetype2/freetype/ftglyph.h:157: warning: data
definition has no type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:158: parse error before
`top'
/usr/local/include/freetype2/freetype/ftglyph.h:158: warning: data
definition has no type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:159: parse error before
`bitmap'
/usr/local/include/freetype2/freetype/ftglyph.h:159: warning: data
definition has no type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:161: warning: data
definition has no type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:204: parse error before
`FT_GlyphRec'
/usr/local/include/freetype2/freetype/ftglyph.h:204: warning: no semicolon
at end of struct or union
/usr/local/include/freetype2/freetype/ftglyph.h:205: warning: data
definition has no type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:207: warning: data
definition has no type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:228: parse error before
`FT_Get_Glyph'
/usr/local/include/freetype2/freetype/ftglyph.h:228: parse error before
`slot'
/usr/local/include/freetype2/freetype/ftglyph.h:229: warning: data
definition has no type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:251: parse error before
`FT_Glyph_Copy'
/usr/local/include/freetype2/freetype/ftglyph.h:252: warning: data
definition has no type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:281: parse error before
`FT_Glyph_Transform'
/usr/local/include/freetype2/freetype/ftglyph.h:282: parse error before
`FT_Matrix'
/usr/local/include/freetype2/freetype/ftglyph.h:283: warning: data
definition has no type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:360: parse error before
`FT_Glyph_Get_CBox'
/usr/local/include/freetype2/freetype/ftglyph.h:361: parse error before
`FT_UInt'
/usr/local/include/freetype2/freetype/ftglyph.h:362: warning: data
definition has no type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:437: parse error before
`FT_Glyph_To_Bitmap'
/usr/local/include/freetype2/freetype/ftglyph.h:438: parse error before
`FT_Render_Mode'
/usr/local/include/freetype2/freetype/ftglyph.h:440: warning: data
definition has no type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:455: parse error before
`FT_Done_Glyph'
/usr/local/include/freetype2/freetype/ftglyph.h:455: warning: data
definition has no type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:486: parse error before
`FT_Matrix_Multiply'
/usr/local/include/freetype2/freetype/ftglyph.h:486: parse error before `*'
/usr/local/include/freetype2/freetype/ftglyph.h:487: warning: data
definition has no type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:506: parse error before
`FT_Matrix_Invert'
/usr/local/include/freetype2/freetype/ftglyph.h:506: parse error before `*'
/usr/local/include/freetype2/freetype/ftglyph.h:506: warning: data
definition has no type or storage class
/root/php-4.3.0/ext/gd/libgd/gdft.c:95: parse error before `FT_Library'
/root/php-4.3.0/ext/gd/libgd/gdft.c:95: warning: no semicolon at end of
struct or union
/root/php-4.3.0/ext/gd/libgd/gdft.c:96: warning: data definition has no type
or storage class
/root/php-4.3.0/ext/gd/libgd/gdft.c:97: parse error before
`have_char_map_unicode'
/root/php-4.3.0/ext/gd/libgd/gdft.c:98: warning: data definition has no type
or storage class
/root/php-4.3.0/ext/gd/libgd/gdft.c:100: parse error before `}'
/root/php-4.3.0/ext/gd/libgd/gdft.c:101: warning: data definition has no
type or storage class
/root/php-4.3.0/ext/gd/libgd/gdft.c:106: parse error before `FT_Library'
/root/php-4.3.0/ext/gd/libgd/gdft.c:106: warning: no semicolon at end of
struct or union
/root/php-4.3.0/ext/gd/libgd/gdft.c:108: warning: data definition has no
type or storage class
/root/php-4.3.0/ext/gd/libgd/gdft.c: In function `fontTest':
/root/php-4.3.0/ext/gd/libgd/gdft.c:327: `a' undeclared (first use in this
function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:327: (Each undeclared identifier is
reported only once
/root/php-4.3.0/ext/gd/libgd/gdft.c:327: for each function it appears in.)
/root/php-4.3.0/ext/gd/libgd/gdft.c:327: parse error before `)'
/root/php-4.3.0/ext/gd/libgd/gdft.c:328: `b' undeclared (first use in this
function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:328: parse error before `)'
/root/php-4.3.0/ext/gd/libgd/gdft.c: In function `fontFetch':
/root/php-4.3.0/ext/gd/libgd/gdft.c:336: `a' undeclared (first use in this
function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:337: `b' undeclared (first use in this
function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:337: parse error before `)'
/root/php-4.3.0/ext/gd/libgd/gdft.c:345: `FT_Error' undeclared (first use in
this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:346: `FT_CharMap' undeclared (first use
in this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:349: parse error before `)'
/root/php-4.3.0/ext/gd/libgd/gdft.c:356: `fontsearchpath' undeclared (first
use in this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:359: `fontlist' undeclared (first use in
this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:364: `name' undeclared (first use in
this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:364: `strtok_ptr' undeclared (first use
in this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:369: `path' undeclared (first use in
this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:374: `fullname' undeclared (first use in
this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:382: `font_found' undeclared (first use
in this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:386: `dir' undeclared (first use in this
function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:419: `err' undeclared (first use in this
function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:433: `n' undeclared (first use in this
function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:435: `charmap' undeclared (first use in
this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:436: `platform' undeclared (first use in
this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:437: `encoding' undeclared (first use in
this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:444: `found' undeclared (first use in
this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c: In function `fontRelease':
/root/php-4.3.0/ext/gd/libgd/gdft.c:475: `a' undeclared (first use in this
function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:475: parse error before `)'
/root/php-4.3.0/ext/gd/libgd/gdft.c: At top level:
/root/php-4.3.0/ext/gd/libgd/gdft.c:563: parse error before `FT_Bitmap'
/root/php-4.3.0/ext/gd/libgd/gdft.c: In function `gdft_draw_bitmap':
/root/php-4.3.0/ext/gd/libgd/gdft.c:573: `fg' undeclared (first use in this
function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:574: `im' undeclared (first use in this
function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:578: request for member `rows' in
something not a structure or union
/root/php-4.3.0/ext/gd/libgd/gdft.c:580: request for member `pitch' in
something not a structure or union
/root/php-4.3.0/ext/gd/libgd/gdft.c:581: `pen_y' undeclared (first use in
this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:585: request for member `width' in
something not a structure or union
/root/php-4.3.0/ext/gd/libgd/gdft.c:588: request for member `pixel_mode' in
something not a structure or union
/root/php-4.3.0/ext/gd/libgd/gdft.c:588: `ft_pixel_mode_grays' undeclared
(first use in this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:594: request for member `buffer' in
something not a structure or union
/root/php-4.3.0/ext/gd/libgd/gdft.c:595: request for member `num_grays' in
something not a structure or union
/root/php-4.3.0/ext/gd/libgd/gdft.c:597: request for member `pixel_mode' in
something not a structure or union
/root/php-4.3.0/ext/gd/libgd/gdft.c:597: `ft_pixel_mode_mono' undeclared
(first use in this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:599: request for member `buffer' in
something not a structure or union
/root/php-4.3.0/ext/gd/libgd/gdft.c:613: `pen_x' undeclared (first use in
this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:635: request for member `rows' in
something not a structure or union
/root/php-4.3.0/ext/gd/libgd/gdft.c:637: request for member `pitch' in
something not a structure or union
/root/php-4.3.0/ext/gd/libgd/gdft.c:638: request for member `pixel_mode' in
something not a structure or union
/root/php-4.3.0/ext/gd/libgd/gdft.c:647: request for member `width' in
something not a structure or union
/root/php-4.3.0/ext/gd/libgd/gdft.c:649: request for member `pixel_mode' in
something not a structure or union
/root/php-4.3.0/ext/gd/libgd/gdft.c:656: request for member `buffer' in
something not a structure or union
/root/php-4.3.0/ext/gd/libgd/gdft.c:657: request for member `num_grays' in
something not a structure or union
/root/php-4.3.0/ext/gd/libgd/gdft.c:658: request for member `num_grays' in
something not a structure or union
/root/php-4.3.0/ext/gd/libgd/gdft.c:660: request for member `pixel_mode' in
something not a structure or union
/root/php-4.3.0/ext/gd/libgd/gdft.c:662: request for member `buffer' in
something not a structure or union
/root/php-4.3.0/ext/gd/libgd/gdft.c:690: `tc_cache' undeclared (first use in
this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c: At top level:
/root/php-4.3.0/ext/gd/libgd/gdft.c:700: parse error before `v1'
/root/php-4.3.0/ext/gd/libgd/gdft.c: In function `gdroundupdown':
/root/php-4.3.0/ext/gd/libgd/gdft.c:702: `updown' undeclared (first use in
this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:703: `v1' undeclared (first use in this
function)
/root/php-4.3.0/ext/gd/libgd/gdft.c: At top level:
/root/php-4.3.0/ext/gd/libgd/gdft.c:712: parse error before `library'
/root/php-4.3.0/ext/gd/libgd/gdft.c:712: warning: data definition has no
type or storage class
/root/php-4.3.0/ext/gd/libgd/gdft.c: In function `gdImageStringFTEx':
/root/php-4.3.0/ext/gd/libgd/gdft.c:738: `FT_BBox' undeclared (first use in
this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:738: parse error before `bbox'
/root/php-4.3.0/ext/gd/libgd/gdft.c:739: `FT_Matrix' undeclared (first use
in this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:740: `FT_Vector' undeclared (first use
in this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:743: `FT_GlyphSlot' undeclared (first
use in this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:743: parse error before `slot'
/root/php-4.3.0/ext/gd/libgd/gdft.c:744: `FT_Error' undeclared (first use in
this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:745: `FT_Bool' undeclared (first use in
this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:746: `FT_UInt' undeclared (first use in
this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:751: `font' undeclared (first use in
this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:752: `fontkey_t' undeclared (first use
in this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:752: parse error before `fontkey'
/root/php-4.3.0/ext/gd/libgd/gdft.c:771: `tc_cache' undeclared (first use in
this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:789: `fontkey' undeclared (first use in
this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:791: parse error before `)'
/root/php-4.3.0/ext/gd/libgd/gdft.c:798: `slot' undeclared (first use in
this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:798: invalid type argument of `->'
/root/php-4.3.0/ext/gd/libgd/gdft.c:800: `FT_F26Dot6' undeclared (first use
in this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:810: `linespace' undeclared (first use
in this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:813: `matrix' undeclared (first use in
this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:813: `FT_Fixed' undeclared (first use in
this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:818: `penf' undeclared (first use in
this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:819: `pen' undeclared (first use in this
function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:820: `bbox' undeclared (first use in
this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:822: `use_kerning' undeclared (first use
in this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:823: `previous' undeclared (first use in
this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:826: `render_mode' undeclared (first use
in this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:826: `FT_LOAD_MONOCHROME' undeclared
(first use in this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:833: `tmpstr' undeclared (first use in
this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:836: `next' undeclared (first use in
this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:867: invalid type argument of `->'
/root/php-4.3.0/ext/gd/libgd/gdft.c:938: `glyph_index' undeclared (first use
in this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:944: `ft_kerning_default' undeclared
(first use in this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:944: `delta' undeclared (first use in
this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:949: `err' undeclared (first use in this
function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:960: `glyph_bbox' undeclared (first use
in this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:988: `render' undeclared (first use in
this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:990: dereferencing pointer to incomplete
type
/root/php-4.3.0/ext/gd/libgd/gdft.c:990: `ft_glyph_format_bitmap' undeclared
(first use in this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:992: `ft_render_mode_normal' undeclared
(first use in this function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:1001: `bm' undeclared (first use in this
function)
/root/php-4.3.0/ext/gd/libgd/gdft.c:1011: dereferencing pointer to
incomplete type
/root/php-4.3.0/ext/gd/libgd/gdft.c:1012: dereferencing pointer to
incomplete type
make: *** [ext/gd/libgd/gdft.lo] Error 1

I configured like this:
./configure --prefix=/usr/ --with-gd --enable-gd-native-ttf
--with-apxs=/usr/sbin/apxs --with-freetype-dir=/usr --with-mysql=/usr 
--with-zlib-dir=/usr/
(I also tried to omit --enable-gd-native-ttf)

I tried this with freetype 2.0.2 (--with-freetype-dir=/usr), 2.1.2 (part of
garnome, --with-freetype-dir=/home/felix/garnome)
and 2.1.3 (--with-freetype-dir=/usr/local)

I tried posting to comp.lang.php, but didn't get an answer.

thanks,

*please cc me, I am not subscribed to this list*


-- 
Felix Natter




reply via email to

[Prev in Thread] Current Thread [Next in Thread]