|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

I managed to get around this in the first place with the advice of Alex
Akilov. (export CFLAGS="-DHAVE_INT_8_16_32" in bash.) Unfortunately, it
still doesn't quite work. 

Now the compile of php runs through just fine, but when I try to start
Apache, I get:

"Syntax error 224 of /usr/local/apache/conf/httpd.conf:
Cannot load /uar/local/apache/libexec/libphp4.so into server:
/usr/local/apache/
libexec/libphp4.so: undefined symbol: xmlPtrNewContext
/usr/local/apache/bin/apachectl start: httpd could not be started"

This looks to me as a faulty xml-implementation in the php-compile... What
could I do to make it work?

Rgds,

Are

-- 
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