php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13119 Compile error with GDIOCTX
Submitted: 2001-09-04 01:32 UTC Modified: 2001-10-24 06:07 UTC
From: n2wog at usa dot net Assigned:
Status: Closed Package: GD related
PHP Version: 4.0.6 OS: Linux 2.4.9
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:
MUST BE VALID
Solve the problem:
33 + 13 = ?
Subscribe to this entry?

 
 [2001-09-04 01:32 UTC] n2wog at usa dot net
I ran the following configure script:

./configure  --with-apxs=/usr/local/apache/bin/apxs --enable-dbase --enable-ftp --with-gd=shared,/usr/local --with-ldap=/usr/local --with-mysql --with-mm --with-openssl --enable-sockets --with-zlib --enable-bcmath

And saw this when it tried to comple the GD portion. Sniper at PHP snapped at the last guy who submitted the bug about not placing the GD install base in the command line options... well, I did and it *still* gave me the error. So instead of snapping at the userbase and marking this bug as *user error* try giving constructive feedback. If it *was* user error, then why send them to the CVS tree?

make[3]: Entering directory `/usr/local/src/php-4.0.6/ext/gd'
/bin/sh /usr/local/src/php-4.0.6/libtool --silent --mode=compile gcc  -I. -I/usr/local/src/php-4.0.6/ext/gd -I/usr/local/src/php-4.0.6/main -I/usr/local/src/php-4.0.6 -I/usr/local/apache/include -I/usr/local/src/php-4.0.6/Zend -I/usr/local/ssl/include -I/usr/local/include -I/usr/local/src/php-4.0.6/ext/mysql/libmysql -I/usr/local/src/php-4.0.6/ext/xml/expat/xmltok -I/usr/local/src/php-4.0.6/ext/xml/expat/xmlparse -I/usr/local/src/php-4.0.6/TSRM  -DLINUX=2 -DMOD_SSL=207101 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2  -c gd.c && touch gd.slo
gd.c:95: conflicting types for `gdIOCtx'
/usr/local/include/gd_io.h:18: previous declaration of `gdIOCtx'
make[3]: *** [gd.slo] Error 1
make[3]: Leaving directory `/usr/local/src/php-4.0.6/ext/gd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/php-4.0.6/ext/gd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/php-4.0.6/ext'
make: *** [all-recursive] Error 1


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-04 20:25 UTC] sniper@php.net
Have you tried to compile it as not shared?
Have you deleted config.cache before reconfigure?
Have you updated your gd library recently?
Do you have different versions of GD library installed
in your system?

--Jani

 [2001-09-04 20:25 UTC] sniper@php.net
I forgot: What version of GD library you think you're compiling with?

 [2001-09-06 20:41 UTC] n2wog at usa dot net
Have you tried to compile it as not shared?
yes

Have you deleted config.cache before reconfigure?
yes (make distclean)

Have you updated your gd library recently?
no

Do you have different versions of GD library installed
in your system?
no


 [2001-09-06 20:54 UTC] n2wog at usa dot net
I forgot: What version of GD library you think you're compiling with?

older (1.8.3)

Upgraded to 1.8.7 and everything then was fine. Maybe that ought to be in the docs?
 [2001-10-24 06:07 UTC] sniper@php.net
I can not reproduce this with GD 1.8.3 and latest CVS.

--Jani


 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Oct 19 15:03:35 2021 UTC