Problem compiling php 4.3 with gd 
Author Message
 Problem compiling php 4.3 with gd

hi,

I get these errors when trying to compile php 4.3.0 with the
included gd and freetype 2.1.3 (I also tried 2.0.2 and 2.1.2):

/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/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/include/freetype2/freetype/ftglyph.h:86: parse error before `FT_Library'
/usr/include/freetype2/freetype/ftglyph.h:86: warning: no semicolon at end of struct or union
/usr/include/freetype2/freetype/ftglyph.h:88: parse error before `format'
/usr/include/freetype2/freetype/ftglyph.h:88: warning: data definition has no type or storage class
/usr/include/freetype2/freetype/ftglyph.h:89: parse error before `advance'
/usr/include/freetype2/freetype/ftglyph.h:89: warning: data definition has no type or storage class
/usr/include/freetype2/freetype/ftglyph.h:91: warning: data definition has no type or storage class
/usr/include/freetype2/freetype/ftglyph.h:126: parse error before `FT_GlyphRec'
/usr/include/freetype2/freetype/ftglyph.h:126: warning: no semicolon at end of struct or union
/usr/include/freetype2/freetype/ftglyph.h:127: warning: data definition has no type or storage class
/usr/include/freetype2/freetype/ftglyph.h:128: parse error before `top'
/usr/include/freetype2/freetype/ftglyph.h:128: warning: data definition has no type or storage class
/usr/include/freetype2/freetype/ftglyph.h:129: parse error before `bitmap'
/usr/include/freetype2/freetype/ftglyph.h:129: warning: data definition has no type or storage class
/usr/include/freetype2/freetype/ftglyph.h:131: warning: data definition has no type or storage class
/usr/include/freetype2/freetype/ftglyph.h:162: parse error before `FT_GlyphRec'
/usr/include/freetype2/freetype/ftglyph.h:162: warning: no semicolon at end of struct or union
/usr/include/freetype2/freetype/ftglyph.h:163: warning: data definition has no type or storage class
/usr/include/freetype2/freetype/ftglyph.h:165: warning: data definition has no type or storage class
/usr/include/freetype2/freetype/ftglyph.h:185: parse error before `FT_Get_Glyph'
/usr/include/freetype2/freetype/ftglyph.h:185: parse error before `slot'
/usr/include/freetype2/freetype/ftglyph.h:186: warning: data definition has no type or storage class
/usr/include/freetype2/freetype/ftglyph.h:207: parse error before `FT_Glyph_Copy'
/usr/include/freetype2/freetype/ftglyph.h:207: parse error before `source'
/usr/include/freetype2/freetype/ftglyph.h:208: warning: data definition has no type or storage class
/usr/include/freetype2/freetype/ftglyph.h:236: parse error before `FT_Glyph_Transform'
/usr/include/freetype2/freetype/ftglyph.h:236: parse error before `glyph'
/usr/include/freetype2/freetype/ftglyph.h:238: warning: data definition has no type or storage class
/usr/include/freetype2/freetype/ftglyph.h:314: parse error before `FT_Glyph_Get_CBox'
/usr/include/freetype2/freetype/ftglyph.h:314: parse error before `glyph'
/usr/include/freetype2/freetype/ftglyph.h:316: warning: data definition has no type or storage class
/usr/include/freetype2/freetype/ftglyph.h:390: parse error before `FT_Glyph_To_Bitmap'
/usr/include/freetype2/freetype/ftglyph.h:390: parse error before `*'
/usr/include/freetype2/freetype/ftglyph.h:393: warning: data definition has no type or storage class
/usr/include/freetype2/freetype/ftglyph.h:407: parse error before `FT_Done_Glyph'
/usr/include/freetype2/freetype/ftglyph.h:407: parse error before `glyph'
/usr/include/freetype2/freetype/ftglyph.h:407: warning: data definition has no type or storage class
/usr/include/freetype2/freetype/ftglyph.h:437: parse error before `FT_Matrix_Multiply'
/usr/include/freetype2/freetype/ftglyph.h:437: parse error before `*'
/usr/include/freetype2/freetype/ftglyph.h:438: warning: data definition has no type or storage class
/usr/include/freetype2/freetype/ftglyph.h:456: parse error before `FT_Matrix_Invert'
/usr/include/freetype2/freetype/ftglyph.h:456: parse error before `*'
/usr/include/freetype2/freetype/ftglyph.h:456: 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:742: `FT_Glyph' 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: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:756: `FT_BitmapGlyph' undeclared (first use in this function)
/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:957: `image' 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: `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:1001: parse error before `image'
make: *** [ext/gd/libgd/gdft.lo] Error 1

I configured with these options:
./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 without --enable-gd-native-ttf)

thanks,

--
Felix Natter



Sun, 17 Jul 2005 18:20:05 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Undefined function imagecreatefromjpeg with bundled GD in PHP 4.3

2. PHP 4.3 and GD Install - Sorry for the double post

3. PHP 4.3 and GD

4. PHP 4.3 on Redhat Linux 8.0 fails to compile

5. Problem compiling PHP 4.2.3 with GD

6. install PHP 4.2 and PHP 4.3 on the same host

7. php 4.3 and sessions

8. Getting gd_info to work with PHP 4.3/Apache 1.3.27

9. Windows Apache 2 / PHP 4.3 Setup

10. installing php 4.3 on Redhat Linux 8.2

11. PHP 4.3 msIIS5.1

12. Aache 2.0.42 with PHP 4.3 don't work

 

 
Powered by phpBB® Forum Software