I've been searching the web for solutions to this and have seen that
several people on various architectures have had this problem, and it's
been put on bugs.php.net and marked as solved (with no solution posted --
just that whoever posted the bug stopped checking the site).

So:

I'm trying to build php-4.2.2 on a linux 2.4.19 (UltraSPARC) system, which
has glibc-2.2.5/gcc-3.1.1 and mysql-3.23.51 on it, and I get the following
error during the build:

(I've included perhaps more than is necessary in the interest of being
thorough)

==========

Making all in libmysql
make[3]: Entering directory
`/usr/src/net/php/tmp/php-4.2.2/ext/mysql/libmysql'
make[4]: Entering directory
`/usr/src/net/php/tmp/php-4.2.2/ext/mysql/libmysql'
gcc -I. -I/usr/src/net/php/tmp/php-4.2.2/ext/mysql/libmysql
-I/usr/src/net/php/tmp/php-4.2.2/main
-I/usr/src/net/php/tmp/php-4.2.2
-I/usr/src/net/php/tmp/php-4.2.2/Zend
-I/usr/include/freetype2/freetype
-I/usr/src/net/php/tmp/php-4.2.2/ext/mysql/libmysql
-I/usr/src/net/php/tmp/php-4.2.2/TSRM -O3 -mcpu=ultrasparc
-c libmysql.c && touch libmysql.lo
In file included from libmysql.c:5:
global.h:256: warning: redefinition of `uint'
/usr/include/sys/types.h:152: warning: `uint' previously declared here
global.h:257: warning: redefinition of `ushort'
/usr/include/sys/types.h:151: warning: `ushort' previously declared here
global.h:258: warning: redefinition of `ulong'
/usr/include/sys/types.h:150: warning: `ulong' 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 '&&' token
libmysql.c: In function `net_field_length_ll':
libmysql.c:397: warning: left shift count >= width of type
make[4]: *** [libmysql.lo] Error 1
make[4]: Leaving directory
`/usr/src/net/php/tmp/php-4.2.2/ext/mysql/libmysql'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/usr/src/net/php/tmp/php-4.2.2/ext/mysql/libmysql'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/usr/src/net/php/tmp/php-4.2.2/ext/mysql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/usr/src/net/php/tmp/php-4.2.2/ext'
make: *** [all-recursive] Error 1

==========

Any hints on this?

Thanks,
--
Elliott


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to