ID: 20472 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: GD related Operating System: RedHat Linx 7.2 -PHP Version: 4.3.0RC1 +PHP Version: 4.3.0RC1/3 New Comment:
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 Previous Comments: ------------------------------------------------------------------------ [2002-12-03 21:24:35] [EMAIL PROTECTED] I apologize for the lack of updates lately, but I have been traveling for the last week and a half. The server I am running is not at my house but at a friends who has Road Runner. For the last 2 months it has worked without issue... of course as soon as my friend goes on vacation for 2 weeks, the ethernet card lost it's connection. Because of that it will likely be another 2 weeks before I can look at this again. Thanks for your help & Patience Scott ------------------------------------------------------------------------ [2002-12-03 21:15:23] [EMAIL PROTECTED] <I will work at upgrading to the new version of GD, and try providing the path directly, rather than just the --with-gd.> Can you try with only "--with-gd", you do not need to provide a path here, with the 4.3.0 or cvs, php will use the bundled (deliver with php sources) gd version. Btw, be sure to remove all include files from gd if they are in the stantard include path. thank's pierre ------------------------------------------------------------------------ [2002-11-20 22:42:19] [EMAIL PROTECTED] I have attemped to compile both PHP and GD, with specifing the same location of the libpng library in each. After doing this I am still receiving the same error. I will continue to attempt different compile methods. An update here later. The frequency of my responses will decrease over the next two weeks as I will be away from home. I will continue to update more often again on Dec 2. ------------------------------------------------------------------------ [2002-11-18 23:22:08] [EMAIL PROTECTED] Isn't that error quite self-explaining?????? You should tell PHP to use same PNG library as you used with GD. --with-png-dir should point to same place as you used with GD.. ------------------------------------------------------------------------ [2002-11-18 22:36:35] [EMAIL PROTECTED] After Compiling GD 2.0.7 and recompiling php & restarting apache, I get the following errors in the apache log file: libpng warning: Application is running with png.c from libpng-1.0.14 gd-png: fatal libpng error: Incompatible libpng version in application and library [Mon Nov 18 22:34:45 2002] [notice] child pid 3197 exit signal Segmentation fault (11) Config for PHP: ./configure --with-mysql --with-apxs2=/usr/dev/local/apache2/bin/apxs --with-gd=/usr/dev/local/gd2.0.7/ --prefix=/usr/dev/local/php4.3/ Config for GD: ./configure --prefix=/usr/dev/local/gd2.0.7 --with-png=/usr/src/libpng-1.2.1/ --with-jpeg=/usr/src/jpeg-6b/ Any ideas? ------------------------------------------------------------------------ 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