错误:未声明“ __s1_len”(此函数中的首次使用)

时间:2019-10-05 23:56:45

标签: c gcc

我正在尝试编译一个非常旧的PHP版本,并遇到此错误:

/tmp/php-5.0.5/ext/openssl/openssl.c:3198:11: error: expected ';' before '__s1_len'
/tmp/php-5.0.5/ext/openssl/openssl.c:3198:11: error: '__s1_len' undeclared (first use in this function)
/tmp/php-5.0.5/ext/openssl/openssl.c:3198:11: error: '__s2_len' undeclared (first use in this function)
/tmp/php-5.0.5/ext/openssl/openssl.c:3198:11: error: expected expression before 'const'
/tmp/php-5.0.5/ext/openssl/openssl.c:3198:11: error: expected expression before 'const'
/tmp/php-5.0.5/ext/openssl/openssl.c:3198:11: error: expected expression before 'const'
/tmp/php-5.0.5/ext/openssl/openssl.c:3198:11: error: expected expression before 'const'
/tmp/php-5.0.5/ext/openssl/openssl.c:3198:11: error: expected expression before 'const'
/tmp/php-5.0.5/ext/openssl/openssl.c:3198:11: error: expected expression before 'const'
/tmp/php-5.0.5/ext/openssl/openssl.c:3198:11: error: expected expression before 'const'
/tmp/php-5.0.5/ext/openssl/openssl.c:3198:11: error: expected expression before 'const'
/tmp/php-5.0.5/ext/openssl/openssl.c:3198:11: error: expected expression before 'const'
/tmp/php-5.0.5/ext/openssl/openssl.c:3198:11: error: expected expression before 'const'
/tmp/php-5.0.5/ext/openssl/openssl.c:3198:11: error: expected expression before 'const'
/tmp/php-5.0.5/ext/openssl/openssl.c:3198:11: error: expected expression before 'const'

第3198行:

match = strcmp(cnmatch, buf) == 0;

那条线对我来说很好吗?我也没有在文件中的任何地方看到__s1_len。不在3198行或与此相关的任何其他行上。

有什么想法吗?

0 个答案:

没有答案