Bug #64281 [Opn]: PHP fails to compile with GD

From: Date: Fri, 22 Feb 2013 19:51:14 +0000
Subject: Bug #64281 [Opn]: PHP fails to compile with GD
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-177334@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=64281&edit=1

 ID:                 64281
 Updated by:         rasmus@php.net
 Reported by:        mark at kreine dot ru
 Summary:            PHP fails to compile with GD
 Status:             Open
 Type:               Bug
 Package:            Compile Failure
 Operating System:   Ubuntu
 PHP Version:        5.4.12
 Block user comment: N
 Private report:     N

 New Comment:

You are probably using an incompatible external version of gd. Use the bundled 
one. As in, just do --with-gd=shared


Previous Comments:
------------------------------------------------------------------------
[2013-02-22 19:39:46] mark at kreine dot ru

Description:
------------
If enabled --with-gd, php fails to compile resulting in the following errors:

In file included from /tmp/php-5.4.12/ext/gd/gd.c:103:0:
/tmp/php-5.4.12/ext/gd/gd_ctx.c: In function '_php_image_stream_putc':
/tmp/php-5.4.12/ext/gd/gd_ctx.c:51:41: error: 'struct gdIOCtx' has no member named
'data'
/tmp/php-5.4.12/ext/gd/gd_ctx.c: In function '_php_image_stream_putbuf':
/tmp/php-5.4.12/ext/gd/gd_ctx.c:58:41: error: 'struct gdIOCtx' has no member named
'data'
/tmp/php-5.4.12/ext/gd/gd_ctx.c: In function '_php_image_stream_ctxfree':
/tmp/php-5.4.12/ext/gd/gd_ctx.c:67:8: error: 'struct gdIOCtx' has no member named
'data'
/tmp/php-5.4.12/ext/gd/gd_ctx.c:68:3: error: 'struct gdIOCtx' has no member named
'data'
/tmp/php-5.4.12/ext/gd/gd_ctx.c:69:6: error: 'struct gdIOCtx' has no member named
'data'
In file included from /tmp/php-5.4.12/ext/gd/gd.c:103:0:
/tmp/php-5.4.12/ext/gd/gd_ctx.c: In function '_php_image_output_ctx':
/tmp/php-5.4.12/ext/gd/gd_ctx.c:153:6: error: 'gdIOCtx' has no member named
'data'
make: *** [ext/gd/gd.lo] Error 1


Test script:
---------------
Here is my configure script as an example:

./configure --prefix=/soft/php --with-apxs2=/soft/httpd/bin/apxs --with-mysql=shared,/soft/mysql
--with-pdo-mysql=shared,/soft/mysql --with-mysqli=shared,/soft/mysql/bin/mysql_config
--with-libxml-dir=/soft/libxml --with-iconv=shared,/soft/libiconv --with-zlib=shared,/soft/zlib
--with-zlib-dir=/soft/zlib --with-gettext=shared,/soft/gettext --with-gd=shared,/soft/gd
--with-jpeg-dir=/soft/libjpeg --with-png-dir=/soft/libpng --enable-ftp --enable-exif
--enable-mbstring --enable-bcmath --enable-calendar --enable-zip --enable-gd-native-ttf
--with-pcre-dir=/soft/pcre --enable-soap --enable-sockets



Expected result:
----------------
Successful compilation

Actual result:
--------------
The following compilation errors:

In file included from /tmp/php-5.4.12/ext/gd/gd.c:103:0:
/tmp/php-5.4.12/ext/gd/gd_ctx.c: In function '_php_image_stream_putc':
/tmp/php-5.4.12/ext/gd/gd_ctx.c:51:41: error: 'struct gdIOCtx' has no member named
'data'
/tmp/php-5.4.12/ext/gd/gd_ctx.c: In function '_php_image_stream_putbuf':
/tmp/php-5.4.12/ext/gd/gd_ctx.c:58:41: error: 'struct gdIOCtx' has no member named
'data'
/tmp/php-5.4.12/ext/gd/gd_ctx.c: In function '_php_image_stream_ctxfree':
/tmp/php-5.4.12/ext/gd/gd_ctx.c:67:8: error: 'struct gdIOCtx' has no member named
'data'
/tmp/php-5.4.12/ext/gd/gd_ctx.c:68:3: error: 'struct gdIOCtx' has no member named
'data'
/tmp/php-5.4.12/ext/gd/gd_ctx.c:69:6: error: 'struct gdIOCtx' has no member named
'data'
In file included from /tmp/php-5.4.12/ext/gd/gd.c:103:0:
/tmp/php-5.4.12/ext/gd/gd_ctx.c: In function '_php_image_output_ctx':
/tmp/php-5.4.12/ext/gd/gd_ctx.c:153:6: error: 'gdIOCtx' has no member named
'data'



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=64281&edit=1


Thread (4 messages)

« previous php.bugs (#177334) next »