在运行make命令编译php-zbarcode一直报下面的错误,网上没有找到相关信息,请求帮助。
/bin/sh /vagrant/test/php-zbarcode/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick -I. -I/vagrant/test/php-zbarcode -DPHP_ATOM_INC -I/vagrant/test/php-zbarcode/include -I/vagrant/test/php-zbarcode/main -I/vagrant/test/php-zbarcode -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /vagrant/test/php-zbarcode/zbarcode.c -o zbarcode.lo
cc -fopenmp -I/usr/include/ImageMagick -I. -I/vagrant/test/php-zbarcode -DPHP_ATOM_INC -I/vagrant/test/php-zbarcode/include -I/vagrant/test/php-zbarcode/main -I/vagrant/test/php-zbarcode -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /vagrant/test/php-zbarcode/zbarcode.c -fPIC -DPIC -o .libs/zbarcode.o
In file included from /usr/local/php/include/php/main/php.h:35,
from /vagrant/test/php-zbarcode/php_zbarcode.h:41,
from /vagrant/test/php-zbarcode/zbarcode.c:19:
/usr/local/php/include/php/Zend/zend.h:194:1: warning: "restrict" redefined
In file included from /vagrant/test/php-zbarcode/php_zbarcode.h:38,
from /vagrant/test/php-zbarcode/zbarcode.c:19:
/usr/include/ImageMagick/wand/MagickWand.h:40:1: warning: this is the location of the previous definition
/vagrant/test/php-zbarcode/zbarcode.c: In function ‘zim_zbarcodeimage___construct’:
/vagrant/test/php-zbarcode/zbarcode.c:120: error: ‘zend_string’ undeclared (first use in this function)
/vagrant/test/php-zbarcode/zbarcode.c:120: error: (Each undeclared identifier is reported only once
/vagrant/test/php-zbarcode/zbarcode.c:120: error: for each function it appears in.)
/vagrant/test/php-zbarcode/zbarcode.c:120: error: ‘filename’ undeclared (first use in this function)
/vagrant/test/php-zbarcode/zbarcode.c:125: error: expected ‘;’ before ‘Z_PARAM_OPTIONAL’
/vagrant/test/php-zbarcode/zbarcode.c:143: warning: passing argument 1 of ‘php_zbarcode_image_fetch_object’ makes pointer from integer without a cast
/vagrant/test/php-zbarcode/zbarcode.c:57: note: expected ‘struct zend_object *’ but argument is of type ‘int’
/vagrant/test/php-zbarcode/zbarcode.c: In function ‘zim_zbarcodeimage_read’:
/vagrant/test/php-zbarcode/zbarcode.c:159: error: ‘zend_string’ undeclared (first use in this function)
/vagrant/test/php-zbarcode/zbarcode.c:159: error: ‘filename’ undeclared (first use in this function)
/vagrant/test/php-zbarcode/zbarcode.c:164: error: expected ‘;’ before ‘Z_PARAM_STR’
/vagrant/test/php-zbarcode/zbarcode.c:178: warning: passing argument 1 of ‘php_zbarcode_image_fetch_object’ makes pointer from integer without a cast
/vagrant/test/php-zbarcode/zbarcode.c:57: note: expected ‘struct zend_object *’ but argument is of type ‘int’
/vagrant/test/php-zbarcode/zbarcode.c: In function ‘zim_zbarcodeimage_clear’:
/vagrant/test/php-zbarcode/zbarcode.c:199: warning: passing argument 1 of ‘php_zbarcode_image_fetch_object’ makes pointer from integer without a cast
/vagrant/test/php-zbarcode/zbarcode.c:57: note: expected ‘struct zend_object *’ but argument is of type ‘int’
/vagrant/test/php-zbarcode/zbarcode.c: In function ‘zim_zbarcodeimage_count’:
/vagrant/test/php-zbarcode/zbarcode.c:217: warning: passing argument 1 of ‘php_zbarcode_image_fetch_object’ makes pointer from integer without a cast
/vagrant/test/php-zbarcode/zbarcode.c:57: note: expected ‘struct zend_object *’ but argument is of type ‘int’
/vagrant/test/php-zbarcode/zbarcode.c:291:55: error: macro "add_assoc_string" requires 4 arguments, but only 3 given
/vagrant/test/php-zbarcode/zbarcode.c: In function ‘s_php_zbarcode_scan_page’:
/vagrant/test/php-zbarcode/zbarcode.c:291: error: ‘add_assoc_string’ undeclared (first use in this function)
/vagrant/test/php-zbarcode/zbarcode.c:292:84: error: macro "add_assoc_string" requires 4 arguments, but only 3 given
/vagrant/test/php-zbarcode/zbarcode.c: In function ‘zim_zbarcodescanner_scan’:
/vagrant/test/php-zbarcode/zbarcode.c:336: error: expected ‘;’ before ‘Z_PARAM_ZVAL’
/vagrant/test/php-zbarcode/zbarcode.c:354: warning: passing argument 1 of ‘php_zbarcode_scanner_fetch_object’ makes pointer from integer without a cast
/vagrant/test/php-zbarcode/zbarcode.c:62: note: expected ‘struct zend_object *’ but argument is of type ‘int’
/vagrant/test/php-zbarcode/zbarcode.c:359: warning: passing argument 1 of ‘php_zbarcode_image_fetch_object’ makes pointer from integer without a cast
/vagrant/test/php-zbarcode/zbarcode.c:57: note: expected ‘struct zend_object *’ but argument is of type ‘int’
/vagrant/test/php-zbarcode/zbarcode.c: In function ‘zim_zbarcodescanner_setconfig’:
/vagrant/test/php-zbarcode/zbarcode.c:538: error: expected ‘;’ before ‘Z_PARAM_LONG’
/vagrant/test/php-zbarcode/zbarcode.c:544: warning: passing argument 1 of ‘php_zbarcode_scanner_fetch_object’ makes pointer from integer without a cast
/vagrant/test/php-zbarcode/zbarcode.c:62: note: expected ‘struct zend_object *’ but argument is of type ‘int’
/vagrant/test/php-zbarcode/zbarcode.c: In function ‘php_zbarcode_object_new’:
/vagrant/test/php-zbarcode/zbarcode.c:673: error: ‘zend_object’ has no member named ‘handlers’
/vagrant/test/php-zbarcode/zbarcode.c: In function ‘php_zbarcode_scanner_object_new’:
/vagrant/test/php-zbarcode/zbarcode.c:690: error: ‘zend_object’ has no member named ‘handlers’
/vagrant/test/php-zbarcode/zbarcode.c: In function ‘php_zbarcode_image_object_new’:
/vagrant/test/php-zbarcode/zbarcode.c:707: error: ‘zend_object’ has no member named ‘handlers’
/vagrant/test/php-zbarcode/zbarcode.c: In function ‘zm_startup_zbarcode’:
/vagrant/test/php-zbarcode/zbarcode.c:727: error: too few arguments to function ‘zend_register_internal_class_ex’
/vagrant/test/php-zbarcode/zbarcode.c:734: warning: assignment from incompatible pointer type
/vagrant/test/php-zbarcode/zbarcode.c:736: error: ‘zend_object_handlers’ has no member named ‘free_obj’
/vagrant/test/php-zbarcode/zbarcode.c:737: error: ‘zend_object_handlers’ has no member named ‘offset’
/vagrant/test/php-zbarcode/zbarcode.c:744: warning: assignment from incompatible pointer type
/vagrant/test/php-zbarcode/zbarcode.c:746: error: ‘zend_object_handlers’ has no member named ‘free_obj’
/vagrant/test/php-zbarcode/zbarcode.c:747: error: ‘zend_object_handlers’ has no member named ‘offset’
/vagrant/test/php-zbarcode/zbarcode.c:754: warning: assignment from incompatible pointer type
/vagrant/test/php-zbarcode/zbarcode.c:756: error: ‘zend_object_handlers’ has no member named ‘free_obj’
/vagrant/test/php-zbarcode/zbarcode.c:757: error: ‘zend_object_handlers’ has no member named ‘offset’
make: *** [zbarcode.lo] Error 1