php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16683 gdIOCtx
Submitted: 2002-04-18 11:57 UTC Modified: 2002-08-28 12:29 UTC
From: achowe at snert dot com Assigned:
Status: Closed Package: GD related
PHP Version: 4.1.2 OS: Mac OS X
Private report: No CVE-ID: None
 [2002-04-18 11:57 UTC] achowe at snert dot com
The types of "gdIOCtx" in 

    /usr/local/include/gd_io.h

and 

    /usr/local/src/php-4.1.2/ext/gd/gd.c     (line 92)

Are in no way similar.

This is similar to 14271.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-18 16:39 UTC] sniper@php.net
They're not supposed to be same..
How did you configure PHP ? How did you configure / compile the GD library? Do you have different versions of GD library
installed?

 [2002-04-19 02:53 UTC] achowe at snert dot com
Sorry I was in a rush. 

I have install GD 1.8.4 from source archive into /usr/local/.  There is no other GD installed. As for PHP, it was configured as follows:

./configure \
--enable-bcmath \
--enable-ftp \
--enable-track-vars \
--with-apxs \
--with-gd \
--with-mm \
--with-openssl \
--with-snmp \
--with-zlib \
--without-tsrm-pthreads
 [2002-04-23 10:44 UTC] achowe at snert dot com
This problem also appears in 4.2.0 just released.
 [2002-05-17 04:36 UTC] peter at swis dot co dot uk
I've just finished installing gd-1.8.4 and php 4.2.0 on Redhat linux. After ecountering <<most>> of the install problems between PHP and GD (including the typedef for gdIOCtx), I realised that the problem appears to be that the configuration header file generated by the php 'configure' script is not actually included in to the C source... So here's what I did:

- On my system, configure -> main/php_config.h.
- I created a soft link to this file called main/config.h.
- I then edited the file 'config_vars.mk' and under CPP_FLAGS i added -DHAVE_CONFIG_H=1. This extra flag tells the compiler to include the 'config.h' in the C files which have the lines #ifdef HAVE_CONFIG_H;#include "config.h";#endif of which there are quite a number, including gd.c!
- After all that it compiled *perfectly*.

I look forward to hearing whether this is a problem with the configure script, or whether there is a configuration setting which can be changed to rectify this error.
 [2002-06-28 02:53 UTC] sniper@php.net
With PHP 4.3.0-dev you can compile with the bundled
GD library using --with-gd=php option.
Try this snapshot:

http://snaps.php.net/php4-latest.tar.gz

Please try this and also try your original configure line.
And if you get some compile errors, please let us know WHAT 
the errors are. (with both)
 
 [2002-08-28 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2002-08-28 04:04 UTC] achowe at snert dot com
I have since moved on to using GD 2.0.1 beta and PHP 4.2.0 on Mac OS X.  GD 2.0.1 does not appear to suffer from the problem, can be built .so, and once you find the magic invocation for building PHP 4.2.0 for Mac OS X (plus some minor patches for other PHP modules), all works happily.

I'm happy to let this one go now that I have a working solution.
 [2002-08-28 12:29 UTC] sniper@php.net
Closing this then.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 23:01:29 2024 UTC