PHP extension for reading barcodes. Uses ImageMagick(http://www.imagemagick.org/) for image support and zbar(http://zbar.sourceforge.net/) for scanning the barcodes.
/bin/sh /opt/php-zbarcode/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick -I. -I/opt/php-zbarcode -DPHP_ATOM_INC -I/opt/php-zbarcode/include -I/opt/php-zbarcode/main -I/opt/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 /opt/php-zbarcode/zbarcode.c -o zbarcode.lo
cc -fopenmp -I/usr/include/ImageMagick -I. -I/opt/php-zbarcode -DPHP_ATOM_INC -I/opt/php-zbarcode/include -I/opt/php-zbarcode/main -I/opt/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 /opt/php-zbarcode/zbarcode.c -fPIC -DPIC -o .libs/zbarcode.o
In file included from /usr/local/php/include/php/Zend/zend_types.h:27,
from /usr/local/php/include/php/Zend/zend.h:31,
from /usr/local/php/include/php/main/php.h:35,
from /opt/php-zbarcode/php_zbarcode.h:41,
from /opt/php-zbarcode/zbarcode.c:19:
/usr/local/php/include/php/Zend/zend_portability.h:244:1: warning: "restrict" redefined
In file included from /opt/php-zbarcode/php_zbarcode.h:38,
from /opt/php-zbarcode/zbarcode.c:19:
/usr/include/ImageMagick/wand/MagickWand.h:40:1: warning: this is the location of the previous definition
/opt/php-zbarcode/zbarcode.c: In function ‘zim_zbarcodeimage___construct’:
/opt/php-zbarcode/zbarcode.c:127: warning: cast to pointer from integer of different size
/opt/php-zbarcode/zbarcode.c: In function ‘zim_zbarcodeimage_read’:
/opt/php-zbarcode/zbarcode.c:161: warning: cast to pointer from integer of different size
/opt/php-zbarcode/zbarcode.c: In function ‘zim_zbarcodeimage_clear’:
/opt/php-zbarcode/zbarcode.c:182: warning: cast to pointer from integer of different size
/opt/php-zbarcode/zbarcode.c: In function ‘zim_zbarcodeimage_count’:
/opt/php-zbarcode/zbarcode.c:200: warning: cast to pointer from integer of different size
/opt/php-zbarcode/zbarcode.c:275:57: error: macro "add_assoc_string" passed 4 arguments, but takes just 3
/opt/php-zbarcode/zbarcode.c: In function ‘s_php_zbarcode_scan_page’:
/opt/php-zbarcode/zbarcode.c:275: error: ‘add_assoc_string’ undeclared (first use in this function)
/opt/php-zbarcode/zbarcode.c:275: error: (Each undeclared identifier is reported only once
/opt/php-zbarcode/zbarcode.c:275: error: for each function it appears in.)
/opt/php-zbarcode/zbarcode.c:276:86: error: macro "add_assoc_string" passed 4 arguments, but takes just 3
/opt/php-zbarcode/zbarcode.c: In function ‘zim_zbarcodescanner_scan’:
/opt/php-zbarcode/zbarcode.c:337: warning: cast to pointer from integer of different size
/opt/php-zbarcode/zbarcode.c:342: warning: cast to pointer from integer of different size
/opt/php-zbarcode/zbarcode.c: In function ‘zim_zbarcodescanner_setconfig’:
/opt/php-zbarcode/zbarcode.c:524: warning: cast to pointer from integer of different size
/opt/php-zbarcode/zbarcode.c: At top level:
/opt/php-zbarcode/zbarcode.c:647: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘php_zbarcode_object_new’
/opt/php-zbarcode/zbarcode.c:668: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘php_zbarcode_scanner_object_new’
/opt/php-zbarcode/zbarcode.c:692: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘php_zbarcode_image_object_new’
/opt/php-zbarcode/zbarcode.c: In function ‘zm_startup_zbarcode’:
/opt/php-zbarcode/zbarcode.c:729: error: too many arguments to function ‘zend_register_internal_class_ex’
/opt/php-zbarcode/zbarcode.c:736: error: ‘php_zbarcode_object_new’ undeclared (first use in this function)
/opt/php-zbarcode/zbarcode.c:744: error: ‘php_zbarcode_image_object_new’ undeclared (first use in this function)
/opt/php-zbarcode/zbarcode.c:752: error: ‘php_zbarcode_scanner_object_new’ undeclared (first use in this function)
make: *** [zbarcode.lo] Error 1
my php version is php 7.0.9