Home >Backend Development >PHP Tutorial >Compilation error when compiling and installing php-protobuf under centos

Compilation error when compiling and installing php-protobuf under centos

WBOY
WBOYOriginal
2016-10-10 11:56:231632browse

The resources are downloaded from https://github.com/allegro/ph...;
Compiled under Centos:

<code>/usr/local/php/bin/phpize;
./configure --with-php-config=/usr/local/php/bin/php-config;
make;</code>

An error is reported when the execution reaches this point!

<code>/usr/local/src/php-protobuf-master/protobuf.c: 在函数‘pb_parse_field_value’中:
/usr/local/src/php-protobuf-master/protobuf.c:1044: 错误:‘tsrm_ls’未声明(在此函数内第一次使用)
/usr/local/src/php-protobuf-master/protobuf.c:1044: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其
/usr/local/src/php-protobuf-master/protobuf.c:1044: 错误:所在的函数内也只报告一次。)
/usr/local/src/php-protobuf-master/protobuf.c: 在函数‘pb_serialize_packed_field’中:
/usr/local/src/php-protobuf-master/protobuf.c:1154: 错误:‘tsrm_ls’未声明(在此函数内第一次使用)
make: *** [protobuf.lo] 错误 1</code>

Before compiling and installing this https://github.com/google/pro...the one here has been installed successfully;

Reply content:

The resources are downloaded from https://github.com/allegro/ph...;
Compiled under Centos:

<code>/usr/local/php/bin/phpize;
./configure --with-php-config=/usr/local/php/bin/php-config;
make;</code>

An error is reported when the execution reaches this point!

<code>/usr/local/src/php-protobuf-master/protobuf.c: 在函数‘pb_parse_field_value’中:
/usr/local/src/php-protobuf-master/protobuf.c:1044: 错误:‘tsrm_ls’未声明(在此函数内第一次使用)
/usr/local/src/php-protobuf-master/protobuf.c:1044: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其
/usr/local/src/php-protobuf-master/protobuf.c:1044: 错误:所在的函数内也只报告一次。)
/usr/local/src/php-protobuf-master/protobuf.c: 在函数‘pb_serialize_packed_field’中:
/usr/local/src/php-protobuf-master/protobuf.c:1154: 错误:‘tsrm_ls’未声明(在此函数内第一次使用)
make: *** [protobuf.lo] 错误 1</code>

Before compiling and installing this https://github.com/google/pro...the one here has been installed successfully;

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn