Problems compiling PHP 4.0.4pl1

From: Date: Fri, 09 Feb 2001 11:25:43 +0000
Subject: Problems compiling PHP 4.0.4pl1
Groups: php.install 
Request: Send a blank email to php-install+get-2001@lists.php.net to get a copy of this message
System: RedHat7, kernel 2.4.1, mysql 3.23.22, apache 1.3.17, libxml 2.3.0-1/devel2.3.0-1 Trying to compile php 4.0.4pl1 with the following statement: sh configure --enable-trans-sid --with-mysql --with-magic-quotes --with-apxs --with-dom The configure script runs through. On make, the compiler exits with the following error: "In file included from libmysql.c:10: global.h:228: warning: redefinition of 'uint' /usr/include/sys/types.h :146: warning: 'uint' previously declared here global.h:229: warning: redefinition of 'ushort' /usr/include/sys/types.h :145: warning: 'ushort' previously declared here In file included from libmysql.c:13 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 '/tmp/php-4.0.4pl1/ext/mysql/libmysql' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory '/tmp/php-4.0.4pl1/ext/mysql/libmysql' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory '/tmp/php-4.0.4pl1/ext/mysql' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/tmp/php-4.0.4pl1/ext' make: *** [all-recursive] Error 1 The debug.log file says: CONFIGURE: 'configure' '--with-mysql' '--with-apxs=/usr/local/apache/bin/apxs' '--enable-trans-sid' '--enable-magic-quotes' '--with-dom' CC: gcc CFLAGS: -g -02 CPPFLAGS: -DLINUX=22 -DUSE_HREGEX -DUSE_EXPAT -DNO_DL_NEEDED CXX: CXXFLAGS: INCLUDES: -I/usr/local/apache/include -I$(top_builddir)/Zend -I/tmp/php-4.0.4pl1/ext/mysql/libmysql LDFLAGS: LIBS: -lz -lxml -lresolv -lm -ldl -lcrypt -lnsl -lresolv -Lyes/lib -lz DLIBS: SAPI: apache PHP_RPATHS: uname -a: Linux foo.bar.org 2.4.1 #1 SMP Fri Feb 9 08:12:35 CET 2001 i686 unknown gcc -o conftest -g -02 -DLINUX=22 -DUSE_HREGEX -DUSE_EXPAT -DNO_DL_NEEDED conftest.c -lz -lxml -lresolv -lm -ldl -lcrypt -lnsl -lresolv -Lyes/lib -lz 1>&5 /usr/bin/ld: cannot find -lxml collect2: ld returned 1 exit status What is wrong? Rgds, Are Westby

« previous php.install (#2001) next »