Home  >  Article  >  Backend Development  >  Compile and install the php7 expansion msgpack2.0.1 under ubuntu16.04

Compile and install the php7 expansion msgpack2.0.1 under ubuntu16.04

WBOY
WBOYOriginal
2016-08-25 10:37:281331browse

The following error message appears: I forgot all about the C language. I checked the source code of msgpack.c and I don’t know how to solve it. I hope an expert can help me

/data/softwares/php-7.1.0beta3/ext/msgpack-2.0.1/msgpack.c: In function 'ps_srlzr_decode_msgpack':
/data/softwares/php-7.1.0beta3/ext/msgpack-2.0.1/ msgpack.c:161:29: error: storage size of 'var_hash' isn't known
msgpack_unserialize_data_t var_hash;

<code>                         ^</code>

/data/softwares/php-7.1.0beta3/ext/msgpack-2.0.1/msgpack.c: In function 'php_msgpack_unserialize':
/data/softwares/php-7.1.0beta3/ext/msgpack-2.0.1/ msgpack.c:211:29: error: storage size of 'var_hash' isn't known
msgpack_unserialize_data_t var_hash;

<code>                         ^</code>

Makefile:193: recipe for target 'msgpack.lo' failed
make: * [msgpack.lo] Error 1

Reply content:

The following error message appears: I forgot all about the C language. I checked the source code of msgpack.c and I don’t know how to solve it. I hope an expert can help me

/data/softwares/php-7.1.0beta3/ext/msgpack-2.0.1/msgpack.c: In function 'ps_srlzr_decode_msgpack':
/data/softwares/php-7.1.0beta3/ext/msgpack-2.0.1/ msgpack.c:161:29: error: storage size of 'var_hash' isn't known
msgpack_unserialize_data_t var_hash;

<code>                         ^</code>

/data/softwares/php-7.1.0beta3/ext/msgpack-2.0.1/msgpack.c: In function 'php_msgpack_unserialize':
/data/softwares/php-7.1.0beta3/ext/msgpack-2.0.1/ msgpack.c:211:29: error: storage size of 'var_hash' isn't known
msgpack_unserialize_data_t var_hash;

<code>                         ^</code>

Makefile:193: recipe for target 'msgpack.lo' failed
make: * [msgpack.lo] Error 1

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