Can't build PHP 5.3.6 with MySQL 5.5.10

[email protected] (Santi Saez)
Newsgroups php.install
Message-ID <[email protected]>
Hello!

I'm trying to build PHP 5.3.6 in a server with MySQL 5.5.10, and I get 
this error:

/usr/include/mysql/mysql/psi/mysql_thread.h:100: error: syntax error 
before "pthread_rwlock_t"
/usr/include/mysql/mysql/psi/mysql_thread.h:100: warning: no semicolon 
at end of struct or union
/usr/include/mysql/mysql/psi/mysql_thread.h:107: error: syntax error 
before '}' token
/usr/include/mysql/mysql/psi/mysql_thread.h: In function 
`inline_mysql_rwlock_init':
/usr/include/mysql/mysql/psi/mysql_thread.h:683: error: dereferencing 
pointer to incomplete type

Full build log is available at: http://pastebin.com/g0kWwzye

This only happens in CentOS-4 box with GCC v3.4.6; I can build PHP 5.3.6 
with MySQL 5.5.10 in CentOS-5 without problems. Anyone knows how fix 
this problem? thanks!!

Cheers,
--
Santi Saez
http://powerstack.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.