ID: 20472 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Feedback +Status: Open Bug Type: GD related Operating System: RedHat Linx 7.2 PHP Version: 4.3.0RC1/3 New Comment:
Using the --with-gd & --with-zlib did allow PHP-4.3.0RC3 to compile & make correctly. My code, which does work in production, does not work with this combination. I receive the following error: Fatal error: Call to undefined function: imagejpeg() in /home/wisnowmobileclubs.com/func/reportedplace.fun on line 368 I am still going to work with the most recent stable version & the --with-gd=path option. Previous Comments: ------------------------------------------------------------------------ [2002-12-15 14:26:49] [EMAIL PROTECTED] --with-gd=/path uses an external library you already have installed on your system. --with-gd will use the bundled version of GD; from PHP 4.3.0 we bundle GD with our own patches and bugfixes. If you do not need GIF writing support we strongly recommend to use the bundled library as it has some fixes and new features (like anti-aliased line drawing) that the non-bundled library does not have. ------------------------------------------------------------------------ [2002-12-15 14:24:17] [EMAIL PROTECTED] --with-gd uses bundled GD library. ------------------------------------------------------------------------ [2002-12-15 14:19:02] [EMAIL PROTECTED] Can you explain how the --with-gd differs from the --with-gd=path? I am currently have 2 versions of GD installed (gd-1.8.4 in production & 2.0.9 in dev). Which version would the with-gd use? I am trying a new download from snaps.php.net, and will update later today. ------------------------------------------------------------------------ [2002-12-15 13:22:13] [EMAIL PROTECTED] This was recently fixed, can you please try a stable snapshot from snaps.php.net to verify this? We would also welcome feedback whether you encounter the same problems when using the bundled GD. (You can use that by just using --with-gd instead of --with-gd=/path). regards, Derick ------------------------------------------------------------------------ [2002-12-15 13:20:04] [EMAIL PROTECTED] Hello again, I have gotten my box back online and am working to upgrade everything to the most recent version. I have downloaded PHP 4.3.0RC3 and GD2.0.9. I am able to install GD, but the PHP make fails on GD related items. Below is my config command, and the make error. Adding the paths to the jpeg files & libpng have not helped either. ./configure --with-mysql --with-apxs2=/usr/dev/local/apache2/bin/apxs --with-gd=/usr/dev/local/gd2.0.9/ --prefix=/usr/dev/local/php4.3/ make /bin/sh libtool --silent --mode=compile gcc -Iext/ctype/ -I/usr/dev/src/php-4.3.0RC3/ext/ctype/ -DPHP_ATOM_INC -I/usr/dev/src/php-4.3.0RC3/include -I/usr/dev/src/php-4.3.0RC3/main -I/usr/dev/src/php-4.3.0RC3 -I/usr/dev/local/apache2/include -I/usr/dev/src/php-4.3.0RC3/Zend -I/usr/dev/local/gd2.0.9//include -I/usr/dev/src/php-4.3.0RC3/ext/xml/expat -I/usr/dev/src/php-4.3.0RC3/TSRM -g -O2 -prefer-pic -c /usr/dev/src/php-4.3.0RC3/ext/ctype/ctype.c -o ext/ctype/ctype.lo /bin/sh libtool --silent --mode=compile gcc -I/usr/dev/local/gd2.0.9//include -Iext/gd/ -I/usr/dev/src/php-4.3.0RC3/ext/gd/ -DPHP_ATOM_INC -I/usr/dev/src/php-4.3.0RC3/include -I/usr/dev/src/php-4.3.0RC3/main -I/usr/dev/src/php-4.3.0RC3 -I/usr/dev/local/apache2/include -I/usr/dev/src/php-4.3.0RC3/Zend -I/usr/dev/local/gd2.0.9//include -I/usr/dev/src/php-4.3.0RC3/ext/xml/expat -I/usr/dev/src/php-4.3.0RC3/TSRM -g -O2 -prefer-pic -c /usr/dev/src/php-4.3.0RC3/ext/gd/gd.c -o ext/gd/gd.lo In file included from /usr/dev/src/php-4.3.0RC3/ext/gd/gd.c:89: /usr/dev/src/php-4.3.0RC3/ext/gd/gd_ctx.c: In function `_php_image_output_ctx': /usr/dev/src/php-4.3.0RC3/ext/gd/gd_ctx.c:73: structure has no member named `free' /usr/dev/src/php-4.3.0RC3/ext/gd/gd_ctx.c:105: structure has no member named `free' /usr/dev/src/php-4.3.0RC3/ext/gd/gd.c: In function `_php_image_type': /usr/dev/src/php-4.3.0RC3/ext/gd/gd.c:1156: structure has no member named `free' /usr/dev/src/php-4.3.0RC3/ext/gd/gd.c:1163: structure has no member named `free' /usr/dev/src/php-4.3.0RC3/ext/gd/gd.c: In function `_php_image_create_from': /usr/dev/src/php-4.3.0RC3/ext/gd/gd.c:1345: structure has no member named `free' /usr/dev/src/php-4.3.0RC3/ext/gd/gd.c:1363: warning: assignment makes pointer from integer without a cast /usr/dev/src/php-4.3.0RC3/ext/gd/gd.c: In function `zif_imagecreatefromxpm': /usr/dev/src/php-4.3.0RC3/ext/gd/gd.c:1433: `gdImageCreateFromXpm' undeclared (first use in this function) /usr/dev/src/php-4.3.0RC3/ext/gd/gd.c:1433: (Each undeclared identifier is reported only once /usr/dev/src/php-4.3.0RC3/ext/gd/gd.c:1433: for each function it appears in.) make: *** [ext/gd/gd.lo] Error 1 ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/20472 -- Edit this bug report at http://bugs.php.net/?id=20472&edit=1