php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11638 Compile --with-gd causes error
Submitted: 2001-06-24 09:09 UTC Modified: 2001-06-24 09:18 UTC
From: billyz at billyz dot com Assigned:
Status: Not a bug Package: GD related
PHP Version: 4.0.6 OS: RedHat Linux 7.0 kernel 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: billyz at billyz dot com
New email:
PHP Version: OS:

 

 [2001-06-24 09:09 UTC] billyz at billyz dot com
My configure command is:


./configure --with-gd=/usr --with-jpeg-dir=/usr/lib --enable-track-vars --with-apache=../apache_1.3.20/ --with-mysql

make[1]: Entering directory `/usr/src/php-4.0.6/ext'
Making all in gd
make[2]: Entering directory `/usr/src/php-4.0.6/ext/gd'
make[3]: Entering directory `/usr/src/php-4.0.6/ext/gd'
gcc  -I. -I/usr/src/php-4.0.6/ext/gd -I/usr/src/php-4.0.6/main -I/usr/src/php-4.0.6 -I/usr/src/apache_1.3.20/src/include -I/usr/src/apache_1.3.20/src/os/unix -I/usr/src/php-4.0.6/Zend -I/usr/src/php-4.0.6/ext/mysql/libmysql -I/usr/src/php-4.0.6/ext/xml/expat/xmltok -I/usr/src/php-4.0.6/ext/xml/expat/xmlparse -I/usr/src/php-4.0.6/TSRM  -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2  -c gd.c && touch gd.lo
gd.c:95: conflicting types for `gdIOCtx'
/usr/include/gd_io.h:18: previous declaration of `gdIOCtx'
make[3]: *** [gd.lo] Error 1
make[3]: Leaving directory `/usr/src/php-4.0.6/ext/gd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/php-4.0.6/ext/gd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/php-4.0.6/ext'
make: *** [all-recursive] Error 1

This is reproducable using GD Libs v1.8.x and 2.0.x

PHP 4.0.6 and PHP 4.0.6

Thanks.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-24 09:18 UTC] sniper@php.net
I can not reproduce this with GD versions: 1.5 / 1.8.3 / 1.8.4 / 2.0.1. Also, using /usr/lib as path to any
configure option is not correct. You must ALWAYS use
the install prefix, in this case /usr for --with-jpeg-dir

I think you have some conflict with older GD and newer one
in your system. Try installing the GD into some other
prefix than /usr, e.g. /opt/gd 

Not bug in PHP.

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 02:01:28 2024 UTC