I seem to have a problem when trying to compile php with gd.    

I run this; 

[tyler@stimpy php-4.2.3]$ ./configure --with-mysql --with-apache=../apache_1.3.27 
--enable-track-vars --with-gd=/usr

Then, after the configuration is over with, it tells me this; 

| Something is likely to be messed up here, because the configure    |
| script was not able to detect a simple feature on your platform.   |
| This is often caused by incorrect configuration parameters. Please |
| see the file debug.log for error messages.  

and my debug.log tells me this; 

CONFIGURE:   './configure' '--with-mysql' '--with-apache=../apache_1.3.27' 
'--enable-track-vars' '--with-gd=/usr'
CC:         gcc
CFLAGS:     -g -O2
CPPFLAGS:   
CXX:        
CXXFLAGS:   
INCLUDES:    -I/home/tyler/apache_1.3.27/src/include 
-I/home/tyler/apache_1.3.27/src/os/unix  -I$(top_builddir)/Zend -I/home/tyler/p
hp-4.2.3/ext/mysql/libmysql
LDFLAGS:    
LIBS:       -lgd -lcrypt -lresolv -lm -ldl -lnsl  -lresolv -lcrypt
DLIBS:      
SAPI:       apache
PHP_RPATHS: 
uname -a:   Linux stimpy.nerdie.org 2.4.18-6mdk #1 Fri Mar 15 02:59:08 CET 2002 i686 
unknown

gcc -o conftest -g -O2   conftest.c -lgd -lcrypt -lresolv -lm -ldl -lnsl  -lresolv 
-lcrypt 1>&5
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/../../../libgd.so: undefined reference 
to `uncompress'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/../../../libgd.so: undefined reference 
to `compress'
collect2: ld returned 1 exit status

and when I try to make PHP, it gives me this error: 

Making all in gd
make[2]: Entering directory `/home/tyler/php-4.2.3/ext/gd'
make[3]: Entering directory `/home/tyler/php-4.2.3/ext/gd'
gcc -I. -I/home/tyler/php-4.2.3/ext/gd -I/home/tyler/php-4.2.3/main 
-I/home/tyler/php-4.2.3 -I/home/tyler/apache_1.3.27/src/include 
-I/home/tyler/apache_1.3.27/src/os/unix -I/home/tyler/php-4.2.3/Zend 
-I/home/tyler/php-4.2.3/ext/mysql/libmysql -I/home/tyler/php-4.2.3/ext/xml/expat  
-I/home/tyler/php-4.2.3/TSRM -g -O2  -c gd.c && touch gd.lo
In file included from gd.c:36:
php_gd.h:69: warning: static declaration for `gdImageColorResolve' follows non-static
gd.c:92: conflicting types for `gdIOCtx'
/usr/local/include/gd_io.h:18: previous declaration of `gdIOCtx'
make[3]: *** [gd.lo] Error 1
make[3]: Leaving directory `/home/tyler/php-4.2.3/ext/gd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/tyler/php-4.2.3/ext/gd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/tyler/php-4.2.3/ext'
make: *** [all-recursive] Error 1

Please help!! 

Tyler

Reply via email to