|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11038 Compile error with gd support
Submitted: 2001-05-22 22:22 UTC Modified: 2001-06-03 07:10 UTC
From: mscalven at uccor dot edu dot ar Assigned:
Status: Closed Package: GD related
PHP Version: 4.0.5 OS: Linux 2.4.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
18 + 13 = ?
Subscribe to this entry?

 [2001-05-22 22:22 UTC] mscalven at uccor dot edu dot ar
 when I try to install PHP 4.0.5 with GD support it crash with this error:

php_ini.c: In function `php_init_config':
php_ini.c:188: warning: passing arg 3 of `zend_llist_init' from
incompatible pointer type

make[1]: Entering directory `/usr/src/php-4.0.5/ext'
Making all in gd
make[2]: Entering directory `/usr/src/php-4.0.5/ext/gd'
make[3]: Entering directory `/usr/src/php-4.0.5/ext/gd'
gcc  -I. -I/usr/src/php-4.0.5/ext/gd -I/usr/src/php-4.0.5/main
-I/usr/src/php-4.0.5 -I/usr/src/apache_1.3.19/src/include
-I/usr/src/apache_1.3.19/src/os/unix -I/usr/src/php-4.0.5/Zend
-I/usr/src/gd-2.0.1 -I/usr/src/php-4.0.5/ext/mysql/libmysql
-I/usr/src/php-4.0.5/ext/xml/expat/xmlparse -I/usr/src/php-4.0.5/TSRM
-c gd.c && touch gd.lo
gd.c:91: conflicting types for `gdIOCtx'
/usr/src/gd-2.0.1/gd_io.h:18: previous declaration of `gdIOCtx'
make[3]: *** [gd.lo] Error 1
make[3]: Leaving directory `/usr/src/php-4.0.5/ext/gd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/php-4.0.5/ext/gd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/php-4.0.5/ext'
make: *** [all-recursive] Error 1 

My configure line is:

root@mafalda:/usr/src/php-4.0.5/# ./configure --with-apache=/usr/src/apache_1.3.19 --with-gd=/usr/src/gd-2.0.1
--with-jpeg-dir=/usr/src/jpeg-6b --with-mysql --enable-track-vars


My LINUX configuration is:

Kernel version:  2.4.2
gcc version:     egcs-2.91.66
make version:    GNU Make version 3.79
gd version:      2.0.1


Any solution, please.....



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-22 22:49 UTC]
please try the PHP 4.0.6RC1 from:


 [2001-05-24 18:53 UTC] mscalven at uccor dot edu dot ar
Same error with php 4.0.6RC1


 [2001-05-24 19:08 UTC] mscalven at uccor dot edu dot ar
I discover a fix... work?
Step 1:
./configure --with-gd=/usr --with-jpeg-dir=/usr/lib --enable-track-vars --with-apache=../apache.1.3.xx --with-mysql 

Step 2:
   edit config.cache & find the next line:
       REPLACE for:
    exit & SAVE 

Step 3:
   Execute AGAIN:
./configure --with-gd=/usr --with-jpeg-dir=/usr/lib --enable-track-vars --with-apache=../apache.1.3.xx --with-mysql 

Step 4:
Step 5:
   make install
Step 6:

PD:  Is it a valid fix??? I don't know... Please send commnets!!!!!!!

 [2001-06-03 07:10 UTC]
This should be fixed in PHP 4.0.6. Please try the
latest release candidate (RC2) from:


PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 23 17:01:30 2024 UTC