【发布时间】:2012-03-21 01:28:31
【问题描述】:
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之外,我完全按照。
你能帮忙吗?
【问题讨论】:
-
/Applications/MAMP/Library/include/sqlfront.h似乎导致了错误。那是什么库?我从来没有读过。 -
我也是。我不知道它做了什么。似乎是包装的一部分。
-
这似乎与 iPhone/iPad/Android 编程有关。尝试在构建该模块时从任何环境变量中删除该路径。或者在构建时简单地重命名该目录。
标签: php sql-server makefile configure