|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2013-02-22 19:39 UTC] 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' PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 19 18:00:02 2025 UTC |
Well, that made sense in the point that I had successful compilation. But despite that there is a compiled gd.so extension, there are no actual functions. The following script: <?php echo !function_exists('imagecreatefromjpeg'); ?> gives me '1' as a result of its execution. Neither does imagecreatefrompng and any other gd function. Here you can see my phpinfo() output: http://www.kreine.ru/test/f.php My extension_dir directive is absolutely correct as any other compiled extension shows up in the result of phpinfo().I can send my php.ini to you if you provide any email address.