ID: 16683
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: GD related
Operating System: Mac OS X
PHP Version: 4.1.2
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2002-04-23 10:44:31] [EMAIL PROTECTED]
This problem also appears in 4.2.0 just released.
------------------------------------------------------------------------
[2002-04-19 02:53:43] [EMAIL PROTECTED]
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] [EMAIL PROTECTED]
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] [EMAIL PROTECTED]
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