編譯PHP的錯誤
錯誤資訊:
[plain] view plaincopyprint?在CODE上檢視程式碼片派生到我的程式碼片
/root/rpmbuild/BUILD/php-5.4.36/ext/gd/gd_ctx.c: In function `_php_image_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_image_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_image_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_image_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編譯小錯誤PHP編譯
- PHP編譯安裝時常見錯誤解決辦法,php編譯常見錯誤PHP編譯
- PHP編譯錯誤及解決辦法PHP編譯
- 正確理解PHP程式編譯時的錯誤資訊PHP編譯
- PHP編譯configure時常見錯誤,和PHP7.1.4 編譯安裝PHP編譯
- VS 編譯錯誤編譯
- ipvs編譯錯誤編譯
- 經典的編譯錯誤 (轉)編譯
- opencv 編譯常見錯誤OpenCV編譯
- 最近編譯tolua_runtime安卓編譯錯誤編譯安卓
- PHP編譯,執行make報錯PHP編譯
- 編譯EJB出現錯誤的解決編譯
- JB7的常見編譯錯誤!!編譯
- IDEA報錯java: 編譯失敗: 內部 java 編譯器錯誤IdeaJava編譯
- PHP原始碼包編譯安裝錯誤及解決方法彙總PHP原始碼編譯
- Include檔案易犯編譯錯誤編譯
- 編譯錯誤,請教一下!編譯
- Ubuntu上的pycrypto給出了編譯器錯誤Ubuntu編譯
- Docker環境編譯時的錯誤記錄Docker編譯
- 編譯notepad++的錯誤解決編譯
- 執行無法解決的編譯錯誤編譯
- Lombok 的@ToString導致的Maven編譯錯誤LombokMaven編譯
- 編譯錯誤導致浪費10多分鐘, 編譯錯誤的提示:xxx does not name a type xxx編譯
- xcode 編譯opencv ios容易出現的錯誤XCode編譯OpenCViOS
- jbuilder編譯jive出現的錯誤,高手幫忙!!UI編譯
- C++編譯錯誤的正確查詢方式C++編譯
- Android編譯通過,執行編譯錯誤問題總結Android編譯
- Idea編譯錯誤解決辦法Idea編譯
- Android Studio 編譯錯誤集錦Android編譯
- 請教,struts中jsp編譯錯誤JS編譯
- 編譯實體Bean出現如下錯誤.....編譯Bean
- eclipse 編譯錯誤,找不到servlet包Eclipse編譯Servlet
- 升級Xcode10導致的編譯錯誤XCode編譯
- 編譯專案時出現的錯誤 線上等回覆編譯
- 用jb7編譯jdon的錯誤,請高手看看編譯
- PHP的編譯安裝PHP編譯
- xcode6編譯錯誤,提示Expected a typeXCode編譯
- 精讀《手寫 SQL 編譯器 - 錯誤提示》SQL編譯