From: mark at kreine dot ru Operating system: Ubuntu PHP version: 5.4.12 Package: Compile Failure Bug Type: Bug Bug description:PHP fails to compile with GD
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 bug report at https://bugs.php.net/bug.php?id=64281&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64281&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64281&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64281&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=64281&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=64281&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=64281&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=64281&r=needscript Try newer version: https://bugs.php.net/fix.php?id=64281&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=64281&r=support Expected behavior: https://bugs.php.net/fix.php?id=64281&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=64281&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=64281&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=64281&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64281&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=64281&r=dst IIS Stability: https://bugs.php.net/fix.php?id=64281&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=64281&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=64281&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=64281&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=64281&r=mysqlcfg
