Can't build PHP 5.3.6 with MySQL 5.5.10
| From: | Santi Saez | Date: | Wed, 23 Mar 2011 00:15:56 +0000 |
| Subject: | Can't build PHP 5.3.6 with MySQL 5.5.10 | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-20035@lists.php.net to get a copy of this message | ||
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