I am trying to compile PHP on Mandrake 7.2 and am having some problems.
./configure --with-apxs --with-mysql --with-gd
Configure goes fine. The error pops up during make. It looks like a library problem. Any suggestions?
<-- Cut From xterm -->
make[4]: Entering directory /home/chriss/php-4.0.3pl1/ext/mysql/libmysql'
/bin/sh /home/chriss/php-4.0.3pl1/libtool --silent --mode=compile gcc -I. -I/home/chriss/php-4.0.3pl1/ext/mysql/libmysql -I/home/chriss/php-4.0.3pl1 -I/home/chriss/php-4.0.3pl1/main -I/usr/include/apache -I/home/chriss/php-4.0.3pl1/Zend -I/home/chriss/php-4.0.3pl1 -I/home/chriss/php-4.0.3pl1/ext/mysql/libmysql -I/home/chriss/php-4.0.3pl1/ext/xml/expat/xmltok -I/home/chriss/php-4.0.3pl1/ext/xml/expat/xmlparse -I/home/chriss/php-4.0.3pl1/TSRM -DEAPI -DXML_BYTE_ORDER=12 -g -O2 -c libmysql.c
In file included from libmysql.c:11:
global.h:194: warning: redefinition ofuint'
/usr/include/sys/types.h:132: warning: uint' previously declared here
global.h:195: warning: redefinition ofushort'
/usr/include/sys/types.h:131: warning: ushort' previously declared here
In file included from libmysql.c:14:
m_string.h:165: parse error beforeextension'
m_string.h:165: parse error before &&'
make[4]: *** [libmysql.lo] Error 1
make[4]: Leaving directory/home/chriss/php-4.0.3pl1/ext/mysql/libmysql'
make[3]: [all-recursive] Error 1
make[3]: Leaving directory /home/chriss/php-4.0.3pl1/ext/mysql/libmysql'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory/home/chriss/php-4.0.3pl1/ext/mysql'
make[1]: [all-recursive] Error 1
make[1]: Leaving directory `/home/chriss/php-4.0.3pl1/ext'
make: *** [all-recursive] Error 1
<-- End Cut -->