From:             [EMAIL PROTECTED]
Operating system: Linux Redhat 8
PHP version:      4.2.3
PHP Bug Type:     GD related
Bug description:  Make fails when compiling with GD

I looked through the already submitted bugs and some might have been
similar, but none had the same error. 

I have compiled and installed GD version 2.0.4. This is on a fresh
installation of linux, so there shouldn't be any older versions of GD that
might be lying around. My PHP configure statement is as follows:

./configure --with-mysql=/usr/local/mysql --with-xml --with-zlib
--with-gd=/usr --with-jpeg-dir=/usr/include --with-png-dir=/usr/include
--with-xpm-dir=/usr/include --enable-ftp --enable-trans-sid
--enable-track-vars --with-apache=../apache_1.3.27

PHP then configures correctly, but when performing the make command for
PHP, I get the following error:

In file included from gd.c:83:
gd_ctx.c: In function `_php_image_output_ctx':
gd_ctx.c:70: structure has no member named `free'
gd_ctx.c:98: structure has no member named `free'
gd.c: In function `_php_image_type':
gd.c:1014: structure has no member named `free'
gd.c:1017: structure has no member named `free'
gd.c: In function `_php_image_create_from':
gd.c:1209: structure has no member named `free'
make[3]: *** [gd.lo] Error 1
make[3]: Leaving directory `/root/downloads/php-4.2.3/ext/gd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/downloads/php-4.2.3/ext/gd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/downloads/php-4.2.3/ext'
make: *** [all-recursive] Error 1
[root@lighthouse php-4.2.3]# locate gd.h
/root/downloads/gd-2.0.4/gd.h
/root/downloads/php-4.2.3/ext/gd/php_gd.h
/usr/include/gd.h

If the solution to this problem is to use an older version of GD, what is
the command to uninstall GD? I tried "make uninstall", but that did not
work. I can't find it anywhere in the GD docs either.

Thanks in advance,
Ace


-- 
Edit bug report at http://bugs.php.net/?id=20228&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=20228&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=20228&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=20228&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=20228&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=20228&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=20228&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=20228&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=20228&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=20228&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=20228&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20228&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=20228&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=20228&r=isapi

Reply via email to