I am trying to compile PHP 4.3.0 with GD and also with-png,with-jpg and with-freetype. I have installed both png,jpg and freetype2 from a tar file. I was finally able to get it through the configure stage with no errors but now when I run make I am getting the following error. I have know idea what to do now. It looks like there are a bunch of parser errors in the freetype2 files I installed. Do I need to install then a second time
In file included from /home/tmp/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 /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:95: parse error before `FT_Library' /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:95: warning: no semicolon at end of struct or union /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:96: warning: data definition has no type or storage class /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:97: parse error before `have_char_map_unicode' /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:98: warning: data definition has no type or storage class /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:100: parse error before `}' /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:101: warning: data definition has no type or storage class /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:106: parse error before `FT_Library' /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:106: warning: no semicolon at end of struct or union /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:108: warning: data definition has no type or storage class /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c: In function `fontTest': /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:327: `a' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:327: (Each undeclared identifier is reported only once /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:327: for each function it appears in.) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:327: parse error before `)' /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:328: `b' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:328: parse error before `)' /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c: In function `fontFetch': /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:336: `a' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:337: `b' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:337: parse error before `)' /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:345: `FT_Error' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:346: `FT_CharMap' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:349: parse error before `)' /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:356: `fontsearchpath' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:359: `fontlist' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:364: `name' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:364: `strtok_ptr' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:369: `path' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:374: `fullname' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:382: `font_found' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:386: `dir' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:419: `err' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:433: `n' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:435: `charmap' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:436: `platform' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:437: `encoding' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:444: `found' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c: In function `fontRelease': /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:475: `a' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:475: parse error before `)' /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c: At top level: /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:563: parse error before `FT_Bitmap' /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c: In function `gdft_draw_bitmap': /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:573: `fg' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:574: `im' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:578: request for member `rows' in something not a structure or union /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:580: request for member `pitch' in something not a structure or union /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:581: `pen_y' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:585: request for member `width' in something not a structure or union /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:588: request for member `pixel_mode' in something not a structure or union /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:588: `ft_pixel_mode_grays' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:594: request for member `buffer' in something not a structure or union /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:595: request for member `num_grays' in something not a structure or union /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:597: request for member `pixel_mode' in something not a structure or union /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:597: `ft_pixel_mode_mono' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:599: request for member `buffer' in something not a structure or union /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:613: `pen_x' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:635: request for member `rows' in something not a structure or union /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:637: request for member `pitch' in something not a structure or union /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:638: request for member `pixel_mode' in something not a structure or union /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:647: request for member `width' in something not a structure or union /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:649: request for member `pixel_mode' in something not a structure or union /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:656: request for member `buffer' in something not a structure or union /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:657: request for member `num_grays' in something not a structure or union /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:658: request for member `num_grays' in something not a structure or union /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:660: request for member `pixel_mode' in something not a structure or union /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:662: request for member `buffer' in something not a structure or union /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:690: `tc_cache' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c: At top level: /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:700: parse error before `v1' /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c: In function `gdroundupdown': /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:702: `updown' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:703: `v1' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c: At top level: /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:712: parse error before `library' /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:712: warning: data definition has no type or storage class /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c: In function `gdImageStringFTEx': /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:738: `FT_BBox' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:738: parse error before `bbox' /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:739: `FT_Matrix' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:740: `FT_Vector' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:743: `FT_GlyphSlot' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:743: parse error before `slot' /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:744: `FT_Error' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:745: `FT_Bool' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:746: `FT_UInt' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:751: `font' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:752: `fontkey_t' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:752: parse error before `fontkey' /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:771: `tc_cache' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:789: `fontkey' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:791: parse error before `)' /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:798: `slot' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:798: invalid type argument of `->' /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:800: `FT_F26Dot6' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:810: `linespace' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:813: `matrix' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:813: `FT_Fixed' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:818: `penf' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:819: `pen' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:820: `bbox' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:822: `use_kerning' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:823: `previous' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:826: `render_mode' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:826: `FT_LOAD_MONOCHROME' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:833: `tmpstr' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:836: `next' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:867: invalid type argument of `->' /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:938: `glyph_index' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:944: `ft_kerning_default' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:944: `delta' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:949: `err' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:960: `glyph_bbox' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:988: `render' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:990: dereferencing pointer to incomplete type /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:990: `ft_glyph_format_bitmap' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:992: `ft_render_mode_normal' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:1001: `bm' undeclared (first use in this function) /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:1011: dereferencing pointer to incomplete type /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:1012: dereferencing pointer to incomplete type make: *** [ext/gd/libgd/gdft.lo] Error 1 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php