php-5.4.10 make시 gd관련 에러...

by 햇빛소년 posted Jan 06, 2013 Views 20515 Likes 0 Replies 0
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄

국산 통나무 수공예 남원제기, 남원목기

자료가 도움이 되셨다면
혼수용품제수용품 필요시
남원제기 공식 홈페이지 http://남원제기.kr
남원목기 공식 홈페이지 http://otchil.kr
에서 구매 해 주세요
정성껏 모시겠습니다.
 

In file included from /usr/local/src/php-5.4.3/ext/gd/gd.c:103:
/usr/local/src/php-5.4.10/ext/gd/gd_ctx.c: In function '_php_image_stream_putc':
/usr/local/src/php-5.4.10/ext/gd/gd_ctx.c:51: error: 'struct gdIOCtx' has no member named 'data'
/usr/local/src/php-5.4.10/ext/gd/gd_ctx.c: In function '_php_image_stream_putbuf':
/usr/local/src/php-5.4.10/ext/gd/gd_ctx.c:58: error: 'struct gdIOCtx' has no member named 'data'
/usr/local/src/php-5.4.10/ext/gd/gd_ctx.c: In function '_php_image_stream_ctxfree':
/usr/local/src/php-5.4.10/ext/gd/gd_ctx.c:67: error: 'struct gdIOCtx' has no member named 'data'
/usr/local/src/php-5.4.10/ext/gd/gd_ctx.c:68: error: 'struct gdIOCtx' has no member named 'data'
/usr/local/src/php-5.4.10/ext/gd/gd_ctx.c:69: error: 'struct gdIOCtx' has no member named 'data'
/usr/local/src/php-5.4.10/ext/gd/gd_ctx.c: In function '_php_image_output_ctx':
/usr/local/src/php-5.4.10/ext/gd/gd_ctx.c:153: error: 'gdIOCtx' has no member named 'data'
gmake: *** [ext/gd/gd.lo] Error 1

 

위와 같은 에러시 에러 해결 방법.

 

vi <gd_dir: 설치된 디렉토리>/include/gd_io.h

 

아래 구문을 찾아 밑에 빨간색으로 깅비된 문장을 추가 해 준다.

 

 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;

 

이제 에러없이 make 컴파일이 잘 마무리 될 것입니다.

   

Articles

1 2 3 4 5 6 7 8 9 10