‘make: *** [ext/gd/gd.lo] 错误 1’

简介: <br><br><p>参考:</p> <p><br></p> <br> [转]安装php时报gd相关的错误gd_ctx.c<br> 2012年4月29日woyoo没有评论<br> 转自:http://blog.csdn.net/hzcyclone/article/details/7493051<br><br><br> 在安装php时,报如下错误<br><br><br> In


参考:



[转]安装php时报gd相关的错误gd_ctx.c
2012年4月29日woyoo没有评论
转自:http://blog.csdn.net/hzcyclone/article/details/7493051


在安装php时,报如下错误


In file included from /kk/php-5.4.0/ext/gd/gd.c:103:


/kk/php-5.4.0/ext/gd/gd_ctx.c: In function ‘_php_image_stream_putc’:


/kk/php-5.4.0/ext/gd/gd_ctx.c:51: 错误:‘struct gdIOCtx’ 没有名为 ‘data’ 的成员


/kk/php-5.4.0/ext/gd/gd_ctx.c: In function ‘_php_image_stream_putbuf’:


/kk/php-5.4.0/ext/gd/gd_ctx.c:58: 错误:‘struct gdIOCtx’ 没有名为 ‘data’ 的成员


/kk/php-5.4.0/ext/gd/gd_ctx.c: In function ‘_php_image_stream_ctxfree’:


/kk/php-5.4.0/ext/gd/gd_ctx.c:67: 错误:‘struct gdIOCtx’ 没有名为 ‘data’ 的成员


/kk/php-5.4.0/ext/gd/gd_ctx.c:68: 错误:‘struct gdIOCtx’ 没有名为 ‘data’ 的成员


/kk/php-5.4.0/ext/gd/gd_ctx.c:69: 错误:‘struct gdIOCtx’ 没有名为 ‘data’ 的成员


/kk/php-5.4.0/ext/gd/gd_ctx.c: In function ‘_php_image_output_ctx’:


/kk/php-5.4.0/ext/gd/gd_ctx.c:153: 错误:‘gdIOCtx’ 没有名为 ‘data’ 的成员


make: *** [ext/gd/gd.lo] 错误 1


好像说这个错误算是php5.4的bug,下面对应的两篇文章有对应的说明:


https://bugs.php.net/bug.php?id=55224


https://bugs.php.net/bug.php?id=60108


解决方法     亲测成功 :)


vi <gd_dir>/include/gd_io.h


gdIOCtx结构中增加void *data;


格式如下


typedef struct gdIOCtx


{


int (*getC) (struct gdIOCtx *);


int (*getBuf) (struct gdIOCtx *, void *, int);


 


void (*putC) (struct gdIOCtx *, int);


int (*putBuf) (struct gdIOCtx *, const void *, int);


 


/* seek must return 1 on SUCCESS, 0 on FAILURE. Unlike fseek! */


int (*seek) (struct gdIOCtx *, const int);


 


long (*tell) (struct gdIOCtx *);


 


void (*gd_free) (struct gdIOCtx *);


void (*data);


}


gdIOCtx;


分类: PHP标签: gd_ctx.c, make: *** [ext/gd/gd.lo] 错误 1, php5.4.1



参考:

http://54im.com/tag/make-extgdgd-lo-%E9%94%99%E8%AF%AF-1



目录
相关文章
Could NOT find LibXml2 (missing: LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR)Call Stack
Could NOT find LibXml2 (missing: LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR)Call Stack
537 0
|
移动开发 Unix Shell
linux解决“/bin/bash^M: bad interpreter“
原因: 在执行shell脚本时提示这样的错误主要是由于shell脚本文件是dos格式,即每一行结尾以\r\n来标识,而unix格式的文件行尾则以\n来标识
232 0
|
机器学习/深度学习 Unix Shell
|
SQL Oracle 关系型数据库
[20160414]重测gdul.txt
[20160414]重测gdul.txt --2月份时做过一个测试,链接http://blog.itpub.net/267265/viewspace-1992354/ --作者最近做了许多更新,重复测试看看.
987 0

热门文章

最新文章