Hi using ubuntu 16.04 with php7 i have problems in compiling php-leveldb
I try to check php7 branch on git without success..
PHP version
PHP 7.0.8-0ubuntu0.16.04.3 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.8-0ubuntu0.16.04.3, Copyright (c) 1999-2016, by Zend Technologies
CONFIGURE
~/php-leveldb# ./configure --with-leveldb=/usr/lib/x86_64-linux-gnu/libleveldb.so
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -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
checking for PHP extension directory... /usr/lib/php/20151012
checking for PHP installed headers prefix... /usr/include/php/20151012
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for leveldb support... yes, shared
checking for leveldb location... find --/usr/lib/x86_64-linux-gnu/libleveldb.so/lib/x86_64-linux-gnu
find --/usr/lib/x86_64-linux-gnu/libleveldb.so/lib/x86_64-linux-gnu
find --/usr/local/lib/x86_64-linux-gnu
find --/usr/local/lib/x86_64-linux-gnu
leveldb headers found in /usr
find --/usr/lib/x86_64-linux-gnu
leveldb lib found in /usr/lib/x86_64-linux-gnu
find --/usr/lib/x86_64-linux-gnu
leveldb lib found in /usr/lib/x86_64-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... (cached) gawk
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing libtool commands
error :
MAKE
~/php-leveldb# make
/bin/bash /root/php-leveldb/libtool --mode=compile cc -I. -I/root/php-leveldb -DPHP_ATOM_INC -I/root/php-leveldb/include -I/root/php-leveldb/main -I/root/php-leveldb -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 -DHAVE_CONFIG_H -g -O2 -c /root/php-leveldb/leveldb.c -o leveldb.lo
libtool: compile: cc -I. -I/root/php-leveldb -DPHP_ATOM_INC -I/root/php-leveldb/include -I/root/php-leveldb/main -I/root/php-leveldb -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 -DHAVE_CONFIG_H -g -O2 -c /root/php-leveldb/leveldb.c -fPIC -DPIC -o .libs/leveldb.o
/root/php-leveldb/leveldb.c: In function ‘php_leveldb_object_free’:
/root/php-leveldb/leveldb.c:201:2: warning: implicit declaration of function ‘zend_objects_free_object_storage’ [-Wimplicit-function-declaration]
zend_objects_free_object_storage((zend_object )object TSRMLS_CC);
^
/root/php-leveldb/leveldb.c: At top level:
/root/php-leveldb/leveldb.c:204:8: error: unknown type name ‘zend_object_value’
static zend_object_value php_leveldb_object_new(zend_class_entry class_type TSRMLS_DC)
^
/root/php-leveldb/leveldb.c: In function ‘php_leveldb_object_new’:
/root/php-leveldb/leveldb.c:83:3: error: unknown type name ‘zend_object_value’
zend_object_value retval; \
^
/root/php-leveldb/leveldb.c:206:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_object, class_type);
^
/root/php-leveldb/leveldb.c:92:9: error: request for member ‘handle’ in something not a structure or union
retval.handle = zend_objects_store_put(intern, \
^
/root/php-leveldb/leveldb.c:206:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_object, class_type);
^
/root/php-leveldb/leveldb.c:93:7: error: ‘zend_objects_store_dtor_t’ undeclared (first use in this function)
(zend_objects_store_dtor_t) zend_objects_destroy_object, \
^
/root/php-leveldb/leveldb.c:206:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_object, class_type);
^
/root/php-leveldb/leveldb.c:93:7: note: each undeclared identifier is reported only once for each function it appears in
(zend_objects_store_dtor_t) zend_objects_destroy_object, \
^
/root/php-leveldb/leveldb.c:206:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_object, class_type);
^
/root/php-leveldb/leveldb.c:93:34: error: expected ‘)’ before ‘zend_objects_destroy_object’
(zend_objects_store_dtor_t) zend_objects_destroy_object, \
^
/root/php-leveldb/leveldb.c:206:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_object, class_type);
^
/root/php-leveldb/leveldb.c:92:42: warning: passing argument 1 of ‘zend_objects_store_put’ from incompatible pointer type [-Wincompatible-pointer-types]
retval.handle = zend_objects_store_put(intern, \
^
/root/php-leveldb/leveldb.c:206:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_object, class_type);
^
In file included from /usr/include/php/20151012/Zend/zend_globals.h:35:0,
from /usr/include/php/20151012/Zend/zend_compile.h:657,
from /usr/include/php/20151012/Zend/zend_modules.h:26,
from /usr/include/php/20151012/Zend/zend_API.h:27,
from /usr/include/php/20151012/main/php.h:40,
from /root/php-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_objects_API.h:58:15: note: expected ‘zend_object {aka struct _zend_object }’ but argument is of type ‘leveldb_object {aka struct }’
ZEND_API void zend_objects_store_put(zend_object object);
^
/root/php-leveldb/leveldb.c:92:19: error: too many arguments to function ‘zend_objects_store_put’
retval.handle = zend_objects_store_put(intern, \
^
/root/php-leveldb/leveldb.c:206:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_object, class_type);
^
In file included from /usr/include/php/20151012/Zend/zend_globals.h:35:0,
from /usr/include/php/20151012/Zend/zend_compile.h:657,
from /usr/include/php/20151012/Zend/zend_modules.h:26,
from /usr/include/php/20151012/Zend/zend_API.h:27,
from /usr/include/php/20151012/main/php.h:40,
from /root/php-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_objects_API.h:58:15: note: declared here
ZEND_API void zend_objects_store_put(zend_object object);
^
/root/php-leveldb/leveldb.c:95:9: error: request for member ‘handlers’ in something not a structure or union
retval.handlers = &leveldb_default_handlers; \
^
/root/php-leveldb/leveldb.c:206:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_object, class_type);
^
/root/php-leveldb/leveldb.c: At top level:
/root/php-leveldb/leveldb.c:221:8: error: unknown type name ‘zend_object_value’
static zend_object_value php_leveldb_write_batch_object_new(zend_class_entry class_type TSRMLS_DC)
^
/root/php-leveldb/leveldb.c: In function ‘php_leveldb_write_batch_object_new’:
/root/php-leveldb/leveldb.c:83:3: error: unknown type name ‘zend_object_value’
zend_object_value retval; \
^
/root/php-leveldb/leveldb.c:223:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_write_batch_object, class_type);
^
/root/php-leveldb/leveldb.c:92:9: error: request for member ‘handle’ in something not a structure or union
retval.handle = zend_objects_store_put(intern, \
^
/root/php-leveldb/leveldb.c:223:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_write_batch_object, class_type);
^
/root/php-leveldb/leveldb.c:93:7: error: ‘zend_objects_store_dtor_t’ undeclared (first use in this function)
(zend_objects_store_dtor_t) zend_objects_destroy_object, \
^
/root/php-leveldb/leveldb.c:223:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_write_batch_object, class_type);
^
/root/php-leveldb/leveldb.c:93:34: error: expected ‘)’ before ‘zend_objects_destroy_object’
(zend_objects_store_dtor_t) zend_objects_destroy_object, \
^
/root/php-leveldb/leveldb.c:223:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_write_batch_object, class_type);
^
/root/php-leveldb/leveldb.c:92:42: warning: passing argument 1 of ‘zend_objects_store_put’ from incompatible pointer type [-Wincompatible-pointer-types]
retval.handle = zend_objects_store_put(intern, \
^
/root/php-leveldb/leveldb.c:223:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_write_batch_object, class_type);
^
In file included from /usr/include/php/20151012/Zend/zend_globals.h:35:0,
from /usr/include/php/20151012/Zend/zend_compile.h:657,
from /usr/include/php/20151012/Zend/zend_modules.h:26,
from /usr/include/php/20151012/Zend/zend_API.h:27,
from /usr/include/php/20151012/main/php.h:40,
from /root/php-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_objects_API.h:58:15: note: expected ‘zend_object {aka struct _zend_object }’ but argument is of type ‘leveldb_write_batch_object {aka struct }’
ZEND_API void zend_objects_store_put(zend_object object);
^
/root/php-leveldb/leveldb.c:92:19: error: too many arguments to function ‘zend_objects_store_put’
retval.handle = zend_objects_store_put(intern, \
^
/root/php-leveldb/leveldb.c:223:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_write_batch_object, class_type);
^
In file included from /usr/include/php/20151012/Zend/zend_globals.h:35:0,
from /usr/include/php/20151012/Zend/zend_compile.h:657,
from /usr/include/php/20151012/Zend/zend_modules.h:26,
from /usr/include/php/20151012/Zend/zend_API.h:27,
from /usr/include/php/20151012/main/php.h:40,
from /root/php-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_objects_API.h:58:15: note: declared here
ZEND_API void zend_objects_store_put(zend_object object);
^
/root/php-leveldb/leveldb.c:95:9: error: request for member ‘handlers’ in something not a structure or union
retval.handlers = &leveldb_default_handlers; \
^
/root/php-leveldb/leveldb.c:223:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_write_batch_object, class_type);
^
/root/php-leveldb/leveldb.c: In function ‘php_leveldb_iterator_object_free’:
/root/php-leveldb/leveldb.c:231:42: warning: implicit declaration of function ‘zend_object_store_get_object’ [-Wimplicit-function-declaration]
if (obj->iterator && ((leveldb_object )zend_object_store_get_object(obj->db TSRMLS_CC))->db != NULL) {
^
/root/php-leveldb/leveldb.c:231:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if (obj->iterator && ((leveldb_object *)zend_object_store_get_object(obj->db TSRMLS_CC))->db != NULL) {
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /root/php-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
/root/php-leveldb/leveldb.c:236:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&obj->db);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval {aka struct _zval_struct }’ but argument is of type ‘zval {aka struct _zval_struct }’
ZEND_API void _zval_ptr_dtor(zval zval_ptr ZEND_FILE_LINE_DC);
^
/root/php-leveldb/leveldb.c: At top level:
/root/php-leveldb/leveldb.c:242:8: error: unknown type name ‘zend_object_value’
static zend_object_value php_leveldb_iterator_object_new(zend_class_entry class_type TSRMLS_DC)
^
/root/php-leveldb/leveldb.c: In function ‘php_leveldb_iterator_object_new’:
/root/php-leveldb/leveldb.c:83:3: error: unknown type name ‘zend_object_value’
zend_object_value retval; \
^
/root/php-leveldb/leveldb.c:244:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_iterator_object, class_type);
^
/root/php-leveldb/leveldb.c:92:9: error: request for member ‘handle’ in something not a structure or union
retval.handle = zend_objects_store_put(intern, \
^
/root/php-leveldb/leveldb.c:244:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_iterator_object, class_type);
^
/root/php-leveldb/leveldb.c:93:7: error: ‘zend_objects_store_dtor_t’ undeclared (first use in this function)
(zend_objects_store_dtor_t) zend_objects_destroy_object, \
^
/root/php-leveldb/leveldb.c:244:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_iterator_object, class_type);
^
/root/php-leveldb/leveldb.c:93:34: error: expected ‘)’ before ‘zend_objects_destroy_object’
(zend_objects_store_dtor_t) zend_objects_destroy_object, \
^
/root/php-leveldb/leveldb.c:244:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_iterator_object, class_type);
^
/root/php-leveldb/leveldb.c:92:42: warning: passing argument 1 of ‘zend_objects_store_put’ from incompatible pointer type [-Wincompatible-pointer-types]
retval.handle = zend_objects_store_put(intern, \
^
/root/php-leveldb/leveldb.c:244:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_iterator_object, class_type);
^
In file included from /usr/include/php/20151012/Zend/zend_globals.h:35:0,
from /usr/include/php/20151012/Zend/zend_compile.h:657,
from /usr/include/php/20151012/Zend/zend_modules.h:26,
from /usr/include/php/20151012/Zend/zend_API.h:27,
from /usr/include/php/20151012/main/php.h:40,
from /root/php-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_objects_API.h:58:15: note: expected ‘zend_object {aka struct _zend_object }’ but argument is of type ‘leveldb_iterator_object {aka struct }’
ZEND_API void zend_objects_store_put(zend_object object);
^
/root/php-leveldb/leveldb.c:92:19: error: too many arguments to function ‘zend_objects_store_put’
retval.handle = zend_objects_store_put(intern, \
^
/root/php-leveldb/leveldb.c:244:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_iterator_object, class_type);
^
In file included from /usr/include/php/20151012/Zend/zend_globals.h:35:0,
from /usr/include/php/20151012/Zend/zend_compile.h:657,
from /usr/include/php/20151012/Zend/zend_modules.h:26,
from /usr/include/php/20151012/Zend/zend_API.h:27,
from /usr/include/php/20151012/main/php.h:40,
from /root/php-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_objects_API.h:58:15: note: declared here
ZEND_API void zend_objects_store_put(zend_object object);
^
/root/php-leveldb/leveldb.c:95:9: error: request for member ‘handlers’ in something not a structure or union
retval.handlers = &leveldb_default_handlers; \
^
/root/php-leveldb/leveldb.c:244:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_iterator_object, class_type);
^
/root/php-leveldb/leveldb.c: In function ‘php_leveldb_snapshot_object_free’:
/root/php-leveldb/leveldb.c:254:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if((db = ((leveldb_object *)zend_object_store_get_object(obj->db TSRMLS_CC))->db) != NULL) {
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /root/php-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
/root/php-leveldb/leveldb.c:257:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&obj->db);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval {aka struct _zval_struct }’ but argument is of type ‘zval {aka struct _zval_struct }’
ZEND_API void _zval_ptr_dtor(zval zval_ptr ZEND_FILE_LINE_DC);
^
/root/php-leveldb/leveldb.c: At top level:
/root/php-leveldb/leveldb.c:263:8: error: unknown type name ‘zend_object_value’
static zend_object_value php_leveldb_snapshot_object_new(zend_class_entry class_type TSRMLS_DC)
^
/root/php-leveldb/leveldb.c: In function ‘php_leveldb_snapshot_object_new’:
/root/php-leveldb/leveldb.c:83:3: error: unknown type name ‘zend_object_value’
zend_object_value retval; \
^
/root/php-leveldb/leveldb.c:265:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_snapshot_object, class_type);
^
/root/php-leveldb/leveldb.c:92:9: error: request for member ‘handle’ in something not a structure or union
retval.handle = zend_objects_store_put(intern, \
^
/root/php-leveldb/leveldb.c:265:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_snapshot_object, class_type);
^
/root/php-leveldb/leveldb.c:93:7: error: ‘zend_objects_store_dtor_t’ undeclared (first use in this function)
(zend_objects_store_dtor_t) zend_objects_destroy_object, \
^
/root/php-leveldb/leveldb.c:265:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_snapshot_object, class_type);
^
/root/php-leveldb/leveldb.c:93:34: error: expected ‘)’ before ‘zend_objects_destroy_object’
(zend_objects_store_dtor_t) zend_objects_destroy_object, \
^
/root/php-leveldb/leveldb.c:265:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_snapshot_object, class_type);
^
/root/php-leveldb/leveldb.c:92:42: warning: passing argument 1 of ‘zend_objects_store_put’ from incompatible pointer type [-Wincompatible-pointer-types]
retval.handle = zend_objects_store_put(intern, \
^
/root/php-leveldb/leveldb.c:265:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_snapshot_object, class_type);
^
In file included from /usr/include/php/20151012/Zend/zend_globals.h:35:0,
from /usr/include/php/20151012/Zend/zend_compile.h:657,
from /usr/include/php/20151012/Zend/zend_modules.h:26,
from /usr/include/php/20151012/Zend/zend_API.h:27,
from /usr/include/php/20151012/main/php.h:40,
from /root/php-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_objects_API.h:58:15: note: expected ‘zend_object {aka struct _zend_object }’ but argument is of type ‘leveldb_snapshot_object {aka struct }’
ZEND_API void zend_objects_store_put(zend_object object);
^
/root/php-leveldb/leveldb.c:92:19: error: too many arguments to function ‘zend_objects_store_put’
retval.handle = zend_objects_store_put(intern, \
^
/root/php-leveldb/leveldb.c:265:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_snapshot_object, class_type);
^
In file included from /usr/include/php/20151012/Zend/zend_globals.h:35:0,
from /usr/include/php/20151012/Zend/zend_compile.h:657,
from /usr/include/php/20151012/Zend/zend_modules.h:26,
from /usr/include/php/20151012/Zend/zend_API.h:27,
from /usr/include/php/20151012/main/php.h:40,
from /root/php-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_objects_API.h:58:15: note: declared here
ZEND_API void zend_objects_store_put(zend_object object);
^
/root/php-leveldb/leveldb.c:95:9: error: request for member ‘handlers’ in something not a structure or union
retval.handlers = &leveldb_default_handlers; \
^
/root/php-leveldb/leveldb.c:265:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_snapshot_object, class_type);
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /root/php-leveldb/leveldb.c:25:
/root/php-leveldb/leveldb.c: In function ‘leveldb_custom_comparator_destructor’:
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
/root/php-leveldb/leveldb.c:403:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&callable);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval {aka struct _zval_struct }’ but argument is of type ‘zval {aka struct _zval_struct }’
ZEND_API void _zval_ptr_dtor(zval zval_ptr ZEND_FILE_LINE_DC);
^
/root/php-leveldb/leveldb.c: In function ‘leveldb_custom_comparator_compare’:
/root/php-leveldb/leveldb.c:413:2: warning: implicit declaration of function ‘MAKE_STD_ZVAL’ [-Wimplicit-function-declaration]
MAKE_STD_ZVAL(params[0]);
^
/root/php-leveldb/leveldb.c:417:44: error: macro "ZVAL_STRINGL" passed 4 arguments, but takes just 3
ZVAL_STRINGL(params[0], (char )a, alen, 1);
^
/root/php-leveldb/leveldb.c:417:2: error: ‘ZVAL_STRINGL’ undeclared (first use in this function)
ZVAL_STRINGL(params[0], (char )a, alen, 1);
^
/root/php-leveldb/leveldb.c:418:44: error: macro "ZVAL_STRINGL" passed 4 arguments, but takes just 3
ZVAL_STRINGL(params[1], (char )b, blen, 1);
^
/root/php-leveldb/leveldb.c:420:72: warning: passing argument 6 of ‘call_user_function’ from incompatible pointer type [-Wincompatible-pointer-types]
if (call_user_function(EG(function_table), NULL, callable, result, 2, params TSRMLS_CC) == SUCCESS) {
^
In file included from /usr/include/php/20151012/main/php.h:40:0,
from /root/php-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_API.h:471:14: note: expected ‘zval {aka struct _zval_struct }’ but argument is of type ‘zval {aka struct _zval_struct }’
ZEND_API int call_user_function(HashTable function_table, zval object, zval function_name, zval retval_ptr, uint32_t param_count, zval params[]);
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /root/php-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
/root/php-leveldb/leveldb.c:424:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(¶ms[0]);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval {aka struct _zval_struct }’ but argument is of type ‘zval {aka struct _zval_struct }’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
/root/php-leveldb/leveldb.c:425:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(¶ms[1]);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval {aka struct _zval_struct }’ but argument is of type ‘zval {aka struct _zval_struct }’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
/root/php-leveldb/leveldb.c:428:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&result);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval {aka struct _zval_struct }’ but argument is of type ‘zval {aka struct _zval_struct }’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/root/php-leveldb/leveldb.c: In function ‘php_leveldb_get_open_options’:
/root/php-leveldb/leveldb.c:453:25: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types]
if (zend_hash_find(ht, "create_if_missing", sizeof("create_if_missing"), (void )&value) == SUCCESS) {
^
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-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_hash.h:154:30: note: expected ‘zend_string {aka struct _zend_string }’ but argument is of type ‘char ’
ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string key);
^
/root/php-leveldb/leveldb.c:453:6: error: too many arguments to function ‘zend_hash_find’
if (zend_hash_find(ht, "create_if_missing", sizeof("create_if_missing"), (void )&value) == SUCCESS) {
^
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-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_hash.h:154:30: note: declared here
ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string *key);
^
/root/php-leveldb/leveldb.c:457:25: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types]
if (zend_hash_find(ht, "error_if_exists", sizeof("error_if_exists"), (void )&value) == SUCCESS) {
^
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-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_hash.h:154:30: note: expected ‘zend_string {aka struct _zend_string }’ but argument is of type ‘char ’
ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string key);
^
/root/php-leveldb/leveldb.c:457:6: error: too many arguments to function ‘zend_hash_find’
if (zend_hash_find(ht, "error_if_exists", sizeof("error_if_exists"), (void )&value) == SUCCESS) {
^
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-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_hash.h:154:30: note: declared here
ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string *key);
^
/root/php-leveldb/leveldb.c:461:25: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types]
if (zend_hash_find(ht, "paranoid_checks", sizeof("paranoid_checks"), (void )&value) == SUCCESS) {
^
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-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_hash.h:154:30: note: expected ‘zend_string {aka struct _zend_string }’ but argument is of type ‘char ’
ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string key);
^
/root/php-leveldb/leveldb.c:461:6: error: too many arguments to function ‘zend_hash_find’
if (zend_hash_find(ht, "paranoid_checks", sizeof("paranoid_checks"), (void )&value) == SUCCESS) {
^
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-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_hash.h:154:30: note: declared here
ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string *key);
^
/root/php-leveldb/leveldb.c:465:25: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types]
if (zend_hash_find(ht, "write_buffer_size", sizeof("write_buffer_size"), (void )&value) == SUCCESS) {
^
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-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_hash.h:154:30: note: expected ‘zend_string {aka struct _zend_string }’ but argument is of type ‘char ’
ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string key);
^
/root/php-leveldb/leveldb.c:465:6: error: too many arguments to function ‘zend_hash_find’
if (zend_hash_find(ht, "write_buffer_size", sizeof("write_buffer_size"), (void )&value) == SUCCESS) {
^
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-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_hash.h:154:30: note: declared here
ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string *key);
^
/root/php-leveldb/leveldb.c:467:50: warning: implicit declaration of function ‘Z_LVAL_PP’ [-Wimplicit-function-declaration]
leveldb_options_set_write_buffer_size(options, Z_LVAL_PP(value));
^
/root/php-leveldb/leveldb.c:470:25: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types]
if (zend_hash_find(ht, "max_open_files", sizeof("max_open_files"), (void )&value) == SUCCESS) {
^
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-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_hash.h:154:30: note: expected ‘zend_string {aka struct _zend_string }’ but argument is of type ‘char ’
ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string key);
^
/root/php-leveldb/leveldb.c:470:6: error: too many arguments to function ‘zend_hash_find’
if (zend_hash_find(ht, "max_open_files", sizeof("max_open_files"), (void )&value) == SUCCESS) {
^
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-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_hash.h:154:30: note: declared here
ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string *key);
^
/root/php-leveldb/leveldb.c:475:25: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types]
if (zend_hash_find(ht, "block_size", sizeof("block_size"), (void )&value) == SUCCESS) {
^
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-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_hash.h:154:30: note: expected ‘zend_string {aka struct _zend_string }’ but argument is of type ‘char ’
ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string key);
^
/root/php-leveldb/leveldb.c:475:6: error: too many arguments to function ‘zend_hash_find’
if (zend_hash_find(ht, "block_size", sizeof("block_size"), (void )&value) == SUCCESS) {
^
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-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_hash.h:154:30: note: declared here
ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string *key);
^
/root/php-leveldb/leveldb.c:480:25: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types]
if (zend_hash_find(ht, "block_cache_size", sizeof("block_cache_size"), (void )&value) == SUCCESS) {
^
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-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_hash.h:154:30: note: expected ‘zend_string {aka struct _zend_string }’ but argument is of type ‘char ’
ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string key);
^
/root/php-leveldb/leveldb.c:480:6: error: too many arguments to function ‘zend_hash_find’
if (zend_hash_find(ht, "block_cache_size", sizeof("block_cache_size"), (void )&value) == SUCCESS) {
^
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-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_hash.h:154:30: note: declared here
ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string *key);
^
/root/php-leveldb/leveldb.c:485:25: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types]
if (zend_hash_find(ht, "block_restart_interval", sizeof("block_restart_interval"), (void )&value) == SUCCESS) {
^
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-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_hash.h:154:30: note: expected ‘zend_string {aka struct _zend_string }’ but argument is of type ‘char ’
ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string key);
^
/root/php-leveldb/leveldb.c:485:6: error: too many arguments to function ‘zend_hash_find’
if (zend_hash_find(ht, "block_restart_interval", sizeof("block_restart_interval"), (void )&value) == SUCCESS) {
^
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-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_hash.h:154:30: note: declared here
ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string *key);
^
/root/php-leveldb/leveldb.c:490:25: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types]
if (zend_hash_find(ht, "compression", sizeof("compression"), (void )&value) == SUCCESS) {
^
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-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_hash.h:154:30: note: expected ‘zend_string {aka struct _zend_string }’ but argument is of type ‘char ’
ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string key);
^
/root/php-leveldb/leveldb.c:490:6: error: too many arguments to function ‘zend_hash_find’
if (zend_hash_find(ht, "compression", sizeof("compression"), (void )&value) == SUCCESS) {
^
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-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_hash.h:154:30: note: declared here
ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string *key);
^
/root/php-leveldb/leveldb.c:499:25: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types]
if (zend_hash_find(ht, "comparator", sizeof("comparator"), (void )&value) == SUCCESS
^
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-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_hash.h:154:30: note: expected ‘zend_string {aka struct _zend_string }’ but argument is of type ‘char ’
ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string key);
^
/root/php-leveldb/leveldb.c:499:6: error: too many arguments to function ‘zend_hash_find’
if (zend_hash_find(ht, "comparator", sizeof("comparator"), (void )&value) == SUCCESS
^
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-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_hash.h:154:30: note: declared here
ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string key);
^
/root/php-leveldb/leveldb.c:505:36: warning: passing argument 3 of ‘zend_is_callable’ from incompatible pointer type [-Wincompatible-pointer-types]
if (!zend_is_callable(value, 0, callable_name TSRMLS_CC)) {
^
In file included from /usr/include/php/20151012/main/php.h:40:0,
from /root/php-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_API.h:314:20: note: expected ‘zend_string {aka struct _zend_string }’ but argument is of type ‘char ’
ZEND_API zend_bool zend_is_callable(zval callable, uint check_flags, zend_string callable_name);
^
/root/php-leveldb/leveldb.c:518:3: warning: implicit declaration of function ‘Z_ADDREF_PP’ [-Wimplicit-function-declaration]
Z_ADDREF_PP(value);
^
/root/php-leveldb/leveldb.c: In function ‘php_leveldb_get_readoptions’:
/root/php-leveldb/leveldb.c:544:25: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types]
if (zend_hash_find(ht, "verify_check_sum", sizeof("verify_check_sum"), (void )&value) == SUCCESS) {
^
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-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_hash.h:154:30: note: expected ‘zend_string {aka struct _zend_string }’ but argument is of type ‘char ’
ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string *key);
^
/root/php-leveldb/leveldb.c:544:6: error: too many arguments to function ‘zend_hash_find’
if (zend_hash_find(ht, "verify_check_sum", sizeof("verify_check_sum"), (void *)&value) == SUCCESS) {
^
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-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_hash.h:154:30: note: declared here
ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string key);
^
/root/php-leveldb/leveldb.c:550:25: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types]
if (zend_hash_find(ht, "fill_cache", sizeof("fill_cache"), (void )&value) == SUCCESS) {
^
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-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_hash.h:154:30: note: expected ‘zend_string {aka struct _zend_string }’ but argument is of type ‘char ’
ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string key);
^
/root/php-leveldb/leveldb.c:550:6: error: too many arguments to function ‘zend_hash_find’
if (zend_hash_find(ht, "fill_cache", sizeof("fill_cache"), (void )&value) == SUCCESS) {
^
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-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_hash.h:154:30: note: declared here
ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string *key);
^
/root/php-leveldb/leveldb.c:556:25: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types]
if (zend_hash_find(ht, "snapshot", sizeof("snapshot"), (void )&value) == SUCCESS
^
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-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_hash.h:154:30: note: expected ‘zend_string {aka struct _zend_string }’ but argument is of type ‘char ’
ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string key);
^
/root/php-leveldb/leveldb.c:556:6: error: too many arguments to function ‘zend_hash_find’
if (zend_hash_find(ht, "snapshot", sizeof("snapshot"), (void )&value) == SUCCESS
^
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-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_hash.h:154:30: note: declared here
ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string key);
^
/root/php-leveldb/leveldb.c:558:7: warning: implicit declaration of function ‘Z_TYPE_PP’ [-Wimplicit-function-declaration]
if (Z_TYPE_PP(value) == IS_OBJECT && Z_OBJCE_PP(value) == php_leveldb_snapshot_class_entry) {
^
/root/php-leveldb/leveldb.c:558:40: warning: implicit declaration of function ‘Z_OBJCE_PP’ [-Wimplicit-function-declaration]
if (Z_TYPE_PP(value) == IS_OBJECT && Z_OBJCE_PP(value) == php_leveldb_snapshot_class_entry) {
^
/root/php-leveldb/leveldb.c:558:58: warning: comparison between pointer and integer
if (Z_TYPE_PP(value) == IS_OBJECT && Z_OBJCE_PP(value) == php_leveldb_snapshot_class_entry) {
^
/root/php-leveldb/leveldb.c:559:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
leveldb_snapshot_object obj = (leveldb_snapshot_object )zend_object_store_get_object(value TSRMLS_CC);
^
/root/php-leveldb/leveldb.c: In function ‘php_leveldb_set_readoptions’:
/root/php-leveldb/leveldb.c:592:25: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types]
if (zend_hash_find(ht, "verify_check_sum", sizeof("verify_check_sum"), (void )&value) == SUCCESS) {
^
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-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_hash.h:154:30: note: expected ‘zend_string {aka struct _zend_string }’ but argument is of type ‘char ’
ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string key);
^
/root/php-leveldb/leveldb.c:592:6: error: too many arguments to function ‘zend_hash_find’
if (zend_hash_find(ht, "verify_check_sum", sizeof("verify_check_sum"), (void )&value) == SUCCESS) {
^
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-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_hash.h:154:30: note: declared here
ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string *key);
^
/root/php-leveldb/leveldb.c:596:25: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types]
if (zend_hash_find(ht, "fill_cache", sizeof("fill_cache"), (void )&value) == SUCCESS) {
^
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-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_hash.h:154:30: note: expected ‘zend_string {aka struct _zend_string }’ but argument is of type ‘char ’
ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string key);
^
/root/php-leveldb/leveldb.c:596:6: error: too many arguments to function ‘zend_hash_find’
if (zend_hash_find(ht, "fill_cache", sizeof("fill_cache"), (void )&value) == SUCCESS) {
^
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-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_hash.h:154:30: note: declared here
ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string *key);
^
/root/php-leveldb/leveldb.c: In function ‘php_leveldb_get_writeoptions’:
/root/php-leveldb/leveldb.c:612:25: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types]
if (zend_hash_find(ht, "sync", sizeof("sync"), (void )&value) == SUCCESS) {
^
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-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_hash.h:154:30: note: expected ‘zend_string {aka struct _zend_string }’ but argument is of type ‘char ’
ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string key);
^
/root/php-leveldb/leveldb.c:612:6: error: too many arguments to function ‘zend_hash_find’
if (zend_hash_find(ht, "sync", sizeof("sync"), (void )&value) == SUCCESS) {
^
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-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_hash.h:154:30: note: declared here
ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string *key);
^
/root/php-leveldb/leveldb.c: In function ‘php_leveldb_set_writeoptions’:
/root/php-leveldb/leveldb.c:629:45: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types]
if (zend_hash_find(Z_ARRVAL_P(options_zv), "sync", sizeof("sync"), (void )&value) == SUCCESS) {
^
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-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_hash.h:154:30: note: expected ‘zend_string {aka struct _zend_string }’ but argument is of type ‘char ’
ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string key);
^
/root/php-leveldb/leveldb.c:629:6: error: too many arguments to function ‘zend_hash_find’
if (zend_hash_find(Z_ARRVAL_P(options_zv), "sync", sizeof("sync"), (void )&value) == SUCCESS) {
^
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-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_hash.h:154:30: note: declared here
ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string key);
^
/root/php-leveldb/leveldb.c: In function ‘zim_LevelDB___construct’:
/root/php-leveldb/leveldb.c:654:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
intern = (leveldb_object )zend_object_store_get_object(getThis() TSRMLS_CC);
^
/root/php-leveldb/leveldb.c: In function ‘zim_LevelDB_get’:
/root/php-leveldb/leveldb.c:697:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
intern = (leveldb_object )zend_object_store_get_object(getThis() TSRMLS_CC);
^
/root/php-leveldb/leveldb.c:710:36: error: macro "RETVAL_STRINGL" passed 3 arguments, but takes just 2
RETVAL_STRINGL(value, value_len, 1);
^
/root/php-leveldb/leveldb.c:710:2: error: ‘RETVAL_STRINGL’ undeclared (first use in this function)
RETVAL_STRINGL(value, value_len, 1);
^
/root/php-leveldb/leveldb.c: In function ‘zim_LevelDB_set’:
/root/php-leveldb/leveldb.c:734:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
intern = (leveldb_object )zend_object_store_get_object(getThis() TSRMLS_CC);
^
/root/php-leveldb/leveldb.c: In function ‘zim_LevelDB_delete’:
/root/php-leveldb/leveldb.c:764:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
intern = (leveldb_object )zend_object_store_get_object(getThis() TSRMLS_CC);
^
/root/php-leveldb/leveldb.c: In function ‘zim_LevelDB_write’:
/root/php-leveldb/leveldb.c:798:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
intern = (leveldb_object )zend_object_store_get_object(getThis() TSRMLS_CC);
^
/root/php-leveldb/leveldb.c:802:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
write_batch_object = (leveldb_write_batch_object )zend_object_store_get_object(write_batch TSRMLS_CC);
^
/root/php-leveldb/leveldb.c: In function ‘zim_LevelDB_getProperty’:
/root/php-leveldb/leveldb.c:825:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
intern = (leveldb_object )zend_object_store_get_object(getThis() TSRMLS_CC);
^
/root/php-leveldb/leveldb.c:834:27: error: macro "RETVAL_STRING" passed 2 arguments, but takes just 1
RETVAL_STRING(property, 1);
^
/root/php-leveldb/leveldb.c:834:2: error: ‘RETVAL_STRING’ undeclared (first use in this function)
RETVAL_STRING(property, 1);
^
/root/php-leveldb/leveldb.c: In function ‘zim_LevelDB_compactRange’:
/root/php-leveldb/leveldb.c:851:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
intern = (leveldb_object )zend_object_store_get_object(getThis() TSRMLS_CC);
^
/root/php-leveldb/leveldb.c: In function ‘zim_LevelDB_getApproximateSizes’:
/root/php-leveldb/leveldb.c:875:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
intern = (leveldb_object )zend_object_store_get_object(getThis() TSRMLS_CC);
^
/root/php-leveldb/leveldb.c:896:58: warning: passing argument 2 of ‘zend_hash_get_current_data_ex’ from incompatible pointer type [-Wincompatible-pointer-types]
while (zend_hash_get_current_data_ex(Z_ARRVAL_P(start), (void )&start_val, &pos_start) == SUCCESS &&
^
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-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_hash.h:171:30: note: expected ‘HashPosition {aka unsigned int }’ but argument is of type ‘void ’
ZEND_API zval ZEND_FASTCALL zend_hash_get_current_data_ex(HashTable ht, HashPosition *pos);
^
/root/php-leveldb/leveldb.c:896:9: error: too many arguments to function ‘zend_hash_get_current_data_ex’
while (zend_hash_get_current_data_ex(Z_ARRVAL_P(start), (void *)&start_val, &pos_start) == SUCCESS &&
^
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-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_hash.h:171:30: note: declared here
ZEND_API zval ZEND_FASTCALL zend_hash_get_current_data_ex(HashTable ht, HashPosition pos);
^
/root/php-leveldb/leveldb.c:897:52: warning: passing argument 2 of ‘zend_hash_get_current_data_ex’ from incompatible pointer type [-Wincompatible-pointer-types]
zend_hash_get_current_data_ex(Z_ARRVAL_P(limit), (void )&limit_val, &pos_limit) == SUCCESS) {
^
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-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_hash.h:171:30: note: expected ‘HashPosition {aka unsigned int }’ but argument is of type ‘void ’
ZEND_API zval ZEND_FASTCALL zend_hash_get_current_data_ex(HashTable ht, HashPosition *pos);
^
/root/php-leveldb/leveldb.c:897:3: error: too many arguments to function ‘zend_hash_get_current_data_ex’
zend_hash_get_current_data_ex(Z_ARRVAL_P(limit), (void )&limit_val, &pos_limit) == SUCCESS) {
^
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-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_hash.h:171:30: note: declared here
ZEND_API zval ZEND_FASTCALL zend_hash_get_current_data_ex(HashTable ht, HashPosition pos);
^
/root/php-leveldb/leveldb.c:899:18: warning: implicit declaration of function ‘Z_STRVAL_PP’ [-Wimplicit-function-declaration]
start_key[i] = Z_STRVAL_PP(start_val);
^
/root/php-leveldb/leveldb.c:899:16: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
start_key[i] = Z_STRVAL_PP(start_val);
^
/root/php-leveldb/leveldb.c:900:18: warning: implicit declaration of function ‘Z_STRLEN_PP’ [-Wimplicit-function-declaration]
start_len[i] = Z_STRLEN_PP(start_val);
^
/root/php-leveldb/leveldb.c:901:16: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
limit_key[i] = Z_STRVAL_PP(limit_val);
^
/root/php-leveldb/leveldb.c: In function ‘zim_LevelDB_close’:
/root/php-leveldb/leveldb.c:936:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
intern = (leveldb_object )zend_object_store_get_object(getThis() TSRMLS_CC);
^
/root/php-leveldb/leveldb.c: In function ‘zim_LevelDB_getIterator’:
/root/php-leveldb/leveldb.c:958:19: warning: passing argument 1 of ‘zend_call_method’ from incompatible pointer type [-Wincompatible-pointer-types]
zend_call_method(&return_value, php_leveldb_iterator_class_entry,
^
In file included from /root/php-leveldb/leveldb.c:28:0:
/usr/include/php/20151012/Zend/zend_interfaces.h:41:16: note: expected ‘zval {aka struct _zval_struct }’ but argument is of type ‘zval {aka struct _zval_struct *}’
ZEND_API zval zend_call_method(zval object_pp, zend_class_entry obj_ce, zend_function fn_proxy, const char function_name, size_t function_name_len, zval retval, int param_co
^
In file included from /root/php-leveldb/leveldb.c:28:0:
/root/php-leveldb/leveldb.c: In function ‘zim_LevelDB_getSnapshot’:
/root/php-leveldb/leveldb.c:974:33: warning: passing argument 1 of ‘zend_call_method’ from incompatible pointer type [-Wincompatible-pointer-types]
zend_call_method_with_1_params(&return_value, php_leveldb_snapshot_class_entry,
^
/usr/include/php/20151012/Zend/zend_interfaces.h:47:19: note: in definition of macro ‘zend_call_method_with_1_params’
zend_call_method(obj, obj_ce, fn_proxy, function_name, sizeof(function_name)-1, retval, 1, arg1, NULL)
^
In file included from /root/php-leveldb/leveldb.c:28:0:
/usr/include/php/20151012/Zend/zend_interfaces.h:41:16: note: expected ‘zval {aka struct _zval_struct }’ but argument is of type ‘zval {aka struct _zval_struct }’
ZEND_API zval zend_call_method(zval object_pp, zend_class_entry *obj_ce, zend_function *fn_proxy, const char function_name, size_t function_name_len, zval retval, int param_co
^
/root/php-leveldb/leveldb.c: In function ‘zim_LevelDBWriteBatch___construct’:
/root/php-leveldb/leveldb.c:1070:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
intern = (leveldb_write_batch_object )zend_object_store_get_object(getThis() TSRMLS_CC);
^
/root/php-leveldb/leveldb.c: In function ‘zim_LevelDBWriteBatch_set’:
/root/php-leveldb/leveldb.c:1093:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
intern = (leveldb_write_batch_object )zend_object_store_get_object(getThis() TSRMLS_CC);
^
/root/php-leveldb/leveldb.c: In function ‘zim_LevelDBWriteBatch_delete’:
/root/php-leveldb/leveldb.c:1113:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
intern = (leveldb_write_batch_object )zend_object_store_get_object(getThis() TSRMLS_CC);
^
/root/php-leveldb/leveldb.c: In function ‘zim_LevelDBWriteBatch_clear’:
/root/php-leveldb/leveldb.c:1130:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
intern = (leveldb_write_batch_object )zend_object_store_get_object(getThis() TSRMLS_CC);
^
/root/php-leveldb/leveldb.c: At top level:
/root/php-leveldb/leveldb.c:1155:2: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
leveldb_iterator_current_data,
^
/root/php-leveldb/leveldb.c:1155:2: note: (near initialization for ‘leveldb_iterator_funcs.get_current_data’)
/root/php-leveldb/leveldb.c:1156:2: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
leveldb_iterator_current_key,
^
/root/php-leveldb/leveldb.c:1156:2: note: (near initialization for ‘leveldb_iterator_funcs.get_current_key’)
/root/php-leveldb/leveldb.c: In function ‘leveldb_iterator_get_iterator’:
/root/php-leveldb/leveldb.c:1174:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
it_object = (leveldb_iterator_object )zend_object_store_get_object(object TSRMLS_CC);
^
/root/php-leveldb/leveldb.c:1178:24: error: incompatible types when assigning to type ‘zval {aka struct _zval_struct}’ from type ‘void ’
iterator->intern.data = (void )object;
^
/root/php-leveldb/leveldb.c: In function ‘leveldb_iterator_dtor’:
/root/php-leveldb/leveldb.c:1191:6: error: used struct type value where scalar is required
if (iterator->intern.data) {
^
/root/php-leveldb/leveldb.c:1192:19: error: incompatible types when initializing type ‘zval {aka struct _zval_struct }’ using type ‘zval {aka struct _zval_struct}’
zval *object = iterator->intern.data;
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /root/php-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
/root/php-leveldb/leveldb.c:1193:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&object);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval {aka struct _zval_struct }’ but argument is of type ‘zval {aka struct _zval_struct }’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
/root/php-leveldb/leveldb.c:1197:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(iterator->current);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval {aka struct _zval_struct }’ but argument is of type ‘zval {aka struct _zval_struct }’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/root/php-leveldb/leveldb.c: In function ‘leveldb_iterator_current_data’:
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
/root/php-leveldb/leveldb.c:1221:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(iterator->current);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval {aka struct _zval_struct }’ but argument is of type ‘zval {aka struct _zval_struct }’
ZEND_API void _zval_ptr_dtor(zval zval_ptr ZEND_FILE_LINE_DC);
^
/root/php-leveldb/leveldb.c:1229:42: error: macro "ZVAL_STRINGL" passed 4 arguments, but takes just 3
ZVAL_STRINGL(data, value, value_len, 1);
^
/root/php-leveldb/leveldb.c:1229:2: error: ‘ZVAL_STRINGL’ undeclared (first use in this function)
ZVAL_STRINGL(data, value, value_len, 1);
^
/root/php-leveldb/leveldb.c: In function ‘zim_LevelDBIterator___construct’:
/root/php-leveldb/leveldb.c:1289:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
intern = (leveldb_iterator_object )zend_object_store_get_object(getThis() TSRMLS_CC);
^
/root/php-leveldb/leveldb.c:1290:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
db_obj = (leveldb_object )zend_object_store_get_object(db_zv TSRMLS_CC);
^
/root/php-leveldb/leveldb.c: In function ‘zim_LevelDBIterator_destroy’:
/root/php-leveldb/leveldb.c:1331:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
intern = (leveldb_iterator_object )zend_object_store_get_object(getThis() TSRMLS_CC);
^
/root/php-leveldb/leveldb.c: In function ‘zim_LevelDBIterator_getError’:
/root/php-leveldb/leveldb.c:1352:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
intern = (leveldb_iterator_object )zend_object_store_get_object(getThis() TSRMLS_CC);
^
/root/php-leveldb/leveldb.c:1315:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if (((leveldb_object )zend_object_store_get_object((intern)->db TSRMLS_CC))->db == NULL) { \
^
/root/php-leveldb/leveldb.c:1353:2: note: in expansion of macro ‘LEVELDB_CHECK_ITER_DB_NOT_CLOSED’
LEVELDB_CHECK_ITER_DB_NOT_CLOSED(intern);
^
/root/php-leveldb/leveldb.c:1361:22: error: macro "RETVAL_STRING" passed 2 arguments, but takes just 1
RETVAL_STRING(err, 1);
^
/root/php-leveldb/leveldb.c:1361:2: error: ‘RETVAL_STRING’ undeclared (first use in this function)
RETVAL_STRING(err, 1);
^
/root/php-leveldb/leveldb.c: In function ‘zim_LevelDBIterator_current’:
/root/php-leveldb/leveldb.c:1378:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
intern = (leveldb_iterator_object )zend_object_store_get_object(getThis() TSRMLS_CC);
^
/root/php-leveldb/leveldb.c:1315:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if (((leveldb_object )zend_object_store_get_object((intern)->db TSRMLS_CC))->db == NULL) { \
^
/root/php-leveldb/leveldb.c:1379:2: note: in expansion of macro ‘LEVELDB_CHECK_ITER_DB_NOT_CLOSED’
LEVELDB_CHECK_ITER_DB_NOT_CLOSED(intern);
^
/root/php-leveldb/leveldb.c:1386:36: error: macro "RETURN_STRINGL" passed 3 arguments, but takes just 2
RETURN_STRINGL(value, value_len, 1);
^
/root/php-leveldb/leveldb.c:1386:2: error: ‘RETURN_STRINGL’ undeclared (first use in this function)
RETURN_STRINGL(value, value_len, 1);
^
/root/php-leveldb/leveldb.c: In function ‘zim_LevelDBIterator_key’:
/root/php-leveldb/leveldb.c:1402:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
intern = (leveldb_iterator_object )zend_object_store_get_object(getThis() TSRMLS_CC);
^
/root/php-leveldb/leveldb.c:1315:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if (((leveldb_object )zend_object_store_get_object((intern)->db TSRMLS_CC))->db == NULL) { \
^
/root/php-leveldb/leveldb.c:1403:2: note: in expansion of macro ‘LEVELDB_CHECK_ITER_DB_NOT_CLOSED’
LEVELDB_CHECK_ITER_DB_NOT_CLOSED(intern);
^
/root/php-leveldb/leveldb.c:1410:32: error: macro "RETURN_STRINGL" passed 3 arguments, but takes just 2
RETURN_STRINGL(key, key_len, 1);
^
/root/php-leveldb/leveldb.c:1410:2: error: ‘RETURN_STRINGL’ undeclared (first use in this function)
RETURN_STRINGL(key, key_len, 1);
^
/root/php-leveldb/leveldb.c: In function ‘zim_LevelDBIterator_next’:
/root/php-leveldb/leveldb.c:1424:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
intern = (leveldb_iterator_object )zend_object_store_get_object(getThis() TSRMLS_CC);
^
/root/php-leveldb/leveldb.c:1315:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if (((leveldb_object )zend_object_store_get_object((intern)->db TSRMLS_CC))->db == NULL) { \
^
/root/php-leveldb/leveldb.c:1425:2: note: in expansion of macro ‘LEVELDB_CHECK_ITER_DB_NOT_CLOSED’
LEVELDB_CHECK_ITER_DB_NOT_CLOSED(intern);
^
/root/php-leveldb/leveldb.c: In function ‘zim_LevelDBIterator_prev’:
/root/php-leveldb/leveldb.c:1443:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
intern = (leveldb_iterator_object )zend_object_store_get_object(getThis() TSRMLS_CC);
^
/root/php-leveldb/leveldb.c:1315:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if (((leveldb_object )zend_object_store_get_object((intern)->db TSRMLS_CC))->db == NULL) { \
^
/root/php-leveldb/leveldb.c:1444:2: note: in expansion of macro ‘LEVELDB_CHECK_ITER_DB_NOT_CLOSED’
LEVELDB_CHECK_ITER_DB_NOT_CLOSED(intern);
^
/root/php-leveldb/leveldb.c: In function ‘zim_LevelDBIterator_rewind’:
/root/php-leveldb/leveldb.c:1462:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
intern = (leveldb_iterator_object )zend_object_store_get_object(getThis() TSRMLS_CC);
^
/root/php-leveldb/leveldb.c:1315:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if (((leveldb_object )zend_object_store_get_object((intern)->db TSRMLS_CC))->db == NULL) { \
^
/root/php-leveldb/leveldb.c:1463:2: note: in expansion of macro ‘LEVELDB_CHECK_ITER_DB_NOT_CLOSED’
LEVELDB_CHECK_ITER_DB_NOT_CLOSED(intern);
^
/root/php-leveldb/leveldb.c: In function ‘zim_LevelDBIterator_last’:
/root/php-leveldb/leveldb.c:1479:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
intern = (leveldb_iterator_object )zend_object_store_get_object(getThis() TSRMLS_CC);
^
/root/php-leveldb/leveldb.c:1315:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if (((leveldb_object )zend_object_store_get_object((intern)->db TSRMLS_CC))->db == NULL) { \
^
/root/php-leveldb/leveldb.c:1480:2: note: in expansion of macro ‘LEVELDB_CHECK_ITER_DB_NOT_CLOSED’
LEVELDB_CHECK_ITER_DB_NOT_CLOSED(intern);
^
/root/php-leveldb/leveldb.c: In function ‘zim_LevelDBIterator_seek’:
/root/php-leveldb/leveldb.c:1498:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
intern = (leveldb_iterator_object )zend_object_store_get_object(getThis() TSRMLS_CC);
^
/root/php-leveldb/leveldb.c:1315:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if (((leveldb_object )zend_object_store_get_object((intern)->db TSRMLS_CC))->db == NULL) { \
^
/root/php-leveldb/leveldb.c:1499:2: note: in expansion of macro ‘LEVELDB_CHECK_ITER_DB_NOT_CLOSED’
LEVELDB_CHECK_ITER_DB_NOT_CLOSED(intern);
^
/root/php-leveldb/leveldb.c: In function ‘zim_LevelDBIterator_valid’:
/root/php-leveldb/leveldb.c:1515:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
intern = (leveldb_iterator_object )zend_object_store_get_object(getThis() TSRMLS_CC);
^
/root/php-leveldb/leveldb.c:1315:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if (((leveldb_object )zend_object_store_get_object((intern)->db TSRMLS_CC))->db == NULL) { \
^
/root/php-leveldb/leveldb.c:1516:2: note: in expansion of macro ‘LEVELDB_CHECK_ITER_DB_NOT_CLOSED’
LEVELDB_CHECK_ITER_DB_NOT_CLOSED(intern);
^
/root/php-leveldb/leveldb.c: In function ‘zim_LevelDBSnapshot___construct’:
/root/php-leveldb/leveldb.c:1535:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
intern = (leveldb_snapshot_object )zend_object_store_get_object(getThis() TSRMLS_CC);
^
/root/php-leveldb/leveldb.c:1536:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
db_obj = (leveldb_object )zend_object_store_get_object(db_zv TSRMLS_CC);
^
/root/php-leveldb/leveldb.c: In function ‘zim_LevelDBSnapshot_release’:
/root/php-leveldb/leveldb.c:1556:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
intern = (leveldb_snapshot_object )zend_object_store_get_object(getThis() TSRMLS_CC);
^
/root/php-leveldb/leveldb.c:1563:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
leveldb_object db = (leveldb_object *)zend_object_store_get_object(intern->db TSRMLS_CC);
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /root/php-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
/root/php-leveldb/leveldb.c:1565:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&intern->db);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval {aka struct _zval_struct }’ but argument is of type ‘zval {aka struct _zval_struct }’
ZEND_API void _zval_ptr_dtor(zval zval_ptr ZEND_FILE_LINE_DC);
^
/root/php-leveldb/leveldb.c: In function ‘zm_startup_leveldb’:
/root/php-leveldb/leveldb.c:1585:19: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
ce.create_object = php_leveldb_object_new;
^
/root/php-leveldb/leveldb.c:1590:19: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
ce.create_object = php_leveldb_write_batch_object_new;
^
/root/php-leveldb/leveldb.c:1595:19: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
ce.create_object = php_leveldb_iterator_object_new;
^
/root/php-leveldb/leveldb.c:1602:19: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
ce.create_object = php_leveldb_snapshot_object_new;
^
/root/php-leveldb/leveldb.c:1608:36: error: too many arguments to function ‘zend_register_internal_class_ex’
php_leveldb_ce_LevelDBException = zend_register_internal_class_ex(&ce, exception_ce, NULL TSRMLS_CC);
^
In file included from /usr/include/php/20151012/main/php.h:40:0,
from /root/php-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_API.h:290:28: note: declared here
ZEND_API zend_class_entry zend_register_internal_class_ex(zend_class_entry class_entry, zend_class_entry parent_ce);
^
Makefile:194: recipe for target 'leveldb.lo' failed
make: *** [leveldb.lo] Error 1
Hi using ubuntu 16.04 with php7 i have problems in compiling php-leveldb I try to check php7 branch on git without success..
PHP version PHP 7.0.8-0ubuntu0.16.04.3 (cli) ( NTS ) Copyright (c) 1997-2016 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies with Zend OPcache v7.0.8-0ubuntu0.16.04.3, Copyright (c) 1999-2016, by Zend Technologies
CONFIGURE ~/php-leveldb# ./configure --with-leveldb=/usr/lib/x86_64-linux-gnu/libleveldb.so checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for a sed that does not truncate output... /bin/sed checking for cc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking how to run the C preprocessor... cc -E checking for icc... no checking for suncc... no checking whether cc understands -c and -o together... yes checking for system library directory... lib checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking target system type... x86_64-pc-linux-gnu checking for PHP prefix... /usr checking for PHP includes... -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 checking for PHP extension directory... /usr/lib/php/20151012 checking for PHP installed headers prefix... /usr/include/php/20151012 checking if debug is enabled... no checking if zts is enabled... no checking for re2c... no configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers. checking for gawk... gawk checking for leveldb support... yes, shared checking for leveldb location... find --/usr/lib/x86_64-linux-gnu/libleveldb.so/lib/x86_64-linux-gnu find --/usr/lib/x86_64-linux-gnu/libleveldb.so/lib/x86_64-linux-gnu find --/usr/local/lib/x86_64-linux-gnu find --/usr/local/lib/x86_64-linux-gnu leveldb headers found in /usr find --/usr/lib/x86_64-linux-gnu leveldb lib found in /usr/lib/x86_64-linux-gnu find --/usr/lib/x86_64-linux-gnu leveldb lib found in /usr/lib/x86_64-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... (cached) /bin/sed checking for fgrep... /bin/grep -F checking for ld used by cc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking for gawk... (cached) gawk checking command to parse /usr/bin/nm -B output from cc object... ok checking for sysroot... no checking for a working dd... /bin/dd checking how to truncate binary pipes... /bin/dd bs=4096 count=1 checking for mt... mt checking if mt is a manifest tool... no checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if cc supports -fno-rtti -fno-exceptions... no checking for cc option to produce PIC... -fPIC -DPIC checking if cc PIC flag -fPIC -DPIC works... yes checking if cc static flag -static works... yes checking if cc supports -c -o file.o... yes checking if cc supports -c -o file.o... (cached) yes checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no configure: creating ./config.status config.status: creating config.h config.status: config.h is unchanged config.status: executing libtool commands
error : MAKE ~/php-leveldb# make /bin/bash /root/php-leveldb/libtool --mode=compile cc -I. -I/root/php-leveldb -DPHP_ATOM_INC -I/root/php-leveldb/include -I/root/php-leveldb/main -I/root/php-leveldb -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 -DHAVE_CONFIG_H -g -O2 -c /root/php-leveldb/leveldb.c -o leveldb.lo libtool: compile: cc -I. -I/root/php-leveldb -DPHP_ATOM_INC -I/root/php-leveldb/include -I/root/php-leveldb/main -I/root/php-leveldb -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 -DHAVE_CONFIG_H -g -O2 -c /root/php-leveldb/leveldb.c -fPIC -DPIC -o .libs/leveldb.o /root/php-leveldb/leveldb.c: In function ‘php_leveldb_object_free’: /root/php-leveldb/leveldb.c:201:2: warning: implicit declaration of function ‘zend_objects_free_object_storage’ [-Wimplicit-function-declaration] zend_objects_free_object_storage((zend_object )object TSRMLS_CC); ^ /root/php-leveldb/leveldb.c: At top level: /root/php-leveldb/leveldb.c:204:8: error: unknown type name ‘zend_object_value’ static zend_object_value php_leveldb_object_new(zend_class_entry class_type TSRMLS_DC) ^ /root/php-leveldb/leveldb.c: In function ‘php_leveldb_object_new’: /root/php-leveldb/leveldb.c:83:3: error: unknown type name ‘zend_object_value’ zend_object_value retval; \ ^ /root/php-leveldb/leveldb.c:206:2: note: in expansion of macro ‘php_leveldb_obj_new’ php_leveldb_obj_new(leveldb_object, class_type); ^ /root/php-leveldb/leveldb.c:92:9: error: request for member ‘handle’ in something not a structure or union retval.handle = zend_objects_store_put(intern, \ ^ /root/php-leveldb/leveldb.c:206:2: note: in expansion of macro ‘php_leveldb_obj_new’ php_leveldb_obj_new(leveldb_object, class_type); ^ /root/php-leveldb/leveldb.c:93:7: error: ‘zend_objects_store_dtor_t’ undeclared (first use in this function) (zend_objects_store_dtor_t) zend_objects_destroy_object, \ ^ /root/php-leveldb/leveldb.c:206:2: note: in expansion of macro ‘php_leveldb_obj_new’ php_leveldb_obj_new(leveldb_object, class_type); ^ /root/php-leveldb/leveldb.c:93:7: note: each undeclared identifier is reported only once for each function it appears in (zend_objects_store_dtor_t) zend_objects_destroy_object, \ ^ /root/php-leveldb/leveldb.c:206:2: note: in expansion of macro ‘php_leveldb_obj_new’ php_leveldb_obj_new(leveldb_object, class_type); ^ /root/php-leveldb/leveldb.c:93:34: error: expected ‘)’ before ‘zend_objects_destroy_object’ (zend_objects_store_dtor_t) zend_objects_destroy_object, \ ^ /root/php-leveldb/leveldb.c:206:2: note: in expansion of macro ‘php_leveldb_obj_new’ php_leveldb_obj_new(leveldb_object, class_type); ^ /root/php-leveldb/leveldb.c:92:42: warning: passing argument 1 of ‘zend_objects_store_put’ from incompatible pointer type [-Wincompatible-pointer-types] retval.handle = zend_objects_store_put(intern, \ ^ /root/php-leveldb/leveldb.c:206:2: note: in expansion of macro ‘php_leveldb_obj_new’ php_leveldb_obj_new(leveldb_object, class_type); ^ In file included from /usr/include/php/20151012/Zend/zend_globals.h:35:0, from /usr/include/php/20151012/Zend/zend_compile.h:657, from /usr/include/php/20151012/Zend/zend_modules.h:26, from /usr/include/php/20151012/Zend/zend_API.h:27, from /usr/include/php/20151012/main/php.h:40, from /root/php-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_objects_API.h:58:15: note: expected ‘zend_object {aka struct _zend_object }’ but argument is of type ‘leveldb_object {aka struct }’
ZEND_API void zend_objects_store_put(zend_object object);
^
/root/php-leveldb/leveldb.c:92:19: error: too many arguments to function ‘zend_objects_store_put’
retval.handle = zend_objects_store_put(intern, \
^
/root/php-leveldb/leveldb.c:206:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_object, class_type);
^
In file included from /usr/include/php/20151012/Zend/zend_globals.h:35:0,
from /usr/include/php/20151012/Zend/zend_compile.h:657,
from /usr/include/php/20151012/Zend/zend_modules.h:26,
from /usr/include/php/20151012/Zend/zend_API.h:27,
from /usr/include/php/20151012/main/php.h:40,
from /root/php-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_objects_API.h:58:15: note: declared here
ZEND_API void zend_objects_store_put(zend_object object);
^
/root/php-leveldb/leveldb.c:95:9: error: request for member ‘handlers’ in something not a structure or union
retval.handlers = &leveldb_default_handlers; \
^
/root/php-leveldb/leveldb.c:206:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_object, class_type);
^
/root/php-leveldb/leveldb.c: At top level:
/root/php-leveldb/leveldb.c:221:8: error: unknown type name ‘zend_object_value’
static zend_object_value php_leveldb_write_batch_object_new(zend_class_entry class_type TSRMLS_DC)
^
/root/php-leveldb/leveldb.c: In function ‘php_leveldb_write_batch_object_new’:
/root/php-leveldb/leveldb.c:83:3: error: unknown type name ‘zend_object_value’
zend_object_value retval; \
^
/root/php-leveldb/leveldb.c:223:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_write_batch_object, class_type);
^
/root/php-leveldb/leveldb.c:92:9: error: request for member ‘handle’ in something not a structure or union
retval.handle = zend_objects_store_put(intern, \
^
/root/php-leveldb/leveldb.c:223:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_write_batch_object, class_type);
^
/root/php-leveldb/leveldb.c:93:7: error: ‘zend_objects_store_dtor_t’ undeclared (first use in this function)
(zend_objects_store_dtor_t) zend_objects_destroy_object, \
^
/root/php-leveldb/leveldb.c:223:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_write_batch_object, class_type);
^
/root/php-leveldb/leveldb.c:93:34: error: expected ‘)’ before ‘zend_objects_destroy_object’
(zend_objects_store_dtor_t) zend_objects_destroy_object, \
^
/root/php-leveldb/leveldb.c:223:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_write_batch_object, class_type);
^
/root/php-leveldb/leveldb.c:92:42: warning: passing argument 1 of ‘zend_objects_store_put’ from incompatible pointer type [-Wincompatible-pointer-types]
retval.handle = zend_objects_store_put(intern, \
^
/root/php-leveldb/leveldb.c:223:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_write_batch_object, class_type);
^
In file included from /usr/include/php/20151012/Zend/zend_globals.h:35:0,
from /usr/include/php/20151012/Zend/zend_compile.h:657,
from /usr/include/php/20151012/Zend/zend_modules.h:26,
from /usr/include/php/20151012/Zend/zend_API.h:27,
from /usr/include/php/20151012/main/php.h:40,
from /root/php-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_objects_API.h:58:15: note: expected ‘zend_object {aka struct _zend_object }’ but argument is of type ‘leveldb_write_batch_object {aka struct }’
ZEND_API void zend_objects_store_put(zend_object object);
^
/root/php-leveldb/leveldb.c:92:19: error: too many arguments to function ‘zend_objects_store_put’
retval.handle = zend_objects_store_put(intern, \
^
/root/php-leveldb/leveldb.c:223:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_write_batch_object, class_type);
^
In file included from /usr/include/php/20151012/Zend/zend_globals.h:35:0,
from /usr/include/php/20151012/Zend/zend_compile.h:657,
from /usr/include/php/20151012/Zend/zend_modules.h:26,
from /usr/include/php/20151012/Zend/zend_API.h:27,
from /usr/include/php/20151012/main/php.h:40,
from /root/php-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_objects_API.h:58:15: note: declared here
ZEND_API void zend_objects_store_put(zend_object object);
^
/root/php-leveldb/leveldb.c:95:9: error: request for member ‘handlers’ in something not a structure or union
retval.handlers = &leveldb_default_handlers; \
^
/root/php-leveldb/leveldb.c:223:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_write_batch_object, class_type);
^
/root/php-leveldb/leveldb.c: In function ‘php_leveldb_iterator_object_free’:
/root/php-leveldb/leveldb.c:231:42: warning: implicit declaration of function ‘zend_object_store_get_object’ [-Wimplicit-function-declaration]
if (obj->iterator && ((leveldb_object )zend_object_store_get_object(obj->db TSRMLS_CC))->db != NULL) {
^
/root/php-leveldb/leveldb.c:231:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if (obj->iterator && ((leveldb_object *)zend_object_store_get_object(obj->db TSRMLS_CC))->db != NULL) {
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /root/php-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
/root/php-leveldb/leveldb.c:236:3: note: in expansion of macro ‘zval_ptr_dtor’ zval_ptr_dtor(&obj->db); ^ /usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval {aka struct _zval_struct }’ but argument is of type ‘zval {aka struct _zval_struct }’ ZEND_API void _zval_ptr_dtor(zval zval_ptr ZEND_FILE_LINE_DC); ^ /root/php-leveldb/leveldb.c: At top level: /root/php-leveldb/leveldb.c:242:8: error: unknown type name ‘zend_object_value’ static zend_object_value php_leveldb_iterator_object_new(zend_class_entry class_type TSRMLS_DC) ^ /root/php-leveldb/leveldb.c: In function ‘php_leveldb_iterator_object_new’: /root/php-leveldb/leveldb.c:83:3: error: unknown type name ‘zend_object_value’ zend_object_value retval; \ ^ /root/php-leveldb/leveldb.c:244:2: note: in expansion of macro ‘php_leveldb_obj_new’ php_leveldb_obj_new(leveldb_iterator_object, class_type); ^ /root/php-leveldb/leveldb.c:92:9: error: request for member ‘handle’ in something not a structure or union retval.handle = zend_objects_store_put(intern, \ ^ /root/php-leveldb/leveldb.c:244:2: note: in expansion of macro ‘php_leveldb_obj_new’ php_leveldb_obj_new(leveldb_iterator_object, class_type); ^ /root/php-leveldb/leveldb.c:93:7: error: ‘zend_objects_store_dtor_t’ undeclared (first use in this function) (zend_objects_store_dtor_t) zend_objects_destroy_object, \ ^ /root/php-leveldb/leveldb.c:244:2: note: in expansion of macro ‘php_leveldb_obj_new’ php_leveldb_obj_new(leveldb_iterator_object, class_type); ^ /root/php-leveldb/leveldb.c:93:34: error: expected ‘)’ before ‘zend_objects_destroy_object’ (zend_objects_store_dtor_t) zend_objects_destroy_object, \ ^ /root/php-leveldb/leveldb.c:244:2: note: in expansion of macro ‘php_leveldb_obj_new’ php_leveldb_obj_new(leveldb_iterator_object, class_type); ^ /root/php-leveldb/leveldb.c:92:42: warning: passing argument 1 of ‘zend_objects_store_put’ from incompatible pointer type [-Wincompatible-pointer-types] retval.handle = zend_objects_store_put(intern, \ ^ /root/php-leveldb/leveldb.c:244:2: note: in expansion of macro ‘php_leveldb_obj_new’ php_leveldb_obj_new(leveldb_iterator_object, class_type); ^ In file included from /usr/include/php/20151012/Zend/zend_globals.h:35:0, from /usr/include/php/20151012/Zend/zend_compile.h:657, from /usr/include/php/20151012/Zend/zend_modules.h:26, from /usr/include/php/20151012/Zend/zend_API.h:27, from /usr/include/php/20151012/main/php.h:40, from /root/php-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_objects_API.h:58:15: note: expected ‘zend_object {aka struct _zend_object }’ but argument is of type ‘leveldb_iterator_object {aka struct }’
ZEND_API void zend_objects_store_put(zend_object object);
^
/root/php-leveldb/leveldb.c:92:19: error: too many arguments to function ‘zend_objects_store_put’
retval.handle = zend_objects_store_put(intern, \
^
/root/php-leveldb/leveldb.c:244:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_iterator_object, class_type);
^
In file included from /usr/include/php/20151012/Zend/zend_globals.h:35:0,
from /usr/include/php/20151012/Zend/zend_compile.h:657,
from /usr/include/php/20151012/Zend/zend_modules.h:26,
from /usr/include/php/20151012/Zend/zend_API.h:27,
from /usr/include/php/20151012/main/php.h:40,
from /root/php-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_objects_API.h:58:15: note: declared here
ZEND_API void zend_objects_store_put(zend_object object);
^
/root/php-leveldb/leveldb.c:95:9: error: request for member ‘handlers’ in something not a structure or union
retval.handlers = &leveldb_default_handlers; \
^
/root/php-leveldb/leveldb.c:244:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_iterator_object, class_type);
^
/root/php-leveldb/leveldb.c: In function ‘php_leveldb_snapshot_object_free’:
/root/php-leveldb/leveldb.c:254:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if((db = ((leveldb_object *)zend_object_store_get_object(obj->db TSRMLS_CC))->db) != NULL) {
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /root/php-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
/root/php-leveldb/leveldb.c:257:3: note: in expansion of macro ‘zval_ptr_dtor’ zval_ptr_dtor(&obj->db); ^ /usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval {aka struct _zval_struct }’ but argument is of type ‘zval {aka struct _zval_struct }’ ZEND_API void _zval_ptr_dtor(zval zval_ptr ZEND_FILE_LINE_DC); ^ /root/php-leveldb/leveldb.c: At top level: /root/php-leveldb/leveldb.c:263:8: error: unknown type name ‘zend_object_value’ static zend_object_value php_leveldb_snapshot_object_new(zend_class_entry class_type TSRMLS_DC) ^ /root/php-leveldb/leveldb.c: In function ‘php_leveldb_snapshot_object_new’: /root/php-leveldb/leveldb.c:83:3: error: unknown type name ‘zend_object_value’ zend_object_value retval; \ ^ /root/php-leveldb/leveldb.c:265:2: note: in expansion of macro ‘php_leveldb_obj_new’ php_leveldb_obj_new(leveldb_snapshot_object, class_type); ^ /root/php-leveldb/leveldb.c:92:9: error: request for member ‘handle’ in something not a structure or union retval.handle = zend_objects_store_put(intern, \ ^ /root/php-leveldb/leveldb.c:265:2: note: in expansion of macro ‘php_leveldb_obj_new’ php_leveldb_obj_new(leveldb_snapshot_object, class_type); ^ /root/php-leveldb/leveldb.c:93:7: error: ‘zend_objects_store_dtor_t’ undeclared (first use in this function) (zend_objects_store_dtor_t) zend_objects_destroy_object, \ ^ /root/php-leveldb/leveldb.c:265:2: note: in expansion of macro ‘php_leveldb_obj_new’ php_leveldb_obj_new(leveldb_snapshot_object, class_type); ^ /root/php-leveldb/leveldb.c:93:34: error: expected ‘)’ before ‘zend_objects_destroy_object’ (zend_objects_store_dtor_t) zend_objects_destroy_object, \ ^ /root/php-leveldb/leveldb.c:265:2: note: in expansion of macro ‘php_leveldb_obj_new’ php_leveldb_obj_new(leveldb_snapshot_object, class_type); ^ /root/php-leveldb/leveldb.c:92:42: warning: passing argument 1 of ‘zend_objects_store_put’ from incompatible pointer type [-Wincompatible-pointer-types] retval.handle = zend_objects_store_put(intern, \ ^ /root/php-leveldb/leveldb.c:265:2: note: in expansion of macro ‘php_leveldb_obj_new’ php_leveldb_obj_new(leveldb_snapshot_object, class_type); ^ In file included from /usr/include/php/20151012/Zend/zend_globals.h:35:0, from /usr/include/php/20151012/Zend/zend_compile.h:657, from /usr/include/php/20151012/Zend/zend_modules.h:26, from /usr/include/php/20151012/Zend/zend_API.h:27, from /usr/include/php/20151012/main/php.h:40, from /root/php-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_objects_API.h:58:15: note: expected ‘zend_object {aka struct _zend_object }’ but argument is of type ‘leveldb_snapshot_object {aka struct }’
ZEND_API void zend_objects_store_put(zend_object object);
^
/root/php-leveldb/leveldb.c:92:19: error: too many arguments to function ‘zend_objects_store_put’
retval.handle = zend_objects_store_put(intern, \
^
/root/php-leveldb/leveldb.c:265:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_snapshot_object, class_type);
^
In file included from /usr/include/php/20151012/Zend/zend_globals.h:35:0,
from /usr/include/php/20151012/Zend/zend_compile.h:657,
from /usr/include/php/20151012/Zend/zend_modules.h:26,
from /usr/include/php/20151012/Zend/zend_API.h:27,
from /usr/include/php/20151012/main/php.h:40,
from /root/php-leveldb/leveldb.c:25:
/usr/include/php/20151012/Zend/zend_objects_API.h:58:15: note: declared here
ZEND_API void zend_objects_store_put(zend_object object);
^
/root/php-leveldb/leveldb.c:95:9: error: request for member ‘handlers’ in something not a structure or union
retval.handlers = &leveldb_default_handlers; \
^
/root/php-leveldb/leveldb.c:265:2: note: in expansion of macro ‘php_leveldb_obj_new’
php_leveldb_obj_new(leveldb_snapshot_object, class_type);
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /root/php-leveldb/leveldb.c:25:
/root/php-leveldb/leveldb.c: In function ‘leveldb_custom_comparator_destructor’:
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
/root/php-leveldb/leveldb.c:403:2: note: in expansion of macro ‘zval_ptr_dtor’ zval_ptr_dtor(&callable); ^ /usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval {aka struct _zval_struct }’ but argument is of type ‘zval {aka struct _zval_struct }’ ZEND_API void _zval_ptr_dtor(zval zval_ptr ZEND_FILE_LINE_DC); ^ /root/php-leveldb/leveldb.c: In function ‘leveldb_custom_comparator_compare’: /root/php-leveldb/leveldb.c:413:2: warning: implicit declaration of function ‘MAKE_STD_ZVAL’ [-Wimplicit-function-declaration] MAKE_STD_ZVAL(params[0]); ^ /root/php-leveldb/leveldb.c:417:44: error: macro "ZVAL_STRINGL" passed 4 arguments, but takes just 3 ZVAL_STRINGL(params[0], (char )a, alen, 1); ^ /root/php-leveldb/leveldb.c:417:2: error: ‘ZVAL_STRINGL’ undeclared (first use in this function) ZVAL_STRINGL(params[0], (char )a, alen, 1); ^ /root/php-leveldb/leveldb.c:418:44: error: macro "ZVAL_STRINGL" passed 4 arguments, but takes just 3 ZVAL_STRINGL(params[1], (char )b, blen, 1); ^ /root/php-leveldb/leveldb.c:420:72: warning: passing argument 6 of ‘call_user_function’ from incompatible pointer type [-Wincompatible-pointer-types] if (call_user_function(EG(function_table), NULL, callable, result, 2, params TSRMLS_CC) == SUCCESS) { ^ In file included from /usr/include/php/20151012/main/php.h:40:0, from /root/php-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_API.h:471:14: note: expected ‘zval {aka struct _zval_struct }’ but argument is of type ‘zval {aka struct _zval_struct }’ ZEND_API int call_user_function(HashTable function_table, zval object, zval function_name, zval retval_ptr, uint32_t param_count, zval params[]); ^ In file included from /usr/include/php/20151012/Zend/zend.h:39:0, from /usr/include/php/20151012/main/php.h:36, from /root/php-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
/root/php-leveldb/leveldb.c:424:2: note: in expansion of macro ‘zval_ptr_dtor’ zval_ptr_dtor(¶ms[0]); ^ /usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval {aka struct _zval_struct }’ but argument is of type ‘zval {aka struct _zval_struct }’ ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC); ^ /usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
/root/php-leveldb/leveldb.c:425:2: note: in expansion of macro ‘zval_ptr_dtor’ zval_ptr_dtor(¶ms[1]); ^ /usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval {aka struct _zval_struct }’ but argument is of type ‘zval {aka struct _zval_struct }’ ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC); ^ /usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
/root/php-leveldb/leveldb.c:428:2: note: in expansion of macro ‘zval_ptr_dtor’ zval_ptr_dtor(&result); ^ /usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval {aka struct _zval_struct }’ but argument is of type ‘zval {aka struct _zval_struct }’ ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC); ^ /root/php-leveldb/leveldb.c: In function ‘php_leveldb_get_open_options’: /root/php-leveldb/leveldb.c:453:25: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types] if (zend_hash_find(ht, "create_if_missing", sizeof("create_if_missing"), (void )&value) == SUCCESS) { ^ 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-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_hash.h:154:30: note: expected ‘zend_string {aka struct _zend_string }’ but argument is of type ‘char ’ ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string key); ^ /root/php-leveldb/leveldb.c:453:6: error: too many arguments to function ‘zend_hash_find’ if (zend_hash_find(ht, "create_if_missing", sizeof("create_if_missing"), (void )&value) == SUCCESS) { ^ 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-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_hash.h:154:30: note: declared here ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string *key); ^ /root/php-leveldb/leveldb.c:457:25: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types] if (zend_hash_find(ht, "error_if_exists", sizeof("error_if_exists"), (void )&value) == SUCCESS) { ^ 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-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_hash.h:154:30: note: expected ‘zend_string {aka struct _zend_string }’ but argument is of type ‘char ’ ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string key); ^ /root/php-leveldb/leveldb.c:457:6: error: too many arguments to function ‘zend_hash_find’ if (zend_hash_find(ht, "error_if_exists", sizeof("error_if_exists"), (void )&value) == SUCCESS) { ^ 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-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_hash.h:154:30: note: declared here ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string *key); ^ /root/php-leveldb/leveldb.c:461:25: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types] if (zend_hash_find(ht, "paranoid_checks", sizeof("paranoid_checks"), (void )&value) == SUCCESS) { ^ 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-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_hash.h:154:30: note: expected ‘zend_string {aka struct _zend_string }’ but argument is of type ‘char ’ ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string key); ^ /root/php-leveldb/leveldb.c:461:6: error: too many arguments to function ‘zend_hash_find’ if (zend_hash_find(ht, "paranoid_checks", sizeof("paranoid_checks"), (void )&value) == SUCCESS) { ^ 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-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_hash.h:154:30: note: declared here ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string *key); ^ /root/php-leveldb/leveldb.c:465:25: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types] if (zend_hash_find(ht, "write_buffer_size", sizeof("write_buffer_size"), (void )&value) == SUCCESS) { ^ 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-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_hash.h:154:30: note: expected ‘zend_string {aka struct _zend_string }’ but argument is of type ‘char ’ ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string key); ^ /root/php-leveldb/leveldb.c:465:6: error: too many arguments to function ‘zend_hash_find’ if (zend_hash_find(ht, "write_buffer_size", sizeof("write_buffer_size"), (void )&value) == SUCCESS) { ^ 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-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_hash.h:154:30: note: declared here ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string *key); ^ /root/php-leveldb/leveldb.c:467:50: warning: implicit declaration of function ‘Z_LVAL_PP’ [-Wimplicit-function-declaration] leveldb_options_set_write_buffer_size(options, Z_LVAL_PP(value)); ^ /root/php-leveldb/leveldb.c:470:25: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types] if (zend_hash_find(ht, "max_open_files", sizeof("max_open_files"), (void )&value) == SUCCESS) { ^ 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-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_hash.h:154:30: note: expected ‘zend_string {aka struct _zend_string }’ but argument is of type ‘char ’ ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string key); ^ /root/php-leveldb/leveldb.c:470:6: error: too many arguments to function ‘zend_hash_find’ if (zend_hash_find(ht, "max_open_files", sizeof("max_open_files"), (void )&value) == SUCCESS) { ^ 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-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_hash.h:154:30: note: declared here ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string *key); ^ /root/php-leveldb/leveldb.c:475:25: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types] if (zend_hash_find(ht, "block_size", sizeof("block_size"), (void )&value) == SUCCESS) { ^ 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-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_hash.h:154:30: note: expected ‘zend_string {aka struct _zend_string }’ but argument is of type ‘char ’ ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string key); ^ /root/php-leveldb/leveldb.c:475:6: error: too many arguments to function ‘zend_hash_find’ if (zend_hash_find(ht, "block_size", sizeof("block_size"), (void )&value) == SUCCESS) { ^ 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-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_hash.h:154:30: note: declared here ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string *key); ^ /root/php-leveldb/leveldb.c:480:25: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types] if (zend_hash_find(ht, "block_cache_size", sizeof("block_cache_size"), (void )&value) == SUCCESS) { ^ 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-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_hash.h:154:30: note: expected ‘zend_string {aka struct _zend_string }’ but argument is of type ‘char ’ ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string key); ^ /root/php-leveldb/leveldb.c:480:6: error: too many arguments to function ‘zend_hash_find’ if (zend_hash_find(ht, "block_cache_size", sizeof("block_cache_size"), (void )&value) == SUCCESS) { ^ 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-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_hash.h:154:30: note: declared here ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string *key); ^ /root/php-leveldb/leveldb.c:485:25: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types] if (zend_hash_find(ht, "block_restart_interval", sizeof("block_restart_interval"), (void )&value) == SUCCESS) { ^ 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-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_hash.h:154:30: note: expected ‘zend_string {aka struct _zend_string }’ but argument is of type ‘char ’ ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string key); ^ /root/php-leveldb/leveldb.c:485:6: error: too many arguments to function ‘zend_hash_find’ if (zend_hash_find(ht, "block_restart_interval", sizeof("block_restart_interval"), (void )&value) == SUCCESS) { ^ 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-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_hash.h:154:30: note: declared here ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string *key); ^ /root/php-leveldb/leveldb.c:490:25: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types] if (zend_hash_find(ht, "compression", sizeof("compression"), (void )&value) == SUCCESS) { ^ 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-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_hash.h:154:30: note: expected ‘zend_string {aka struct _zend_string }’ but argument is of type ‘char ’ ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string key); ^ /root/php-leveldb/leveldb.c:490:6: error: too many arguments to function ‘zend_hash_find’ if (zend_hash_find(ht, "compression", sizeof("compression"), (void )&value) == SUCCESS) { ^ 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-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_hash.h:154:30: note: declared here ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string *key); ^ /root/php-leveldb/leveldb.c:499:25: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types] if (zend_hash_find(ht, "comparator", sizeof("comparator"), (void )&value) == SUCCESS ^ 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-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_hash.h:154:30: note: expected ‘zend_string {aka struct _zend_string }’ but argument is of type ‘char ’ ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string key); ^ /root/php-leveldb/leveldb.c:499:6: error: too many arguments to function ‘zend_hash_find’ if (zend_hash_find(ht, "comparator", sizeof("comparator"), (void )&value) == SUCCESS ^ 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-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_hash.h:154:30: note: declared here ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string key); ^ /root/php-leveldb/leveldb.c:505:36: warning: passing argument 3 of ‘zend_is_callable’ from incompatible pointer type [-Wincompatible-pointer-types] if (!zend_is_callable(value, 0, callable_name TSRMLS_CC)) { ^ In file included from /usr/include/php/20151012/main/php.h:40:0, from /root/php-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_API.h:314:20: note: expected ‘zend_string {aka struct _zend_string }’ but argument is of type ‘char ’ ZEND_API zend_bool zend_is_callable(zval callable, uint check_flags, zend_string callable_name); ^ /root/php-leveldb/leveldb.c:518:3: warning: implicit declaration of function ‘Z_ADDREF_PP’ [-Wimplicit-function-declaration] Z_ADDREF_PP(value); ^ /root/php-leveldb/leveldb.c: In function ‘php_leveldb_get_readoptions’: /root/php-leveldb/leveldb.c:544:25: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types] if (zend_hash_find(ht, "verify_check_sum", sizeof("verify_check_sum"), (void )&value) == SUCCESS) { ^ 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-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_hash.h:154:30: note: expected ‘zend_string {aka struct _zend_string }’ but argument is of type ‘char ’ ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string *key); ^ /root/php-leveldb/leveldb.c:544:6: error: too many arguments to function ‘zend_hash_find’ if (zend_hash_find(ht, "verify_check_sum", sizeof("verify_check_sum"), (void *)&value) == SUCCESS) { ^ 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-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_hash.h:154:30: note: declared here ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string key); ^ /root/php-leveldb/leveldb.c:550:25: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types] if (zend_hash_find(ht, "fill_cache", sizeof("fill_cache"), (void )&value) == SUCCESS) { ^ 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-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_hash.h:154:30: note: expected ‘zend_string {aka struct _zend_string }’ but argument is of type ‘char ’ ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string key); ^ /root/php-leveldb/leveldb.c:550:6: error: too many arguments to function ‘zend_hash_find’ if (zend_hash_find(ht, "fill_cache", sizeof("fill_cache"), (void )&value) == SUCCESS) { ^ 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-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_hash.h:154:30: note: declared here ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string *key); ^ /root/php-leveldb/leveldb.c:556:25: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types] if (zend_hash_find(ht, "snapshot", sizeof("snapshot"), (void )&value) == SUCCESS ^ 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-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_hash.h:154:30: note: expected ‘zend_string {aka struct _zend_string }’ but argument is of type ‘char ’ ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string key); ^ /root/php-leveldb/leveldb.c:556:6: error: too many arguments to function ‘zend_hash_find’ if (zend_hash_find(ht, "snapshot", sizeof("snapshot"), (void )&value) == SUCCESS ^ 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-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_hash.h:154:30: note: declared here ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string key); ^ /root/php-leveldb/leveldb.c:558:7: warning: implicit declaration of function ‘Z_TYPE_PP’ [-Wimplicit-function-declaration] if (Z_TYPE_PP(value) == IS_OBJECT && Z_OBJCE_PP(value) == php_leveldb_snapshot_class_entry) { ^ /root/php-leveldb/leveldb.c:558:40: warning: implicit declaration of function ‘Z_OBJCE_PP’ [-Wimplicit-function-declaration] if (Z_TYPE_PP(value) == IS_OBJECT && Z_OBJCE_PP(value) == php_leveldb_snapshot_class_entry) { ^ /root/php-leveldb/leveldb.c:558:58: warning: comparison between pointer and integer if (Z_TYPE_PP(value) == IS_OBJECT && Z_OBJCE_PP(value) == php_leveldb_snapshot_class_entry) { ^ /root/php-leveldb/leveldb.c:559:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] leveldb_snapshot_object obj = (leveldb_snapshot_object )zend_object_store_get_object(value TSRMLS_CC); ^ /root/php-leveldb/leveldb.c: In function ‘php_leveldb_set_readoptions’: /root/php-leveldb/leveldb.c:592:25: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types] if (zend_hash_find(ht, "verify_check_sum", sizeof("verify_check_sum"), (void )&value) == SUCCESS) { ^ 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-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_hash.h:154:30: note: expected ‘zend_string {aka struct _zend_string }’ but argument is of type ‘char ’ ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string key); ^ /root/php-leveldb/leveldb.c:592:6: error: too many arguments to function ‘zend_hash_find’ if (zend_hash_find(ht, "verify_check_sum", sizeof("verify_check_sum"), (void )&value) == SUCCESS) { ^ 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-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_hash.h:154:30: note: declared here ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string *key); ^ /root/php-leveldb/leveldb.c:596:25: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types] if (zend_hash_find(ht, "fill_cache", sizeof("fill_cache"), (void )&value) == SUCCESS) { ^ 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-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_hash.h:154:30: note: expected ‘zend_string {aka struct _zend_string }’ but argument is of type ‘char ’ ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string key); ^ /root/php-leveldb/leveldb.c:596:6: error: too many arguments to function ‘zend_hash_find’ if (zend_hash_find(ht, "fill_cache", sizeof("fill_cache"), (void )&value) == SUCCESS) { ^ 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-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_hash.h:154:30: note: declared here ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string *key); ^ /root/php-leveldb/leveldb.c: In function ‘php_leveldb_get_writeoptions’: /root/php-leveldb/leveldb.c:612:25: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types] if (zend_hash_find(ht, "sync", sizeof("sync"), (void )&value) == SUCCESS) { ^ 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-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_hash.h:154:30: note: expected ‘zend_string {aka struct _zend_string }’ but argument is of type ‘char ’ ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string key); ^ /root/php-leveldb/leveldb.c:612:6: error: too many arguments to function ‘zend_hash_find’ if (zend_hash_find(ht, "sync", sizeof("sync"), (void )&value) == SUCCESS) { ^ 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-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_hash.h:154:30: note: declared here ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string *key); ^ /root/php-leveldb/leveldb.c: In function ‘php_leveldb_set_writeoptions’: /root/php-leveldb/leveldb.c:629:45: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types] if (zend_hash_find(Z_ARRVAL_P(options_zv), "sync", sizeof("sync"), (void )&value) == SUCCESS) { ^ 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-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_hash.h:154:30: note: expected ‘zend_string {aka struct _zend_string }’ but argument is of type ‘char ’ ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string key); ^ /root/php-leveldb/leveldb.c:629:6: error: too many arguments to function ‘zend_hash_find’ if (zend_hash_find(Z_ARRVAL_P(options_zv), "sync", sizeof("sync"), (void )&value) == SUCCESS) { ^ 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-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_hash.h:154:30: note: declared here ZEND_API zval ZEND_FASTCALL zend_hash_find(const HashTable ht, zend_string key); ^ /root/php-leveldb/leveldb.c: In function ‘zim_LevelDB___construct’: /root/php-leveldb/leveldb.c:654:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] intern = (leveldb_object )zend_object_store_get_object(getThis() TSRMLS_CC); ^ /root/php-leveldb/leveldb.c: In function ‘zim_LevelDB_get’: /root/php-leveldb/leveldb.c:697:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] intern = (leveldb_object )zend_object_store_get_object(getThis() TSRMLS_CC); ^ /root/php-leveldb/leveldb.c:710:36: error: macro "RETVAL_STRINGL" passed 3 arguments, but takes just 2 RETVAL_STRINGL(value, value_len, 1); ^ /root/php-leveldb/leveldb.c:710:2: error: ‘RETVAL_STRINGL’ undeclared (first use in this function) RETVAL_STRINGL(value, value_len, 1); ^ /root/php-leveldb/leveldb.c: In function ‘zim_LevelDB_set’: /root/php-leveldb/leveldb.c:734:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] intern = (leveldb_object )zend_object_store_get_object(getThis() TSRMLS_CC); ^ /root/php-leveldb/leveldb.c: In function ‘zim_LevelDB_delete’: /root/php-leveldb/leveldb.c:764:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] intern = (leveldb_object )zend_object_store_get_object(getThis() TSRMLS_CC); ^ /root/php-leveldb/leveldb.c: In function ‘zim_LevelDB_write’: /root/php-leveldb/leveldb.c:798:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] intern = (leveldb_object )zend_object_store_get_object(getThis() TSRMLS_CC); ^ /root/php-leveldb/leveldb.c:802:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] write_batch_object = (leveldb_write_batch_object )zend_object_store_get_object(write_batch TSRMLS_CC); ^ /root/php-leveldb/leveldb.c: In function ‘zim_LevelDB_getProperty’: /root/php-leveldb/leveldb.c:825:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] intern = (leveldb_object )zend_object_store_get_object(getThis() TSRMLS_CC); ^ /root/php-leveldb/leveldb.c:834:27: error: macro "RETVAL_STRING" passed 2 arguments, but takes just 1 RETVAL_STRING(property, 1); ^ /root/php-leveldb/leveldb.c:834:2: error: ‘RETVAL_STRING’ undeclared (first use in this function) RETVAL_STRING(property, 1); ^ /root/php-leveldb/leveldb.c: In function ‘zim_LevelDB_compactRange’: /root/php-leveldb/leveldb.c:851:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] intern = (leveldb_object )zend_object_store_get_object(getThis() TSRMLS_CC); ^ /root/php-leveldb/leveldb.c: In function ‘zim_LevelDB_getApproximateSizes’: /root/php-leveldb/leveldb.c:875:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] intern = (leveldb_object )zend_object_store_get_object(getThis() TSRMLS_CC); ^ /root/php-leveldb/leveldb.c:896:58: warning: passing argument 2 of ‘zend_hash_get_current_data_ex’ from incompatible pointer type [-Wincompatible-pointer-types] while (zend_hash_get_current_data_ex(Z_ARRVAL_P(start), (void )&start_val, &pos_start) == SUCCESS && ^ 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-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_hash.h:171:30: note: expected ‘HashPosition {aka unsigned int }’ but argument is of type ‘void ’ ZEND_API zval ZEND_FASTCALL zend_hash_get_current_data_ex(HashTable ht, HashPosition *pos); ^ /root/php-leveldb/leveldb.c:896:9: error: too many arguments to function ‘zend_hash_get_current_data_ex’ while (zend_hash_get_current_data_ex(Z_ARRVAL_P(start), (void *)&start_val, &pos_start) == SUCCESS && ^ 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-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_hash.h:171:30: note: declared here ZEND_API zval ZEND_FASTCALL zend_hash_get_current_data_ex(HashTable ht, HashPosition pos); ^ /root/php-leveldb/leveldb.c:897:52: warning: passing argument 2 of ‘zend_hash_get_current_data_ex’ from incompatible pointer type [-Wincompatible-pointer-types] zend_hash_get_current_data_ex(Z_ARRVAL_P(limit), (void )&limit_val, &pos_limit) == SUCCESS) { ^ 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-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_hash.h:171:30: note: expected ‘HashPosition {aka unsigned int }’ but argument is of type ‘void ’ ZEND_API zval ZEND_FASTCALL zend_hash_get_current_data_ex(HashTable ht, HashPosition *pos); ^ /root/php-leveldb/leveldb.c:897:3: error: too many arguments to function ‘zend_hash_get_current_data_ex’ zend_hash_get_current_data_ex(Z_ARRVAL_P(limit), (void )&limit_val, &pos_limit) == SUCCESS) { ^ 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-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_hash.h:171:30: note: declared here ZEND_API zval ZEND_FASTCALL zend_hash_get_current_data_ex(HashTable ht, HashPosition pos); ^ /root/php-leveldb/leveldb.c:899:18: warning: implicit declaration of function ‘Z_STRVAL_PP’ [-Wimplicit-function-declaration] start_key[i] = Z_STRVAL_PP(start_val); ^ /root/php-leveldb/leveldb.c:899:16: warning: assignment makes pointer from integer without a cast [-Wint-conversion] start_key[i] = Z_STRVAL_PP(start_val); ^ /root/php-leveldb/leveldb.c:900:18: warning: implicit declaration of function ‘Z_STRLEN_PP’ [-Wimplicit-function-declaration] start_len[i] = Z_STRLEN_PP(start_val); ^ /root/php-leveldb/leveldb.c:901:16: warning: assignment makes pointer from integer without a cast [-Wint-conversion] limit_key[i] = Z_STRVAL_PP(limit_val); ^ /root/php-leveldb/leveldb.c: In function ‘zim_LevelDB_close’: /root/php-leveldb/leveldb.c:936:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] intern = (leveldb_object )zend_object_store_get_object(getThis() TSRMLS_CC); ^ /root/php-leveldb/leveldb.c: In function ‘zim_LevelDB_getIterator’: /root/php-leveldb/leveldb.c:958:19: warning: passing argument 1 of ‘zend_call_method’ from incompatible pointer type [-Wincompatible-pointer-types] zend_call_method(&return_value, php_leveldb_iterator_class_entry, ^ In file included from /root/php-leveldb/leveldb.c:28:0: /usr/include/php/20151012/Zend/zend_interfaces.h:41:16: note: expected ‘zval {aka struct _zval_struct }’ but argument is of type ‘zval {aka struct _zval_struct *}’ ZEND_API zval zend_call_method(zval object_pp, zend_class_entry obj_ce, zend_function fn_proxy, const char function_name, size_t function_name_len, zval retval, int param_co ^ In file included from /root/php-leveldb/leveldb.c:28:0: /root/php-leveldb/leveldb.c: In function ‘zim_LevelDB_getSnapshot’: /root/php-leveldb/leveldb.c:974:33: warning: passing argument 1 of ‘zend_call_method’ from incompatible pointer type [-Wincompatible-pointer-types] zend_call_method_with_1_params(&return_value, php_leveldb_snapshot_class_entry, ^ /usr/include/php/20151012/Zend/zend_interfaces.h:47:19: note: in definition of macro ‘zend_call_method_with_1_params’ zend_call_method(obj, obj_ce, fn_proxy, function_name, sizeof(function_name)-1, retval, 1, arg1, NULL) ^ In file included from /root/php-leveldb/leveldb.c:28:0: /usr/include/php/20151012/Zend/zend_interfaces.h:41:16: note: expected ‘zval {aka struct _zval_struct }’ but argument is of type ‘zval {aka struct _zval_struct }’ ZEND_API zval zend_call_method(zval object_pp, zend_class_entry *obj_ce, zend_function *fn_proxy, const char function_name, size_t function_name_len, zval retval, int param_co ^ /root/php-leveldb/leveldb.c: In function ‘zim_LevelDBWriteBatch___construct’: /root/php-leveldb/leveldb.c:1070:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] intern = (leveldb_write_batch_object )zend_object_store_get_object(getThis() TSRMLS_CC); ^ /root/php-leveldb/leveldb.c: In function ‘zim_LevelDBWriteBatch_set’: /root/php-leveldb/leveldb.c:1093:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] intern = (leveldb_write_batch_object )zend_object_store_get_object(getThis() TSRMLS_CC); ^ /root/php-leveldb/leveldb.c: In function ‘zim_LevelDBWriteBatch_delete’: /root/php-leveldb/leveldb.c:1113:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] intern = (leveldb_write_batch_object )zend_object_store_get_object(getThis() TSRMLS_CC); ^ /root/php-leveldb/leveldb.c: In function ‘zim_LevelDBWriteBatch_clear’: /root/php-leveldb/leveldb.c:1130:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] intern = (leveldb_write_batch_object )zend_object_store_get_object(getThis() TSRMLS_CC); ^ /root/php-leveldb/leveldb.c: At top level: /root/php-leveldb/leveldb.c:1155:2: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types] leveldb_iterator_current_data, ^ /root/php-leveldb/leveldb.c:1155:2: note: (near initialization for ‘leveldb_iterator_funcs.get_current_data’) /root/php-leveldb/leveldb.c:1156:2: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types] leveldb_iterator_current_key, ^ /root/php-leveldb/leveldb.c:1156:2: note: (near initialization for ‘leveldb_iterator_funcs.get_current_key’) /root/php-leveldb/leveldb.c: In function ‘leveldb_iterator_get_iterator’: /root/php-leveldb/leveldb.c:1174:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] it_object = (leveldb_iterator_object )zend_object_store_get_object(object TSRMLS_CC); ^ /root/php-leveldb/leveldb.c:1178:24: error: incompatible types when assigning to type ‘zval {aka struct _zval_struct}’ from type ‘void ’ iterator->intern.data = (void )object; ^ /root/php-leveldb/leveldb.c: In function ‘leveldb_iterator_dtor’: /root/php-leveldb/leveldb.c:1191:6: error: used struct type value where scalar is required if (iterator->intern.data) { ^ /root/php-leveldb/leveldb.c:1192:19: error: incompatible types when initializing type ‘zval {aka struct _zval_struct }’ using type ‘zval {aka struct _zval_struct}’ zval *object = iterator->intern.data; ^ In file included from /usr/include/php/20151012/Zend/zend.h:39:0, from /usr/include/php/20151012/main/php.h:36, from /root/php-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
/root/php-leveldb/leveldb.c:1193:3: note: in expansion of macro ‘zval_ptr_dtor’ zval_ptr_dtor(&object); ^ /usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval {aka struct _zval_struct }’ but argument is of type ‘zval {aka struct _zval_struct }’ ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC); ^ /usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
/root/php-leveldb/leveldb.c:1197:3: note: in expansion of macro ‘zval_ptr_dtor’ zval_ptr_dtor(iterator->current); ^ /usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval {aka struct _zval_struct }’ but argument is of type ‘zval {aka struct _zval_struct }’ ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC); ^ /root/php-leveldb/leveldb.c: In function ‘leveldb_iterator_current_data’: /usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
/root/php-leveldb/leveldb.c:1221:3: note: in expansion of macro ‘zval_ptr_dtor’ zval_ptr_dtor(iterator->current); ^ /usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval {aka struct _zval_struct }’ but argument is of type ‘zval {aka struct _zval_struct }’ ZEND_API void _zval_ptr_dtor(zval zval_ptr ZEND_FILE_LINE_DC); ^ /root/php-leveldb/leveldb.c:1229:42: error: macro "ZVAL_STRINGL" passed 4 arguments, but takes just 3 ZVAL_STRINGL(data, value, value_len, 1); ^ /root/php-leveldb/leveldb.c:1229:2: error: ‘ZVAL_STRINGL’ undeclared (first use in this function) ZVAL_STRINGL(data, value, value_len, 1); ^ /root/php-leveldb/leveldb.c: In function ‘zim_LevelDBIterator___construct’: /root/php-leveldb/leveldb.c:1289:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] intern = (leveldb_iterator_object )zend_object_store_get_object(getThis() TSRMLS_CC); ^ /root/php-leveldb/leveldb.c:1290:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] db_obj = (leveldb_object )zend_object_store_get_object(db_zv TSRMLS_CC); ^ /root/php-leveldb/leveldb.c: In function ‘zim_LevelDBIterator_destroy’: /root/php-leveldb/leveldb.c:1331:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] intern = (leveldb_iterator_object )zend_object_store_get_object(getThis() TSRMLS_CC); ^ /root/php-leveldb/leveldb.c: In function ‘zim_LevelDBIterator_getError’: /root/php-leveldb/leveldb.c:1352:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] intern = (leveldb_iterator_object )zend_object_store_get_object(getThis() TSRMLS_CC); ^ /root/php-leveldb/leveldb.c:1315:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] if (((leveldb_object )zend_object_store_get_object((intern)->db TSRMLS_CC))->db == NULL) { \ ^ /root/php-leveldb/leveldb.c:1353:2: note: in expansion of macro ‘LEVELDB_CHECK_ITER_DB_NOT_CLOSED’ LEVELDB_CHECK_ITER_DB_NOT_CLOSED(intern); ^ /root/php-leveldb/leveldb.c:1361:22: error: macro "RETVAL_STRING" passed 2 arguments, but takes just 1 RETVAL_STRING(err, 1); ^ /root/php-leveldb/leveldb.c:1361:2: error: ‘RETVAL_STRING’ undeclared (first use in this function) RETVAL_STRING(err, 1); ^ /root/php-leveldb/leveldb.c: In function ‘zim_LevelDBIterator_current’: /root/php-leveldb/leveldb.c:1378:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] intern = (leveldb_iterator_object )zend_object_store_get_object(getThis() TSRMLS_CC); ^ /root/php-leveldb/leveldb.c:1315:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] if (((leveldb_object )zend_object_store_get_object((intern)->db TSRMLS_CC))->db == NULL) { \ ^ /root/php-leveldb/leveldb.c:1379:2: note: in expansion of macro ‘LEVELDB_CHECK_ITER_DB_NOT_CLOSED’ LEVELDB_CHECK_ITER_DB_NOT_CLOSED(intern); ^ /root/php-leveldb/leveldb.c:1386:36: error: macro "RETURN_STRINGL" passed 3 arguments, but takes just 2 RETURN_STRINGL(value, value_len, 1); ^ /root/php-leveldb/leveldb.c:1386:2: error: ‘RETURN_STRINGL’ undeclared (first use in this function) RETURN_STRINGL(value, value_len, 1); ^ /root/php-leveldb/leveldb.c: In function ‘zim_LevelDBIterator_key’: /root/php-leveldb/leveldb.c:1402:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] intern = (leveldb_iterator_object )zend_object_store_get_object(getThis() TSRMLS_CC); ^ /root/php-leveldb/leveldb.c:1315:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] if (((leveldb_object )zend_object_store_get_object((intern)->db TSRMLS_CC))->db == NULL) { \ ^ /root/php-leveldb/leveldb.c:1403:2: note: in expansion of macro ‘LEVELDB_CHECK_ITER_DB_NOT_CLOSED’ LEVELDB_CHECK_ITER_DB_NOT_CLOSED(intern); ^ /root/php-leveldb/leveldb.c:1410:32: error: macro "RETURN_STRINGL" passed 3 arguments, but takes just 2 RETURN_STRINGL(key, key_len, 1); ^ /root/php-leveldb/leveldb.c:1410:2: error: ‘RETURN_STRINGL’ undeclared (first use in this function) RETURN_STRINGL(key, key_len, 1); ^ /root/php-leveldb/leveldb.c: In function ‘zim_LevelDBIterator_next’: /root/php-leveldb/leveldb.c:1424:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] intern = (leveldb_iterator_object )zend_object_store_get_object(getThis() TSRMLS_CC); ^ /root/php-leveldb/leveldb.c:1315:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] if (((leveldb_object )zend_object_store_get_object((intern)->db TSRMLS_CC))->db == NULL) { \ ^ /root/php-leveldb/leveldb.c:1425:2: note: in expansion of macro ‘LEVELDB_CHECK_ITER_DB_NOT_CLOSED’ LEVELDB_CHECK_ITER_DB_NOT_CLOSED(intern); ^ /root/php-leveldb/leveldb.c: In function ‘zim_LevelDBIterator_prev’: /root/php-leveldb/leveldb.c:1443:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] intern = (leveldb_iterator_object )zend_object_store_get_object(getThis() TSRMLS_CC); ^ /root/php-leveldb/leveldb.c:1315:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] if (((leveldb_object )zend_object_store_get_object((intern)->db TSRMLS_CC))->db == NULL) { \ ^ /root/php-leveldb/leveldb.c:1444:2: note: in expansion of macro ‘LEVELDB_CHECK_ITER_DB_NOT_CLOSED’ LEVELDB_CHECK_ITER_DB_NOT_CLOSED(intern); ^ /root/php-leveldb/leveldb.c: In function ‘zim_LevelDBIterator_rewind’: /root/php-leveldb/leveldb.c:1462:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] intern = (leveldb_iterator_object )zend_object_store_get_object(getThis() TSRMLS_CC); ^ /root/php-leveldb/leveldb.c:1315:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] if (((leveldb_object )zend_object_store_get_object((intern)->db TSRMLS_CC))->db == NULL) { \ ^ /root/php-leveldb/leveldb.c:1463:2: note: in expansion of macro ‘LEVELDB_CHECK_ITER_DB_NOT_CLOSED’ LEVELDB_CHECK_ITER_DB_NOT_CLOSED(intern); ^ /root/php-leveldb/leveldb.c: In function ‘zim_LevelDBIterator_last’: /root/php-leveldb/leveldb.c:1479:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] intern = (leveldb_iterator_object )zend_object_store_get_object(getThis() TSRMLS_CC); ^ /root/php-leveldb/leveldb.c:1315:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] if (((leveldb_object )zend_object_store_get_object((intern)->db TSRMLS_CC))->db == NULL) { \ ^ /root/php-leveldb/leveldb.c:1480:2: note: in expansion of macro ‘LEVELDB_CHECK_ITER_DB_NOT_CLOSED’ LEVELDB_CHECK_ITER_DB_NOT_CLOSED(intern); ^ /root/php-leveldb/leveldb.c: In function ‘zim_LevelDBIterator_seek’: /root/php-leveldb/leveldb.c:1498:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] intern = (leveldb_iterator_object )zend_object_store_get_object(getThis() TSRMLS_CC); ^ /root/php-leveldb/leveldb.c:1315:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] if (((leveldb_object )zend_object_store_get_object((intern)->db TSRMLS_CC))->db == NULL) { \ ^ /root/php-leveldb/leveldb.c:1499:2: note: in expansion of macro ‘LEVELDB_CHECK_ITER_DB_NOT_CLOSED’ LEVELDB_CHECK_ITER_DB_NOT_CLOSED(intern); ^ /root/php-leveldb/leveldb.c: In function ‘zim_LevelDBIterator_valid’: /root/php-leveldb/leveldb.c:1515:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] intern = (leveldb_iterator_object )zend_object_store_get_object(getThis() TSRMLS_CC); ^ /root/php-leveldb/leveldb.c:1315:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] if (((leveldb_object )zend_object_store_get_object((intern)->db TSRMLS_CC))->db == NULL) { \ ^ /root/php-leveldb/leveldb.c:1516:2: note: in expansion of macro ‘LEVELDB_CHECK_ITER_DB_NOT_CLOSED’ LEVELDB_CHECK_ITER_DB_NOT_CLOSED(intern); ^ /root/php-leveldb/leveldb.c: In function ‘zim_LevelDBSnapshot___construct’: /root/php-leveldb/leveldb.c:1535:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] intern = (leveldb_snapshot_object )zend_object_store_get_object(getThis() TSRMLS_CC); ^ /root/php-leveldb/leveldb.c:1536:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] db_obj = (leveldb_object )zend_object_store_get_object(db_zv TSRMLS_CC); ^ /root/php-leveldb/leveldb.c: In function ‘zim_LevelDBSnapshot_release’: /root/php-leveldb/leveldb.c:1556:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] intern = (leveldb_snapshot_object )zend_object_store_get_object(getThis() TSRMLS_CC); ^ /root/php-leveldb/leveldb.c:1563:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] leveldb_object db = (leveldb_object *)zend_object_store_get_object(intern->db TSRMLS_CC); ^ In file included from /usr/include/php/20151012/Zend/zend.h:39:0, from /usr/include/php/20151012/main/php.h:36, from /root/php-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
/root/php-leveldb/leveldb.c:1565:3: note: in expansion of macro ‘zval_ptr_dtor’ zval_ptr_dtor(&intern->db); ^ /usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval {aka struct _zval_struct }’ but argument is of type ‘zval {aka struct _zval_struct }’ ZEND_API void _zval_ptr_dtor(zval zval_ptr ZEND_FILE_LINE_DC); ^ /root/php-leveldb/leveldb.c: In function ‘zm_startup_leveldb’: /root/php-leveldb/leveldb.c:1585:19: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] ce.create_object = php_leveldb_object_new; ^ /root/php-leveldb/leveldb.c:1590:19: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] ce.create_object = php_leveldb_write_batch_object_new; ^ /root/php-leveldb/leveldb.c:1595:19: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] ce.create_object = php_leveldb_iterator_object_new; ^ /root/php-leveldb/leveldb.c:1602:19: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] ce.create_object = php_leveldb_snapshot_object_new; ^ /root/php-leveldb/leveldb.c:1608:36: error: too many arguments to function ‘zend_register_internal_class_ex’ php_leveldb_ce_LevelDBException = zend_register_internal_class_ex(&ce, exception_ce, NULL TSRMLS_CC); ^ In file included from /usr/include/php/20151012/main/php.h:40:0, from /root/php-leveldb/leveldb.c:25: /usr/include/php/20151012/Zend/zend_API.h:290:28: note: declared here ZEND_API zend_class_entry zend_register_internal_class_ex(zend_class_entry class_entry, zend_class_entry parent_ce); ^ Makefile:194: recipe for target 'leveldb.lo' failed make: *** [leveldb.lo] Error 1
any workaround ? Regards