首頁 >後端開發 >php教程 >在ubuntu16.04下編譯安裝php7的擴張msgpack2.0.1

在ubuntu16.04下編譯安裝php7的擴張msgpack2.0.1

WBOY
WBOY原創
2016-08-25 10:37:281372瀏覽

提示如下錯誤:C語言忘光了,查看了msgpack.c的源碼 不知道如果處理,望高手幫助

/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/softwares/php-7.1.0beta3/ext/msgpack-2.0.1/softwares/php-7.1.0beta3/ext/msgpack-2.0.1/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

回覆內容:

提示如下錯誤:C語言忘光了,查看了msgpack.c的源碼 不知道如果處理,望高手幫助

/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/softwares/php-7.1.0beta3/ext/msgpack-2.0.1/softwares/php-7.1.0beta3/ext/msgpack-2.0.1/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

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn