mkoppanen/php-zbarcode

problem installing

Closed this issue · 2 comments

I get the following error when trying to make && make install

[root@server php-zbarcode]# make install
/bin/sh /php-zbarcode/libtool --mode=compile cc  -I. -I/php-zbarcode -DPHP_ATOM_INC -I/php-zbarcode/include -I/php-zbarcode/main -I/php-zbarcode -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c /php-zbarcode/zbarcode.c -o zbarcode.lo 
libtool: compile:  cc -I. -I/php-zbarcode -DPHP_ATOM_INC -I/php-zbarcode/include -I/php-zbarcode/main -I/php-zbarcode -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /php-zbarcode/zbarcode.c  -fPIC -DPIC -o .libs/zbarcode.o
/php-zbarcode/zbarcode.c:492: fout: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘php_zbarcode_class_methods’
/php-zbarcode/zbarcode.c:510: fout: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘php_zbarcode_image_class_methods’
/php-zbarcode/zbarcode.c:531: fout: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘php_zbarcode_scanner_class_methods’
/php-zbarcode/zbarcode.c: In functie ‘php_zbarcode_object_new’:
/php-zbarcode/zbarcode.c:604: fout: ‘zend_class_entry’ has no member named ‘default_properties’
/php-zbarcode/zbarcode.c: In functie ‘php_zbarcode_scanner_object_new’:
/php-zbarcode/zbarcode.c:628: fout: ‘zend_class_entry’ has no member named ‘default_properties’
/php-zbarcode/zbarcode.c: In functie ‘php_zbarcode_image_object_new’:
/php-zbarcode/zbarcode.c:652: fout: ‘zend_class_entry’ has no member named ‘default_properties’
/php-zbarcode/zbarcode.c: In functie ‘zm_startup_zbarcode’:
/php-zbarcode/zbarcode.c:681: fout: ‘php_zbarcode_class_methods’ undeclared (first use in this function)
/php-zbarcode/zbarcode.c:681: fout: (Each undeclared identifier is reported only once
/php-zbarcode/zbarcode.c:681: fout: for each function it appears in.)
/php-zbarcode/zbarcode.c:689: fout: ‘php_zbarcode_image_class_methods’ undeclared (first use in this function)
/php-zbarcode/zbarcode.c:697: fout: ‘php_zbarcode_scanner_class_methods’ undeclared (first use in this function)
/php-zbarcode/zbarcode.c: Op bovenste niveau:
/php-zbarcode/zbarcode.c:803: fout: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘php_zbarcode_functions’
/php-zbarcode/zbarcode.c:814: fout: ‘php_zbarcode_functions’ undeclared here (not in a function)
make: *** [zbarcode.lo] Fout 1

I use centos 6

Which version of PHP ? I probably need to update the extension for newer php versions

5.4.10, would be nice if you could update it... Thanks