Has anyone successfully been able to compile PHP 4.03 on RedHat 7.0? Here's the error I am getting (long):
make[3]: Entering directory /usr/local/src/php-4.0.3/ext/gd'
/bin/sh /usr/local/src/php/libtool --silent --mode=compile gcc -I. -I/usr/local/src/php/ext/gd -I/usr/local/src/php -I/usr/local/src/php/main -I/home/www/include -I/usr/local/src/php/Zend -I/usr/local/src/php -I/usr/local/include/freetype -I/usr/local/include -I/usr/local/src/php/ext/mysql/libmysql -I/usr/local/src/php/ext/xml/expat/xmltok -I/usr/local/src/php/ext/xml/expat/xmlparse -I/usr/local/src/php/TSRM -DXML_BYTE_ORDER=12 -g -O2 -c gdttf.c
gdttf.c:79: parse error beforeTT_Engine'
gdttf.c:79: warning: no semicolon at end of struct or union
gdttf.c:80: warning: data definition has no type or storage class
gdttf.c:81: parse error before properties'
gdttf.c:81: warning: data definition has no type or storage class
gdttf.c:82: parse error beforeinstance'
gdttf.c:82: warning: data definition has no type or storage class
gdttf.c:83: parse error before char_map_Unicode'
gdttf.c:83: warning: data definition has no type or storage class
gdttf.c:84: parse error beforechar_map_Big5'
gdttf.c:84: warning: data definition has no type or storage class
gdttf.c:85: parse error before char_map_Roman'
gdttf.c:85: warning: data definition has no type or storage class
gdttf.c:89: parse error beforematrix'
gdttf.c:89: warning: data definition has no type or storage class
gdttf.c:90: parse error before imetrics'
gdttf.c:90: warning: data definition has no type or storage class
gdttf.c:92: parse error before}'
gdttf.c:92: warning: data definition has no type or storage class
gdttf.c:98: parse error before TT_Engine'
gdttf.c:98: warning: no semicolon at end of struct or union
gdttf.c:99: warning: data definition has no type or storage class
gdttf.c:104: parse error beforeTT_Glyph'
gdttf.c:104: warning: no semicolon at end of struct or union
gdttf.c:105: warning: data definition has no type or storage class
gdttf.c:106: parse error before outline'
gdttf.c:106: warning: data definition has no type or storage class
gdttf.c:107: parse error beforeoldx'
gdttf.c:107: warning: data definition has no type or storage class
gdttf.c:108: parse error before Bit'
gdttf.c:108: warning: data definition has no type or storage class
gdttf.c:112: parse error before}'
gdttf.c:112: warning: data definition has no type or storage class
gdttf.c:118: parse error before font_t'
gdttf.c:118: warning: no semicolon at end of struct or union
gdttf.c:119: warning: data definition has no type or storage class
gdttf.c:130: parse error beforeglyph_t'
gdttf.c:130: warning: no semicolon at end of struct or union
gdttf.c:131: warning: data definition has no type or storage class
gdttf.c:159: parse error before font_t'
gdttf.c: In functionfontTest':
gdttf.c:324: a' undeclared (first use in this function)
gdttf.c:324: (Each undeclared identifier is reported only once
gdttf.c:324: for each function it appears in.)
gdttf.c:324: parse error before)'
gdttf.c:325: b' undeclared (first use in this function)
gdttf.c:325: parse error before)'
gdttf.c: In function fontFetch':
gdttf.c:335:TT_Error' undeclared (first use in this function)
gdttf.c:335: parse error before err'
gdttf.c:336:a' undeclared (first use in this function)
gdttf.c:337: b' undeclared (first use in this function)
gdttf.c:337: parse error before)'
gdttf.c:341: parse error before )'
gdttf.c:357:err' undeclared (first use in this function)
gdttf.c:361: TT_Err_Could_Not_Open_File' undeclared (first use in this function)
gdttf.c:382:map_found' undeclared (first use in this function)
gdttf.c:388: TT_F26Dot6' undeclared (first use in this function)
gdttf.c:396:n' undeclared (first use in this function)
gdttf.c:398: i' undeclared (first use in this function)
gdttf.c:399:platform' undeclared (first use in this function)
gdttf.c:399: encoding' undeclared (first use in this function)
gdttf.c:422:TT_Fixed' undeclared (first use in this function)
gdttf.c: In function fontRelease':
gdttf.c:436:a' undeclared (first use in this function)
gdttf.c:436: parse error before )'
gdttf.c: In functionglyphTest':
gdttf.c:451: a' undeclared (first use in this function)
gdttf.c:451: parse error before)'
gdttf.c:452: b' undeclared (first use in this function)
gdttf.c:452: parse error before)'
gdttf.c: In function glyphFetch':
gdttf.c:462:a' undeclared (first use in this function)
gdttf.c:463: b' undeclared (first use in this function)
gdttf.c:463: parse error before)'
gdttf.c:469: parse error before )'
gdttf.c:481:flags' undeclared (first use in this function)
gdttf.c:481: TTLOAD_SCALE_GLYPH' undeclared (first use in this function)
gdttf.c:483:TTLOAD_HINT_GLYPH' undeclared (first use in this function)
gdttf.c:486: glyph_code' undeclared (first use in this function)
gdttf.c:492:err' undeclared (first use in this function)
gdttf.c:509: cos_a' undeclared (first use in this function)
gdttf.c:510:sin_a' undeclared (first use in this function)
gdttf.c:511: crect' undeclared (first use in this function)
gdttf.c:527:TT_Flow_Up' undeclared (first use in this function)
gdttf.c: In function glyphRelease':
gdttf.c:547:a' undeclared (first use in this function)
gdttf.c:547: parse error before )'
gdttf.c: In functionbitmapTest':
gdttf.c:561: b' undeclared (first use in this function)
gdttf.c:561: parse error before)'
gdttf.c: In function bitmapFetch':
gdttf.c:574:b' undeclared (first use in this function)
gdttf.c:574: parse error before )'
gdttf.c:581: case label not within a switch statement
gdttf.c:581: case label not within a switch statement
gdttf.c:581: case label not within a switch statement
gdttf.c:581: case label not within a switch statement
gdttf.c:581: break statement not within loop or switch
gdttf.c:581: case label not within a switch statement
gdttf.c:581: case label not within a switch statement
gdttf.c:581: case label not within a switch statement
gdttf.c:581: case label not within a switch statement
gdttf.c:581: break statement not within loop or switch
gdttf.c:581: case label not within a switch statement
gdttf.c:581: case label not within a switch statement
gdttf.c:581: case label not within a switch statement
gdttf.c:581: case label not within a switch statement
gdttf.c:581: break statement not within loop or switch
gdttf.c:581: case label not within a switch statement
gdttf.c:581: case label not within a switch statement
gdttf.c:581: case label not within a switch statement
gdttf.c:581: case label not within a switch statement
gdttf.c:581: case label not within a switch statement
gdttf.c:581: break statement not within loop or switch
gdttf.c: At top level:
gdttf.c:659: parse error beforefont_t'
gdttf.c: In function gdttfchar':
gdttf.c:672:glyph' undeclared (first use in this function)
gdttf.c:673: parse error before glyphkey'
gdttf.c:686:font' undeclared (first use in this function)
gdttf.c:687: next' undeclared (first use in this function)
gdttf.c:704:glyphkey' undeclared (first use in this function)
gdttf.c:707: fg' undeclared (first use in this function)
gdttf.c:709: parse error before)'
gdttf.c:713: bbox' undeclared (first use in this function)
gdttf.c:714:advance' undeclared (first use in this function)
gdttf.c:717: im' undeclared (first use in this function)
gdttf.c:721:bitmapkey' undeclared (first use in this function)
gdttf.c:721: x1' undeclared (first use in this function)
gdttf.c:722: invalid operands to binary &
gdttf.c:727:x' undeclared (first use in this function)
gdttf.c:728: y' undeclared (first use in this function)
gdttf.c:728: invalid operands to binary &
gdttf.c:729:tweencolorkey' undeclared (first use in this function)
gdttf.c:757: tweencolor' undeclared (first use in this function)
gdttf.c: In functiongdttf':
gdttf.c:773: TT_F26Dot6' undeclared (first use in this function)
gdttf.c:773: parse error beforeur_x'
gdttf.c:775: TT_BBox' undeclared (first use in this function)
gdttf.c:775:bbox' undeclared (first use in this function)
gdttf.c:776: parse error before double'
gdttf.c:778:font' undeclared (first use in this function)
gdttf.c:779: parse error before fontkey'
gdttf.c:786:fontCache' undeclared (first use in this function)
gdttf.c:787: engine' undeclared (first use in this function)
gdttf.c:796:fontkey' undeclared (first use in this function)
gdttf.c:800: parse error before )'
gdttf.c:804:sin_a' undeclared (first use in this function)
gdttf.c:805: cos_a' undeclared (first use in this function)
gdttf.c:806:advance_x' undeclared (first use in this function)
gdttf.c:806: advance_y' undeclared (first use in this function)
gdttf.c:808:next' undeclared (first use in this function)
gdttf.c:810: ch' undeclared (first use in this function)
gdttf.c:826:x1' undeclared (first use in this function)
gdttf.c:829: error' undeclared (first use in this function)
gdttf.c:829:advance' undeclared (first use in this function)
gdttf.c:832: i' undeclared (first use in this function)
gdttf.c:833:ll_x' undeclared (first use in this function)
gdttf.c:834: ll_y' undeclared (first use in this function)
gdttf.c:835:ur_x' undeclared (first use in this function)
gdttf.c:836: ur_y' undeclared (first use in this function)
make[3]: *** [gdttf.lo] Error 1
make[3]: Leaving directory/usr/local/src/php-4.0.3/ext/gd'
make[2]: [all-recursive] Error 1
make[2]: Leaving directory /usr/local/src/php-4.0.3/ext/gd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory/usr/local/src/php-4.0.3/ext'
make: [all-recursive] Error 1
I've upgraded my gcc to 2.96-57 from the RawHide distribution, but this hasn't helped.
My configure options are as follows:
./configure --with-apxs=/home/www/bin/apxs --enable-ftp --with-mysql --with-mcrypt --with-ttf --enable-freetype-4bit-antialias-hack --with-gd --with-mhash
Any ideas?
TIA...
...Burbs