php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mscalven at uccor dot edu dot ar
New email:
PHP Version: OS:

 

 [2001-05-22 22:22 UTC] mscalven at uccor dot edu dot ar
Hello, 
 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/xmltok
-I/usr/src/php-4.0.5/ext/xml/expat/xmlparse -I/usr/src/php-4.0.5/TSRM
-DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2
-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.....


                Thanks



Patches

Pull Requests

History

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

http://www.php.net/~andi/php-4.0.6RC1.tar.gz

--Jani

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


         Thanks


 [2001-05-24 19:08 UTC] mscalven at uccor dot edu dot ar
I discover a fix... work?
-----
Step 1:
   execute:
./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:
ac_cv_lib_gd_gdImagePaletteCopy=${ac_cv_lib_gd_gdImagePaletteCopy=no}
       REPLACE for:
ac_cv_lib_gd_gdImagePaletteCopy=${ac_cv_lib_gd_gdImagePaletteCopy=yes}
    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:
   make
Step 5:
   make install
Step 6:
   enjoy!!!!!

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







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

http://www.php.net/~andi/php-4.0.6RC2.tar.gz

--Jani

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jan 02 12:01:29 2025 UTC