Generating files
creating ./config.status
creating php5.spec
creating main/build-defs.h
creating scripts/phpize
creating scripts/man1/phpize.1
creating scripts/php-config
creating scripts/man1/php-config.1
creating sapi/cli/php.1
creating main/php_config.h
main/php_config.h is unchanged
creating main/internal_functions.c
creating main/internal_functions_cli.c
+--------------------------------------------------------------------+
| License: |
| This software is subject to the PHP License, available in this |
| distribution in the file LICENSE. By continuing this installation |
| process, you are bound by the terms of this license agreement. |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point. |
+--------------------------------------------------------------------+
Thank you for using PHP.
[root@yujian php-5.2.6]# make
/bin/sh /home/jerry/下载/php-5.2.6/libtool --silent --preserve-dup-deps --mode=compile gcc -I/usr/local/gd2// -Iext/gd/ -I/home/jerry/下载/php-5.2.6/ext/gd/ -DPHP_ATOM_INC -I/home/jerry/下载/php-5.2.6/include -I/home/jerry/下载/php-5.2.6/main -I/home/jerry/下载/php-5.2.6 -I/usr/local/libxml2/include/libxml2 -I/home/jerry/下载/php-5.2.6/ext/date/lib -I/usr/local/libpng//include -I/usr/local/freetype//include -I/usr/local/freetype//include/freetype2 -I/usr/local/gd2// -I/home/jerry/下载/php-5.2.6/ext/mbstring/oniguruma -I/home/jerry/下载/php-5.2.6/ext/mbstring/libmbfl -I/home/jerry/下载/php-5.2.6/ext/mbstring/libmbfl/mbfl -I/usr/local/libmcrypt//include -I/usr/local/mysql//include/mysql -I/usr/local/mysql/include/mysql -I/home/jerry/下载/php-5.2.6/TSRM -I/home/jerry/下载/php-5.2.6/Zend -I/usr/include -g -O2 -c /home/jerry/下载/php-5.2.6/ext/gd/gd.c -o ext/gd/gd.lo
In file included from /home/jerry/下载/php-5.2.6/ext/gd/gd.c:70:
/usr/local/gd2//gd.h:47:19: error: gd_io.h: No such file or directory
In file included from /home/jerry/下载/php-5.2.6/ext/gd/gd.c:70:
/usr/local/gd2//gd.h:247: error: expected ')' before 'in'
/usr/local/gd2//gd.h:249: error: expected ')' before '*' token
/usr/local/gd2//gd.h:251: error: expected ')' before '*' token
/usr/local/gd2//gd.h:266: error: expected ')' before 'in'
/usr/local/gd2//gd.h:269: error: expected ')' before 'in'
/usr/local/gd2//gd.h:272: error: expected ')' before 'in'
/usr/local/gd2//gd.h:275: error: expected declaration specifiers or '...' before 'gdIOCtx'
/usr/local/gd2//gd.h:457: error: expected declaration specifiers or '...' before 'gdIOCtx'
/usr/local/gd2//gd.h:459: error: expected declaration specifiers or '...' before 'gdIOCtx'
/usr/local/gd2//gd.h:466: error: expected declaration specifiers or '...' before 'gdIOCtx'
/usr/local/gd2//gd.h:469: error: expected declaration specifiers or '...' before 'gdIOCtx'
/usr/local/gd2//gd.h:481: error: expected declaration specifiers or '...' before 'gdIOCtx'
/usr/local/gd2//gd.h:487: error: expected ')' before 'in'
/usr/local/gd2//gd.h:612: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/local/gd2//gd.h:613: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/local/gd2//gd.h:614: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/local/gd2//gd.h:615: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/local/gd2//gd.h:616: warning: 'struct gdIOCtx' declared inside parameter list
/home/jerry/下载/php-5.2.6/ext/gd/gd.c:71:40: error: gdfontt.h: No such file or directory
/home/jerry/下载/php-5.2.6/ext/gd/gd.c:72:41: error: gdfonts.h: No such file or directory
/home/jerry/下载/php-5.2.6/ext/gd/gd.c:73:47: error: gdfontmb.h: No such file or directory
/home/jerry/下载/php-5.2.6/ext/gd/gd.c:74:41: error: gdfontl.h: No such file or directory
/home/jerry/下载/php-5.2.6/ext/gd/gd.c:75:41: error: gdfontg.h: No such file or directory
In file included from /home/jerry/下载/php-5.2.6/ext/gd/gd.c:107:
/home/jerry/下载/php-5.2.6/ext/gd/gd_ctx.c:25: warning: 'struct gdIOCtx' declared inside parameter list
/home/jerry/下载/php-5.2.6/ext/gd/gd_ctx.c:36: warning: 'struct gdIOCtx' declared inside parameter list
/home/jerry/下载/php-5.2.6/ext/gd/gd_ctx.c:42: warning: 'struct gdIOCtx' declared inside parameter list
/home/jerry/下载/php-5.2.6/ext/gd/gd_ctx.c: In function '_php_image_output_ctx':
/home/jerry/下载/php-5.2.6/ext/gd/gd_ctx.c:59: error: 'gdIOCtx' undeclared (first use in this function)
/home/jerry/下载/php-5.2.6/ext/gd/gd_ctx.c:59: error: (Each undeclared identifier is reported only once
/home/jerry/下载/php-5.2.6/ext/gd/gd_ctx.c:59: error: for each function it appears in.)
/home/jerry/下载/php-5.2.6/ext/gd/gd_ctx.c:59: error: 'ctx' undeclared (first use in this function)
/home/jerry/下载/php-5.2.6/ext/gd/gd.c: At top level:
/home/jerry/下载/php-5.2.6/ext/gd/gd.c:171: error: expected declaration specifiers or '...' before 'gdIOCtx'
/home/jerry/下载/php-5.2.6/ext/gd/gd.c: In function '_php_image_type':
/home/jerry/下载/php-5.2.6/ext/gd/gd.c:2420: error: 'gdIOCtx' undeclared (first use in this function)
/home/jerry/下载/php-5.2.6/ext/gd/gd.c:2420: error: 'io_ctx' undeclared (first use in this function)
/home/jerry/下载/php-5.2.6/ext/gd/gd.c:2423: error: 'gdGetC' undeclared (first use in this function)
/home/jerry/下载/php-5.2.6/ext/gd/gd.c: In function '_php_image_create_from_string':
/home/jerry/下载/php-5.2.6/ext/gd/gd.c:2451: error: 'gdIOCtx' undeclared (first use in this function)
/home/jerry/下载/php-5.2.6/ext/gd/gd.c:2451: error: 'io_ctx' undeclared (first use in this function)
/home/jerry/下载/php-5.2.6/ext/gd/gd.c: In function 'zif_imagecreatefromstring':
/home/jerry/下载/php-5.2.6/ext/gd/gd.c:2524: error: 'gdImageCreateFromGifCtx' undeclared (first use in this function)
/home/jerry/下载/php-5.2.6/ext/gd/gd.c:2533: error: 'gdImageCreateFromWBMPCtx' undeclared (first use in this function)
/home/jerry/下载/php-5.2.6/ext/gd/gd.c:2542: error: 'gdImageCreateFromGd2Ctx' undeclared (first use in this function)
/home/jerry/下载/php-5.2.6/ext/gd/gd.c: In function '_php_image_create_from':
/home/jerry/下载/php-5.2.6/ext/gd/gd.c:2613: error: 'gdIOCtx' undeclared (first use in this function)
/home/jerry/下载/php-5.2.6/ext/gd/gd.c:2613: error: 'io_ctx' undeclared (first use in this function)
/home/jerry/下载/php-5.2.6/ext/gd/gd.c: In function 'zif_imagecreatefromgif':
/home/jerry/下载/php-5.2.6/ext/gd/gd.c:2701: error: 'gdImageCreateFromGifCtx' undeclared (first use in this function)
/home/jerry/下载/php-5.2.6/ext/gd/gd.c: In function 'zif_imagecreatefromwbmp':
/home/jerry/下载/php-5.2.6/ext/gd/gd.c:2751: error: 'gdImageCreateFromWBMPCtx' undeclared (first use in this function)
/home/jerry/下载/php-5.2.6/ext/gd/gd.c: In function 'zif_imagecreatefromgd':
/home/jerry/下载/php-5.2.6/ext/gd/gd.c:2760: error: 'gdImageCreateFromGdCtx' undeclared (first use in this function)
/home/jerry/下载/php-5.2.6/ext/gd/gd.c: In function 'zif_imagecreatefromgd2':
/home/jerry/下载/php-5.2.6/ext/gd/gd.c:2769: error: 'gdImageCreateFromGd2Ctx' undeclared (first use in this function)
/home/jerry/下载/php-5.2.6/ext/gd/gd.c: In function 'zif_imagecreatefromgd2part':
/home/jerry/下载/php-5.2.6/ext/gd/gd.c:2777: error: 'gdImageCreateFromGd2PartCtx' undeclared (first use in this function)
/home/jerry/下载/php-5.2.6/ext/gd/gd.c: In function 'php_find_gd_font':
/home/jerry/下载/php-5.2.6/ext/gd/gd.c:3791: error: 'gdFontTiny' undeclared (first use in this function)
/home/jerry/下载/php-5.2.6/ext/gd/gd.c:3794: error: 'gdFontSmall' undeclared (first use in this function)
/home/jerry/下载/php-5.2.6/ext/gd/gd.c:3797: error: 'gdFontMediumBold' undeclared (first use in this function)
/home/jerry/下载/php-5.2.6/ext/gd/gd.c:3800: error: 'gdFontLarge' undeclared (first use in this function)
/home/jerry/下载/php-5.2.6/ext/gd/gd.c:3803: error: 'gdFontGiant' undeclared (first use in this function)
/home/jerry/下载/php-5.2.6/ext/gd/gd.c: At top level:
/home/jerry/下载/php-5.2.6/ext/gd/gd.c:4844: error: expected declaration specifiers or '...' before 'gdIOCtx'
/home/jerry/下载/php-5.2.6/ext/gd/gd.c: In function '_php_image_bw_convert':
/home/jerry/下载/php-5.2.6/ext/gd/gd.c:4891: error: 'out' undeclared (first use in this function)
/home/jerry/下载/php-5.2.6/ext/gd/gd.c:4891: error: too many arguments to function 'gdImageWBMPCtx'
make: *** [ext/gd/gd.lo] 错误 1
[root@yujian php-5.2.6]# vi /usr/local/gd2/include/gd_io.h
[root@yujian php-5.2.6]#
justfunnyboy 于 2013-05-18 15:59:39发表:
自己顶一个,希望有人能帮忙解释
猎徒 于 2013-05-14 14:44:09发表:
2# alick
GD,gd_devel
都安装了
alick 于 2013-05-13 23:47:09发表:
gd 相关的开发包没安装吧?