php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21030 Compiling PHP fails with GD 2.0.8 and above
Submitted: 2002-12-15 16:15 UTC Modified: 2002-12-15 16:16 UTC
From: phpbug at spambox dot dk Assigned:
Status: Closed Package: GD related
PHP Version: 4.3.0RC3 OS: FreeBSD 4.7
Private report: No CVE-ID: None
 [2002-12-15 16:15 UTC] phpbug at spambox dot dk
Bug #20228 still exist in 4.3.0RC3
Please fix this before 4.3.0 final.

Compiling PHP fails with GD 2.0.8 and above:
-- cut
/bin/sh libtool --silent --mode=compile gcc -I/usr/local/include -Iext/gd/ -I/home/test/src/essentials/php-4.3.0RC3/ext/gd/ -DPHP_ATOM_INC -I/home/test/src/essentials/php-4.3.0RC3/include -I/home/test/src/essentials/php-4.3.0RC3/main -I/home/test/src/essentials/php-4.3.0RC3 -I/home/test/src/essentials/php-4.3.0RC3/Zend -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/X11R6/include -I/usr/local/include/freetype2 -I/usr/local/mysql/include/mysql -I/usr/local/include/ucd-snmp  -DMOD_SSL=208112 -DEAPI -DUSE_EXPAT -DSHARED_CORE -I/home/test/src/essentials/php-4.3.0RC3/TSRM  -g -O2  -prefer-pic -c /home/test/src/essentials/php-4.3.0RC3/ext/gd/gd.c -o ext/gd/gd.lo 
In file included from /home/test/src/essentials/php-4.3.0RC3/ext/gd/gd.c:89:
/home/test/src/essentials/php-4.3.0RC3/ext/gd/gd_ctx.c: In function `_php_image_output_ctx':
/home/test/src/essentials/php-4.3.0RC3/ext/gd/gd_ctx.c:73: structure has no member named `free'
/home/test/src/essentials/php-4.3.0RC3/ext/gd/gd_ctx.c:105: structure has no member named `free'
/home/test/src/essentials/php-4.3.0RC3/ext/gd/gd.c: In function `_php_image_type':
/home/test/src/essentials/php-4.3.0RC3/ext/gd/gd.c:1156: structure has no member named `free'
/home/test/src/essentials/php-4.3.0RC3/ext/gd/gd.c:1163: structure has no member named `free'
/home/test/src/essentials/php-4.3.0RC3/ext/gd/gd.c: In function `_php_image_create_from':
/home/test/src/essentials/php-4.3.0RC3/ext/gd/gd.c:1345: structure has no member named `free'
/home/test/src/essentials/php-4.3.0RC3/ext/gd/gd.c:1363: warning: assignment makes pointer from integer without a cast
/home/test/src/essentials/php-4.3.0RC3/ext/gd/gd.c: In function `zif_imagecreatefromxpm':
/home/test/src/essentials/php-4.3.0RC3/ext/gd/gd.c:1433: `gdImageCreateFromXpm' undeclared (first use in this function)
/home/test/src/essentials/php-4.3.0RC3/ext/gd/gd.c:1433: (Each undeclared identifier is reported only once
/home/test/src/essentials/php-4.3.0RC3/ext/gd/gd.c:1433: for each function it appears in.)
gmake: *** [ext/gd/gd.lo] Error 1
-- cut

You can see a describtion of the problem including patch and a new GD function on:
http://www.boutell.com/gd/phppatch.html

Best regards Henrik

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-15 16:16 UTC] derick@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Oct 04 15:01:28 2024 UTC