FreeBSD: I can't compile PHP -- help!

df-sean

Verified User
Joined
Feb 8, 2007
Messages
47
I've upgraded a server from FreeBSD 6.2 to 7.3 and updated DirectAdmin.

Since then, I've spent several hours trying to get custombuild to compile everything -- but PHP fails consistently.

Here's the output:

usr/local/directadmin/custombuild/php-5.3.3/ext/mysqli/mysqli.c -o ext/mysqli/mysqli.lo
In file included from /usr/local/directadmin/custombuild/php-5.3.3/ext/mysqli/php_mysqli_structs.h:57,
from /usr/local/directadmin/custombuild/php-5.3.3/ext/mysqli/mysqli.c:33:
/usr/local/mysql/include/mysql/my_global.h:626:25: error: my_compiler.h: No such file or directory
In file included from /usr/local/directadmin/custombuild/php-5.3.3/ext/mysqli/php_mysqli_structs.h:57,
from /usr/local/directadmin/custombuild/php-5.3.3/ext/mysqli/mysqli.c:33:
/usr/local/mysql/include/mysql/my_global.h:1012: error: duplicate 'unsigned'
/usr/local/mysql/include/mysql/my_global.h:1012: warning: useless type name in empty declaration
*** Error code 1
1 error
-e \n*** The make has failed, do you want to try to make again? (y,n):




Is there any help you can give me?
 
Does php 5.2 fail as well?

Try:

cd /usr/local/directadmin/custombuild
./build clean
./build php n

Does it still fail?
 
PHP 5.2 works. ./build clean; ./build php n fails everytime with the error above.
 
Back
Top