I ran into the same problem with 4.0.5
I solved it by creating libgd.a and pointing the configure script to the
directory containing it.

the gd 2.0.1 readme says:
gd lets you create PNG or JPEG images on the fly. To use gd in your
   program, include the file gd.h, and link with the libgd.a library
   produced by "make libgd.a", under Unix. Under other operating systems
   you will add gd.c to your own project.

just go into your gd dir and "make libgd.a", then reconfigure your php
install like the following:

./configure 
--with-apxs=/usr/local/apache/bin/apxs 
--enable-track-vars 
--with-config-path-file=/etc 
--with-mysql=/usr/local/mysql 
--with-gd=/path/to/libgd.a/dir
--with-jpeg-dir=/usr/lib 
--with-xpm-dir=/usr/X11R6



-- 


Jani Taskinen wrote:
> 
> Try checking the mailing list archives. This has been answered
> at least a dozen time now.
> 
> --Jani
> 
> On Mon, 25 Jun 2001, Kelvin Luck wrote:
> 
> >Hi,
> >I am just trying to install php 4.0.6 on redhat 7.1 so that I can use the
> >new GD library functions. I first downloaded and installed the newest GD
> >libraries (2.0.1 beta) and installed them. I presume that this worked OK
> >because I didn't get any errors. I also made sure I removed the rpm of an
> >earlier version of the gd libraries from the computer to avoid conflicts.
> >I installed GD ("make install") and it seemed to go OK, no errors reported
> >and seemed to copy the file to the right place...
> >Then I configured php:
> >
> >./configure \
> >--with-apxs=/usr/local/apache/bin/apxs \
> >--enable-track-vars \
> >--with-config-path-file=/etc \
> >--with-mysql=/usr/local/mysql \
> >--with-gd \
> >--with-jpeg-dir=/usr/lib \
> >--with-xpm-dir=/usr/X11R6
> >
> >I found that I needed the last two arguments so that configure didn't throw
> >an error, which it doesn't. But when I try and make php I get this error:
> >
> >.
> >.
> >.
> >gd.c:95: conflicting types for 'gdIOCtx'
> >/usr/include/gd_io.h:previous declaration of 'gdIOCtx'
> >make[3]: *** [gd.lo] Error 1
> >.
> >.
> >.
> >
> >That error causes make to stop and prevents me from installing php... Has
> >anyone got any ideas on how to avoid this? If I compile and leave
> >out --with-gd then it makes fine... But I'm upgrading because I want to use
> >the new image functions!
> >Any help or suggestions would be much appreciated,
> >tia,
> >Kelvin.
> >
> >
> >
> 
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

--------------------------------------------------
Sign up for your free AngelHaven E-mail Today...
Join the growing community, http://www.AngelHaven.com 
Come Cruisin with the Angels http://www.AngelCruise.com

-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to