php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17783 Includes conflicting with bundled gd
Submitted: 2002-06-16 09:41 UTC Modified: 2002-06-28 09:39 UTC
From: msopacua at idg dot nl Assigned:
Status: Closed Package: GD related
PHP Version: 4.0CVS-2002-06-28 OS: Any unix
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: msopacua at idg dot nl
New email:
PHP Version: OS:

 

 [2002-06-16 09:41 UTC] msopacua at idg dot nl
Consider the following:
./configure --with-zlib-dir=/usr/local --with-gd=php

In /usr/local/include:
gd.h installed by the system, and you can't get rid of it.

compilation will fail, if the bundled gd.h defines functions, that aren't in the system supplied gd.h.
(in my case: gdFTStringExtra).

because it will compile with -I/usr/local/include -I/sourcepath/ext/gd/libgd and thus /usr/local/include/gd.h is preferred.

I don't know if this has any issues, but the obvious solution, seems to be to move all includes to <libgd/*.h>
and set -I/sourcepath/ext/gd.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-28 03:50 UTC] sniper@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version 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.
Thank you for the report, and for helping us make PHP better.


 [2002-06-28 07:01 UTC] msopacua at idg dot nl
gcc  -Imain/ -I/home/mdev/cvs/php4/main/ -DPHP_ATOM_INC -I/home/mdev/cvs/php4/include -I/home/mdev/cvs/php4/main -I/home/mdev/cvs/php4 -I/
home/mdev/cvs/php4/Zend -I/usr/local/include -I/usr/local/include/freetype2 -I/home/mdev/cvs/php4/ext/xml/expat  -I/home/mdev/cvs/php4/TSR
M -g -Wall  -c main/internal_functions.c -o main/internal_functions.o  && echo > main/internal_functions.lo
In file included from main/internal_functions.c:40:
/home/mdev/cvs/php4/ext/gd/php_gd.h:33: gd.h: No such file or directory
make: *** [main/internal_functions.lo] Error 1

There's a gd.h in /usr/local/include and in ext/gd/libgd.

Latest cvs co.
Downloading snapshot now, to see if it happens there as well.
 [2002-06-28 07:11 UTC] msopacua at idg dot nl
Same gd.h error on php4-200206280300 snapshot.

-> Updated version
 [2002-06-28 08:36 UTC] sniper@php.net
Try again now. Don't forget to do this: 

 ./cvsclean ; ./buildconf

 [2002-06-28 09:39 UTC] msopacua at idg dot nl
Yep. That's it!
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun May 11 13:01:28 2025 UTC