I am trying to install PHP 4.0.5 on previous version of php 4.01 on cobalt raq 
4server. we are getting following error
<cut and paste from linux terminal>
______________________________
Making all in mysql
make[2]: Entering directory `/home/src/php-4.0.5/ext/mysql'
Making all in libmysql
make[3]: Entering directory `/home/src/php-4.0.5/ext/mysql/libmysql'
make[4]: Entering directory `/home/src/php-4.0.5/ext/mysql/libmysql'
/bin/sh /home/src/php-4.0.5/libtool --silent --mode=compile gcc  -I. 
-I/home/src/php-4.0.5/ext/mysql/libmysql -I/home/src/php-4.0.5/main 
-I/home/src/php-4.0.5 -I/usr/include/apache -I/home/src/php-4.0.5/Zend 
-I/usr/include/freetype -I/usr/include/imap -I/usr/interbase/include 
-I/home/src/php-4.0.5/ext/mysql/libmysql -I/home/src/php-4.0.5/ext/xml/expat/xmltok 
-I/home/src/php-4.0.5/ext/xml/expat/xmlparse -I/home/src/php-4.0.5/TSRM  -DLINUX=2 
-DMOD_SSL=206104 -DMOD_PERL -DUSE_PERL_SSI -Dbool=char -DHAS_BOOL -DEAPI 
-DBIG_SECURITY_HOLE -DCOBALT_RAQ_LED -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2  -c 
libmysql.c
In file included from libmysql.c:9:
global.h:240: warning: redefinition of `uint'
/usr/include/sys/types.h:131: warning: `uint' previously declared here
global.h:241: warning: redefinition of `ushort'
/usr/include/sys/types.h:130: warning: `ushort' previously declared here
In file included from libmysql.c:12:
m_string.h:180: parse error before `__extension__'
m_string.h:180: parse error before `&&'
make[4]: *** [libmysql.lo] Error 1
make[4]: Leaving directory `/home/src/php-4.0.5/ext/mysql/libmysql'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/src/php-4.0.5/ext/mysql/libmysql'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/src/php-4.0.5/ext/mysql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/src/php-4.0.5/ext'
make: *** [all-recursive] Error 1
______________________________



This is the copy of debug.php
========================
CONFIGURE:   './configure' '--prefix=/usr' '--with-apxs=/usr/sbin/apxs' '--with-gd' 
'--enable-safe-mode' '--with-config-file-path=/etc/httpd' '--with-mysql' 
'--with-exec-dir=/usr/bin' '--enable-magic-quotes' '--with-regex=system' 
'--with-ttf=/usr/lib/libttf.so' '--enable-track-vars' '--enable-xml' '--disable-debug' 
'--with-interbase=shared' '--with-pgsql=shared' '--with-ldap' '--with-imap' 
'--enable-sockets'
CC:         gcc
CFLAGS:     -g -O2
CPPFLAGS:    -DLINUX=2 -DMOD_SSL=206104 -DMOD_PERL -DUSE_PERL_SSI -Dbool=char 
-DHAS_BOOL -DEAPI -DBIG_SECURITY_HOLE -DCOBALT_RAQ_LED -DSUPPORT_UTF8
CXX:        
CXXFLAGS:   
INCLUDES:    -I/usr/include/apache  -I$(top_builddir)/Zend -I/usr/include/freetype 
-I/usr/include/imap -I/usr/interbase/include -I/home/src/php-4.0.5/ext/mysql/libmysql
LDFLAGS:    
LIBS:       -lldap -llber -lttf -lgd -lresolv -lm -ldl -lcrypt -lnsl  -lresolv
DLIBS:      -lc-client 
SAPI:       apache
PHP_RPATHS: 
uname -a:   Linux www.hikanoo.com 2.2.14C11 #2 Wed Jun 28 00:55:51 PDT 2000 i586 
unknown

gcc -o conftest -g -O2  -DLINUX=2 -DMOD_SSL=206104 -DMOD_PERL -DUSE_PERL_SSI 
-Dbool=char -DHAS_BOOL -DEAPI -DBIG_SECURITY_HOLE -DCOBALT_RAQ_LED -DSUPPORT_UTF8  
conftest.c -lldap -llber -lttf -lgd -lresolv -lm -ldl -lcrypt -lnsl  -lresolv 1>&5
/usr/bin/ld: cannot find -lgd
collect2: ld returned 1 exit status
===================================

regards,
sandeep
________________________________
Indianic Infotech Limited
91-79-6404208/09/10
________________________________

Reply via email to