frak / php_spi

An OO PHP interface to SPI devices developed for use on the Raspberry Pi
Other
17 stars 7 forks source link

Build failed / error with ltmain.sh #5

Open binteso opened 7 years ago

binteso commented 7 years ago

Hi, as this might come up for others. If you try to build this project for php7 you will get a lot of errors and the build will fail. If you install php5 you might get an error connected to ltmain.sh In this case have a look here: https://github.com/mongodb/mongo-php-driver/issues/255 sudo rm /usr/lib/php5/build/ltmain.sh and sudo ln -s /usr/share/libtool/build-aux/ltmain.sh /usr/lib/php5/build/ltmain.sh did the trick for me - now the project is building again.

frak commented 7 years ago

Can you show me the errors you get when trying to build it for 7?

binteso commented 7 years ago

Here you go:

root@raspberrypi:~/php_spi# sudo make /bin/bash /root/php_spi/libtool --mode=compile cc -I. -I/root/php_spi -DPHP_ATOM_INC -I/root/php_spi/include -I/root/php_spi/main -I/root/php_spi -I/usr/include/php/20151012 -I/usr/include/php/20151012/main -I/usr/include/php/20151012/TSRM -I/usr/include/php/20151012/Zend -I/usr/include/php/20151012/ext -I/usr/include/php/20151012/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -g -O2 -c /root/php_spi/spi.c -o spi.lo libtool: compile: cc -I. -I/root/php_spi -DPHP_ATOM_INC -I/root/php_spi/include -I/root/php_spi/main -I/root/php_spi -I/usr/include/php/20151012 -I/usr/include/php/20151012/main -I/usr/include/php/20151012/TSRM -I/usr/include/php/20151012/Zend -I/usr/include/php/20151012/ext -I/usr/include/php/20151012/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -g -O2 -c /root/php_spi/spi.c -fPIC -DPIC -o .libs/spi.o /root/php_spi/spi.c: In function ‘zim_Spi_construct’: /root/php_spi/spi.c:100:68: error: macro "zend_hash_get_current_data" passed 2 arguments, but takes just 1 zend_hash_get_current_data(options_hash, (void )&data) == SUCCESS; ^ /root/php_spi/spi.c:100:13: error: ‘zend_hash_get_current_data’ undeclared (first use in this function) zend_hash_get_current_data(options_hash, (void )&data) == SUCCESS; ^ /root/php_spi/spi.c:100:13: note: each undeclared identifier is reported only once for each function it appears in /root/php_spi/spi.c:108:59: warning: passing argument 2 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type if(zend_hash_get_current_key_ex(options_hash, &key, &len, &index, 1, NULL) == HASH_KEY_IS_STRING) { ^ In file included from /usr/include/php/20151012/Zend/zend.h:36:0, from /usr/include/php/20151012/main/php.h:36, from /root/php_spi/php_spi.h:28, from /root/php_spi/spi.c:17: /usr/include/php/20151012/Zend/zend_hash.h:168:30: note: expected ‘struct zend_string ’ but argument is of type ‘char ’ ZEND_API int ZEND_FASTCALL zend_hash_get_current_key_ex(const HashTable *ht, zend_string str_index, zend_ulong num_index, HashPosition pos); ^ /root/php_spi/spi.c:108:71: warning: passing argument 4 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type if(zend_hash_get_current_key_ex(options_hash, &key, &len, &index, 1, NULL) == HASH_KEY_IS_STRING) { ^ In file included from /usr/include/php/20151012/Zend/zend.h:36:0, from /usr/include/php/20151012/main/php.h:36, from /root/php_spi/php_spi.h:28, from /root/php_spi/spi.c:17: /usr/include/php/20151012/Zend/zend_hash.h:168:30: note: expected ‘HashPosition ’ but argument is of type ‘long int ’ ZEND_API int ZEND_FASTCALL zend_hash_get_current_key_ex(const HashTable *ht, zend_string *str_index, zend_ulong num_index, HashPosition pos); ^ /root/php_spi/spi.c:108:16: error: too many arguments to function ‘zend_hash_get_current_key_ex’ if(zend_hash_get_current_key_ex(options_hash, &key, &len, &index, 1, NULL) == HASH_KEY_IS_STRING) { ^ In file included from /usr/include/php/20151012/Zend/zend.h:36:0, from /usr/include/php/20151012/main/php.h:36, from /root/php_spi/php_spi.h:28, from /root/php_spi/spi.c:17: /usr/include/php/20151012/Zend/zend_hash.h:168:30: note: declared here ZEND_API int ZEND_FASTCALL zend_hash_get_current_key_ex(const HashTable ht, zend_string str_index, zend_ulong num_index, HashPosition pos); ^ In file included from /usr/include/php/20151012/Zend/zend.h:31:0, from /usr/include/php/20151012/main/php.h:36, from /root/php_spi/php_spi.h:28, from /root/php_spi/spi.c:17: /root/php_spi/spi.c: In function ‘zimSpidestruct’: /root/php_spi/spi.c:193:23: error: too few arguments to function ‘zend_read_property’ int fd = Z_LVAL_P(zend_read_property(_this_ce, _this_zval, "device", 6, 0 TSRMLS_CC)); ^ /usr/include/php/20151012/Zend/zend_types.h:506:26: note: in definition of macro ‘Z_LVAL’

define Z_LVAL(zval) (zval).value.lval

^ /root/php_spi/spi.c:193:14: note: in expansion of macro ‘Z_LVAL_P’ int fd = Z_LVAL_P(zend_read_property(_this_ce, _this_zval, "device", 6, 0 TSRMLS_CC)); ^ In file included from /usr/include/php/20151012/main/php.h:40:0, from /root/php_spi/php_spi.h:28, from /root/php_spi/spi.c:17: /usr/include/php/20151012/Zend/zend_API.h:356:16: note: declared here ZEND_API zval zend_read_property(zend_class_entry scope, zval object, const char name, size_t name_length, zend_bool silent, zval *rv); ^ In file included from /usr/include/php/20151012/Zend/zend.h:31:0, from /usr/include/php/20151012/main/php.h:36, from /root/php_spi/php_spi.h:28, from /root/php_spi/spi.c:17: /root/php_spi/spi.c: In function ‘zim_Spi_transfer’: /root/php_spi/spi.c:220:23: error: too few arguments to function ‘zend_read_property’ int fd = Z_LVAL_P(zend_read_property(_this_ce, _this_zval, "device", 6, 0 TSRMLS_CC)); ^ /usr/include/php/20151012/Zend/zend_types.h:506:26: note: in definition of macro ‘Z_LVAL’

define Z_LVAL(zval) (zval).value.lval

^ /root/php_spi/spi.c:220:14: note: in expansion of macro ‘Z_LVAL_P’ int fd = Z_LVAL_P(zend_read_property(_this_ce, _this_zval, "device", 6, 0 TSRMLS_CC)); ^ In file included from /usr/include/php/20151012/main/php.h:40:0, from /root/php_spi/php_spi.h:28, from /root/php_spi/spi.c:17: /usr/include/php/20151012/Zend/zend_API.h:356:16: note: declared here ZEND_API zval zend_read_property(zend_class_entry scope, zval object, const char name, size_t name_length, zend_bool silent, zval *rv); ^ In file included from /usr/include/php/20151012/Zend/zend.h:31:0, from /usr/include/php/20151012/main/php.h:36, from /root/php_spi/php_spi.h:28, from /root/php_spi/spi.c:17: /root/php_spi/spi.c:221:29: error: too few arguments to function ‘zend_read_property’ uint8_t bits = Z_LVAL_P(zend_read_property(_this_ce, _this_zval, "bits", 4, 0 TSRMLS_CC)); ^ /usr/include/php/20151012/Zend/zend_types.h:506:26: note: in definition of macro ‘Z_LVAL’

define Z_LVAL(zval) (zval).value.lval

^ /root/php_spi/spi.c:221:20: note: in expansion of macro ‘Z_LVAL_P’ uint8_t bits = Z_LVAL_P(zend_read_property(_this_ce, _this_zval, "bits", 4, 0 TSRMLS_CC)); ^ In file included from /usr/include/php/20151012/main/php.h:40:0, from /root/php_spi/php_spi.h:28, from /root/php_spi/spi.c:17: /usr/include/php/20151012/Zend/zend_API.h:356:16: note: declared here ZEND_API zval zend_read_property(zend_class_entry scope, zval object, const char name, size_t name_length, zend_bool silent, zval *rv); ^ In file included from /usr/include/php/20151012/Zend/zend.h:31:0, from /usr/include/php/20151012/main/php.h:36, from /root/php_spi/php_spi.h:28, from /root/php_spi/spi.c:17: /root/php_spi/spi.c:222:31: error: too few arguments to function ‘zend_read_property’ uint32_t speed = Z_LVAL_P(zend_read_property(_this_ce, _this_zval, "speed", 5, 0 TSRMLS_CC)); ^ /usr/include/php/20151012/Zend/zend_types.h:506:26: note: in definition of macro ‘Z_LVAL’

define Z_LVAL(zval) (zval).value.lval

^ /root/php_spi/spi.c:222:22: note: in expansion of macro ‘Z_LVAL_P’ uint32_t speed = Z_LVAL_P(zend_read_property(_this_ce, _this_zval, "speed", 5, 0 TSRMLS_CC)); ^ In file included from /usr/include/php/20151012/main/php.h:40:0, from /root/php_spi/php_spi.h:28, from /root/php_spi/spi.c:17: /usr/include/php/20151012/Zend/zend_API.h:356:16: note: declared here ZEND_API zval zend_read_property(zend_class_entry scope, zval object, const char name, size_t name_length, zend_bool silent, zval *rv); ^ In file included from /usr/include/php/20151012/Zend/zend.h:31:0, from /usr/include/php/20151012/main/php.h:36, from /root/php_spi/php_spi.h:28, from /root/php_spi/spi.c:17: /root/php_spi/spi.c:223:31: error: too few arguments to function ‘zend_read_property’ uint16_t delay = Z_LVAL_P(zend_read_property(_this_ce, _this_zval, "delay", 5, 0 TSRMLS_CC)); ^ /usr/include/php/20151012/Zend/zend_types.h:506:26: note: in definition of macro ‘Z_LVAL’

define Z_LVAL(zval) (zval).value.lval

^ /root/php_spi/spi.c:223:22: note: in expansion of macro ‘Z_LVAL_P’ uint16_t delay = Z_LVAL_P(zend_read_property(_this_ce, _this_zval, "delay", 5, 0 TSRMLS_CC)); ^ In file included from /usr/include/php/20151012/main/php.h:40:0, from /root/php_spi/php_spi.h:28, from /root/php_spi/spi.c:17: /usr/include/php/20151012/Zend/zend_API.h:356:16: note: declared here ZEND_API zval zend_read_property(zend_class_entry scope, zval object, const char name, size_t name_length, zend_bool silent, zval *rv); ^ /root/php_spi/spi.c:231:66: error: macro "zend_hash_get_current_data" passed 2 arguments, but takes just 1 zend_hash_get_current_data(data_hash, (void )&arr_value) == SUCCESS; ^ /root/php_spi/spi.c:231:9: error: ‘zend_hash_get_current_data’ undeclared (first use in this function) zend_hash_get_current_data(data_hash, (void )&arr_value) == SUCCESS; ^ In file included from /usr/include/php/20151012/Zend/zend.h:31:0, from /usr/include/php/20151012/main/php.h:36, from /root/php_spi/php_spi.h:28, from /root/php_spi/spi.c:17: /root/php_spi/spi.c: In function ‘zim_Spi_blockTransfer’: /root/php_spi/spi.c:281:31: error: too few arguments to function ‘zend_read_property’ int fd = Z_LVAL_P(zend_read_property(_this_ce, _this_zval, "device", 6, 0 TSRMLS_CC)); ^ /usr/include/php/20151012/Zend/zend_types.h:506:26: note: in definition of macro ‘Z_LVAL’

define Z_LVAL(zval) (zval).value.lval

^ /root/php_spi/spi.c:281:22: note: in expansion of macro ‘Z_LVAL_P’ int fd = Z_LVAL_P(zend_read_property(_this_ce, _this_zval, "device", 6, 0 TSRMLS_CC)); ^ In file included from /usr/include/php/20151012/main/php.h:40:0, from /root/php_spi/php_spi.h:28, from /root/php_spi/spi.c:17: /usr/include/php/20151012/Zend/zend_API.h:356:16: note: declared here ZEND_API zval zend_read_property(zend_class_entry scope, zval object, const char name, size_t name_length, zend_bool silent, zval *rv); ^ In file included from /usr/include/php/20151012/Zend/zend.h:31:0, from /usr/include/php/20151012/main/php.h:36, from /root/php_spi/php_spi.h:28, from /root/php_spi/spi.c:17: /root/php_spi/spi.c:282:31: error: too few arguments to function ‘zend_read_property’ uint8_t mode = Z_LVAL_P(zend_read_property(_this_ce, _this_zval, "mode", 4, 0 TSRMLS_CC)); ^ /usr/include/php/20151012/Zend/zend_types.h:506:26: note: in definition of macro ‘Z_LVAL’

define Z_LVAL(zval) (zval).value.lval

^ /root/php_spi/spi.c:282:22: note: in expansion of macro ‘Z_LVAL_P’ uint8_t mode = Z_LVAL_P(zend_read_property(_this_ce, _this_zval, "mode", 4, 0 TSRMLS_CC)); ^ In file included from /usr/include/php/20151012/main/php.h:40:0, from /root/php_spi/php_spi.h:28, from /root/php_spi/spi.c:17: /usr/include/php/20151012/Zend/zend_API.h:356:16: note: declared here ZEND_API zval zend_read_property(zend_class_entry scope, zval object, const char name, size_t name_length, zend_bool silent, zval *rv); ^ In file included from /usr/include/php/20151012/Zend/zend.h:31:0, from /usr/include/php/20151012/main/php.h:36, from /root/php_spi/php_spi.h:28, from /root/php_spi/spi.c:17: /root/php_spi/spi.c:283:31: error: too few arguments to function ‘zend_read_property’ uint8_t bits = Z_LVAL_P(zend_read_property(_this_ce, _this_zval, "bits", 4, 0 TSRMLS_CC)); ^ /usr/include/php/20151012/Zend/zend_types.h:506:26: note: in definition of macro ‘Z_LVAL’

define Z_LVAL(zval) (zval).value.lval

^ /root/php_spi/spi.c:283:22: note: in expansion of macro ‘Z_LVAL_P’ uint8_t bits = Z_LVAL_P(zend_read_property(_this_ce, _this_zval, "bits", 4, 0 TSRMLS_CC)); ^ In file included from /usr/include/php/20151012/main/php.h:40:0, from /root/php_spi/php_spi.h:28, from /root/php_spi/spi.c:17: /usr/include/php/20151012/Zend/zend_API.h:356:16: note: declared here ZEND_API zval zend_read_property(zend_class_entry scope, zval object, const char name, size_t name_length, zend_bool silent, zval *rv); ^ In file included from /usr/include/php/20151012/Zend/zend.h:31:0, from /usr/include/php/20151012/main/php.h:36, from /root/php_spi/php_spi.h:28, from /root/php_spi/spi.c:17: /root/php_spi/spi.c:284:31: error: too few arguments to function ‘zend_read_property’ uint32_t speed = Z_LVAL_P(zend_read_property(_this_ce, _this_zval, "speed", 5, 0 TSRMLS_CC)); ^ /usr/include/php/20151012/Zend/zend_types.h:506:26: note: in definition of macro ‘Z_LVAL’

define Z_LVAL(zval) (zval).value.lval

^ /root/php_spi/spi.c:284:22: note: in expansion of macro ‘Z_LVAL_P’ uint32_t speed = Z_LVAL_P(zend_read_property(_this_ce, _this_zval, "speed", 5, 0 TSRMLS_CC)); ^ In file included from /usr/include/php/20151012/main/php.h:40:0, from /root/php_spi/php_spi.h:28, from /root/php_spi/spi.c:17: /usr/include/php/20151012/Zend/zend_API.h:356:16: note: declared here ZEND_API zval zend_read_property(zend_class_entry scope, zval object, const char name, size_t name_length, zend_bool silent, zval *rv); ^ In file included from /usr/include/php/20151012/Zend/zend.h:31:0, from /usr/include/php/20151012/main/php.h:36, from /root/php_spi/php_spi.h:28, from /root/php_spi/spi.c:17: /root/php_spi/spi.c:285:31: error: too few arguments to function ‘zend_read_property’ uint16_t delay = Z_LVAL_P(zend_read_property(_this_ce, _this_zval, "delay", 5, 0 TSRMLS_CC)); ^ /usr/include/php/20151012/Zend/zend_types.h:506:26: note: in definition of macro ‘Z_LVAL’

define Z_LVAL(zval) (zval).value.lval

^ /root/php_spi/spi.c:285:22: note: in expansion of macro ‘Z_LVAL_P’ uint16_t delay = Z_LVAL_P(zend_read_property(_this_ce, _this_zval, "delay", 5, 0 TSRMLS_CC)); ^ In file included from /usr/include/php/20151012/main/php.h:40:0, from /root/php_spi/php_spi.h:28, from /root/php_spi/spi.c:17: /usr/include/php/20151012/Zend/zend_API.h:356:16: note: declared here ZEND_API zval zend_read_property(zend_class_entry scope, zval object, const char name, size_t name_length, zend_bool silent, zval *rv); ^ /root/php_spi/spi.c:301:66: error: macro "zend_hash_get_current_data" passed 2 arguments, but takes just 1 zend_hash_get_current_data(data_hash, (void )&arr_value) == SUCCESS; ^ /root/php_spi/spi.c:301:9: error: ‘zend_hash_get_current_data’ undeclared (first use in this function) zend_hash_get_current_data(data_hash, (void )&arr_value) == SUCCESS; ^ /root/php_spi/spi.c:305:28: warning: assignment makes pointer from integer without a cast arr_value_hash = Z_ARRVAL_PP(arr_value); ^ /root/php_spi/spi.c:312:79: error: macro "zend_hash_get_current_data" passed 2 arguments, but takes just 1 zend_hash_get_current_data(arr_value_hash, (void *)&sub_value) == SUCCESS; ^ In file included from /usr/include/php/20151012/Zend/zend.h:35:0, from /usr/include/php/20151012/main/php.h:36, from /root/php_spi/php_spi.h:28, from /root/php_spi/spi.c:17: /root/php_spi/spi.c: In function ‘zim_Spi_getInfo’: /root/php_spi/spi.c:384:31: error: too few arguments to function ‘zend_read_property’ char device = Z_STRVAL_P(zend_read_property(_this_ce, _this_zval, "device_name", 11, 0 TSRMLS_CC)); ^ /usr/include/php/20151012/Zend/zend_string.h:40:26: note: in definition of macro ‘ZSTR_VAL’

define ZSTR_VAL(zstr) (zstr)->val

^ /usr/include/php/20151012/Zend/zend_types.h:515:36: note: in expansion of macro ‘Z_STR’

define Z_STRVAL(zval) ZSTR_VAL(Z_STR(zval))

^ /usr/include/php/20151012/Zend/zend_types.h:516:30: note: in expansion of macro ‘Z_STRVAL’

define Z_STRVAL_P(zval_p) Z_STRVAL(*(zval_p))

^ /root/php_spi/spi.c:384:20: note: in expansion of macro ‘Z_STRVAL_P’ char device = Z_STRVAL_P(zend_read_property(_this_ce, _this_zval, "device_name", 11, 0 TSRMLS_CC)); ^ In file included from /usr/include/php/20151012/main/php.h:40:0, from /root/php_spi/php_spi.h:28, from /root/php_spi/spi.c:17: /usr/include/php/20151012/Zend/zend_API.h:356:16: note: declared here ZEND_API zval zend_read_property(zend_class_entry scope, zval object, const char name, size_t name_length, zend_bool silent, zval rv); ^ In file included from /usr/include/php/20151012/Zend/zend.h:31:0, from /usr/include/php/20151012/main/php.h:36, from /root/php_spi/php_spi.h:28, from /root/php_spi/spi.c:17: /root/php_spi/spi.c:385:29: error: too few arguments to function ‘zend_read_property’ uint8_t mode = Z_LVAL_P(zend_read_property(_this_ce, _this_zval, "mode", 4, 0 TSRMLS_CC)); ^ /usr/include/php/20151012/Zend/zend_types.h:506:26: note: in definition of macro ‘Z_LVAL’

define Z_LVAL(zval) (zval).value.lval

^ /root/php_spi/spi.c:385:20: note: in expansion of macro ‘Z_LVAL_P’ uint8_t mode = Z_LVAL_P(zend_read_property(_this_ce, _this_zval, "mode", 4, 0 TSRMLS_CC)); ^ In file included from /usr/include/php/20151012/main/php.h:40:0, from /root/php_spi/php_spi.h:28, from /root/php_spi/spi.c:17: /usr/include/php/20151012/Zend/zend_API.h:356:16: note: declared here ZEND_API zval zend_read_property(zend_class_entry scope, zval object, const char name, size_t name_length, zend_bool silent, zval *rv); ^ In file included from /usr/include/php/20151012/Zend/zend.h:31:0, from /usr/include/php/20151012/main/php.h:36, from /root/php_spi/php_spi.h:28, from /root/php_spi/spi.c:17: /root/php_spi/spi.c:386:29: error: too few arguments to function ‘zend_read_property’ uint8_t bits = Z_LVAL_P(zend_read_property(_this_ce, _this_zval, "bits", 4, 0 TSRMLS_CC)); ^ /usr/include/php/20151012/Zend/zend_types.h:506:26: note: in definition of macro ‘Z_LVAL’

define Z_LVAL(zval) (zval).value.lval

^ /root/php_spi/spi.c:386:20: note: in expansion of macro ‘Z_LVAL_P’ uint8_t bits = Z_LVAL_P(zend_read_property(_this_ce, _this_zval, "bits", 4, 0 TSRMLS_CC)); ^ In file included from /usr/include/php/20151012/main/php.h:40:0, from /root/php_spi/php_spi.h:28, from /root/php_spi/spi.c:17: /usr/include/php/20151012/Zend/zend_API.h:356:16: note: declared here ZEND_API zval zend_read_property(zend_class_entry scope, zval object, const char name, size_t name_length, zend_bool silent, zval *rv); ^ In file included from /usr/include/php/20151012/Zend/zend.h:31:0, from /usr/include/php/20151012/main/php.h:36, from /root/php_spi/php_spi.h:28, from /root/php_spi/spi.c:17: /root/php_spi/spi.c:387:31: error: too few arguments to function ‘zend_read_property’ uint32_t speed = Z_LVAL_P(zend_read_property(_this_ce, _this_zval, "speed", 5, 0 TSRMLS_CC)); ^ /usr/include/php/20151012/Zend/zend_types.h:506:26: note: in definition of macro ‘Z_LVAL’

define Z_LVAL(zval) (zval).value.lval

^ /root/php_spi/spi.c:387:22: note: in expansion of macro ‘Z_LVAL_P’ uint32_t speed = Z_LVAL_P(zend_read_property(_this_ce, _this_zval, "speed", 5, 0 TSRMLS_CC)); ^ In file included from /usr/include/php/20151012/main/php.h:40:0, from /root/php_spi/php_spi.h:28, from /root/php_spi/spi.c:17: /usr/include/php/20151012/Zend/zend_API.h:356:16: note: declared here ZEND_API zval zend_read_property(zend_class_entry scope, zval object, const char name, size_t name_length, zend_bool silent, zval *rv); ^ In file included from /usr/include/php/20151012/Zend/zend.h:31:0, from /usr/include/php/20151012/main/php.h:36, from /root/php_spi/php_spi.h:28, from /root/php_spi/spi.c:17: /root/php_spi/spi.c:388:31: error: too few arguments to function ‘zend_read_property’ uint16_t delay = Z_LVAL_P(zend_read_property(_this_ce, _this_zval, "delay", 5, 0 TSRMLS_CC)); ^ /usr/include/php/20151012/Zend/zend_types.h:506:26: note: in definition of macro ‘Z_LVAL’

define Z_LVAL(zval) (zval).value.lval

^ /root/php_spi/spi.c:388:22: note: in expansion of macro ‘Z_LVAL_P’ uint16_t delay = Z_LVAL_P(zend_read_property(_this_ce, _this_zval, "delay", 5, 0 TSRMLS_CC)); ^ In file included from /usr/include/php/20151012/main/php.h:40:0, from /root/php_spi/php_spi.h:28, from /root/php_spi/spi.c:17: /usr/include/php/20151012/Zend/zend_API.h:356:16: note: declared here ZEND_API zval zend_read_property(zend_class_entry scope, zval object, const char name, size_t name_length, zend_bool silent, zval *rv); ^ /root/php_spi/spi.c:391:55: error: macro "add_assoc_string" passed 4 arguments, but takes just 3 add_assoc_string(return_value, "device", device, 1); ^ /root/php_spi/spi.c:391:5: error: ‘add_assoc_string’ undeclared (first use in this function) add_assoc_string(return_value, "device", device, 1); ^ Makefile:194: recipe for target 'spi.lo' failed make: *** [spi.lo] Error 1

frak commented 7 years ago

Thanks. I think.

dneykov commented 6 years ago

Hi,

Is there a fix for PHP7?

Thanks