修改PHP 源文件 ext/sybase/php_sybase_db.c
添加如下行:
#include
__const unsigned short int *__ctype_b;
__const __int32_t* __ctype_tolower;
__const __int32_t* __ctype_toupper;
__const __int32_t* __ctype_tolower;
__const __int32_t* __ctype_toupper;
void ctSetup()
{
__ctype_b = *(__ctype_b_loc());
__ctype_toupper = *(__ctype_toupper_loc());
__ctype_tolower = *(__ctype_tolower_loc());
}
{
__ctype_b = *(__ctype_b_loc());
__ctype_toupper = *(__ctype_toupper_loc());
__ctype_tolower = *(__ctype_tolower_loc());
}
在如下位置的上面
if (dbinit()==FAIL) {
加入
ctSetup();
解决 undefined reference to `__ctype_b' 的错误。
没有评论:
发表评论