试图制作PHP mssql但返回致命错误

时间:2012-03-20 17:19:51

标签: php sql-server makefile configure

make
/bin/sh /Users/myusername/Downloads/php-5.3.5/ext/mssql/libtool --mode=compile cc  -I. -I/Users/myusername/Downloads/php-5.3.5/ext/mssql -DPHP_ATOM_INC -I/Users/myusername/Downloads/php-5.3.5/ext/mssql/include -I/Users/myusername/Downloads/php-5.3.5/ext/mssql/main -I/Users/myusername/Downloads/php-5.3.5/ext/mssql -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/Applications/MAMP/Library/include  -DHAVE_CONFIG_H  -g -O2   -c /Users/myusername/Downloads/php-5.3.5/ext/mssql/php_mssql.c -o php_mssql.lo 
mkdir .libs
 cc -I. -I/Users/myusername/Downloads/php-5.3.5/ext/mssql -DPHP_ATOM_INC -I/Users/myusername/Downloads/php-5.3.5/ext/mssql/include -I/Users/myusername/Downloads/php-5.3.5/ext/mssql/main -I/Users/myusername/Downloads/php-5.3.5/ext/mssql -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/Applications/MAMP/Library/include -DHAVE_CONFIG_H -g -O2 -c /Users/myusername/Downloads/php-5.3.5/ext/mssql/php_mssql.c  -fno-common -DPIC -o .libs/php_mssql.o
In file included from /Users/myusername/Downloads/php-5.3.5/ext/mssql/php_mssql.c:33:
/Users/myusername/Downloads/php-5.3.5/ext/mssql/php_mssql.h:68: error: redefinition of typedef ‘LPBYTE’
/Applications/MAMP/Library/include/sqlfront.h:35: error: previous declaration of ‘LPBYTE’ was here
/Users/myusername/Downloads/php-5.3.5/ext/mssql/php_mssql.c: In function ‘php_mssql_do_connect’:
/Users/myusername/Downloads/php-5.3.5/ext/mssql/php_mssql.c:760: warning: cast from pointer to integer of different size
/Users/myusername/Downloads/php-5.3.5/ext/mssql/php_mssql.c: In function ‘php_mssql_get_column_content_without_type’:
/Users/myusername/Downloads/php-5.3.5/ext/mssql/php_mssql.c:1113: warning: passing argument 1 of ‘spprintf’ from incompatible pointer type
make: *** [php_mssql.lo] Error 1

我在http://www.tumblr.com/tagged/mssql+mamp+php+mac+osx的第3步。 除了我为此下载了http://museum.php.net/php5/php-5.3.5.tar.gz之外,我完全遵循了。

你能帮忙吗?

1 个答案:

答案 0 :(得分:2)