Bug #16683 Updated: gdIOCtx
| From: | sniper@php.net | Date: | Fri, 28 Jun 2002 06:53:27 +0000 |
| Subject: | Bug #16683 Updated: gdIOCtx | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-12326@lists.php.net to get a copy of this message | ||
ID: 16683
Updated by: sniper@php.net
Reported By: achowe@snert.com
-Status: Open
+Status: Feedback
Bug Type: GD related
Operating System: Mac OS X
PHP Version: 4.1.2
New Comment:
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)
Previous Comments:
------------------------------------------------------------------------
[2002-05-17 04:36:27] peter@swis.co.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-04-23 10:44:31] achowe@snert.com
This problem also appears in 4.2.0 just released.
------------------------------------------------------------------------
[2002-04-19 02:53:43] achowe@snert.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-18 16:39:28] 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-18 11:57:34] achowe@snert.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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16683&edit=1