錯誤信息:
創新互聯公司專注于蔡甸網站建設服務及定制,我們擁有豐富的企業做網站經驗。 熱誠為您提供蔡甸營銷型網站建設,蔡甸網站制作、蔡甸網頁設計、蔡甸網站官網定制、微信小程序開發服務,打造蔡甸網絡公司原創品牌,更為您提供蔡甸網站排名全網營銷落地服務。
[plain] view plaincopyprint?在CODE上查看代碼片派生到我的代碼片
/root/rpmbuild/BUILD/php-5.4.36/ext/gd/gd_ctx.c: In function '_php_p_w_picpath_stream_putc':
/root/rpmbuild/BUILD/php-5.4.36/ext/gd/gd_ctx.c:51: error: 'struct gdIOCtx' has no member named 'data'
/root/rpmbuild/BUILD/php-5.4.36/ext/gd/gd_ctx.c: In function '_php_p_w_picpath_stream_putbuf':
/root/rpmbuild/BUILD/php-5.4.36/ext/gd/gd_ctx.c:58: error: 'struct gdIOCtx' has no member named 'data'
/root/rpmbuild/BUILD/php-5.4.36/ext/gd/gd_ctx.c: In function '_php_p_w_picpath_stream_ctxfree':
/root/rpmbuild/BUILD/php-5.4.36/ext/gd/gd_ctx.c:67: error: 'struct gdIOCtx' has no member named 'data'
/root/rpmbuild/BUILD/php-5.4.36/ext/gd/gd_ctx.c:68: error: 'struct gdIOCtx' has no member named 'data'
/root/rpmbuild/BUILD/php-5.4.36/ext/gd/gd_ctx.c:69: error: 'struct gdIOCtx' has no member named 'data'
In file included from /root/rpmbuild/BUILD/php-5.4.36/ext/gd/gd.c:103:
/root/rpmbuild/BUILD/php-5.4.36/ext/gd/gd_ctx.c: In function '_php_p_w_picpath_output_ctx':
/root/rpmbuild/BUILD/php-5.4.36/ext/gd/gd_ctx.c:153: error: 'gdIOCtx' has no member named 'data'
make: *** [ext/gd/gd.lo] Error 1
make: *** Waiting for unfinished jobs....
解決方案:編輯GD 安裝的頭文件 gd_io.h ,用 find 命令。
#define Putchar gdPutchar
#endif
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;
添加 void (*data); 可通過編譯
文章題目:編譯PHP的錯誤
當前URL:http://vcdvsql.cn/article14/iipode.html
成都網站建設公司_創新互聯,為您提供ChatGPT、企業建站、網站策劃、建站公司、網站收錄、自適應網站
聲明:本網站發布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創新互聯