Hey guys
When I try that last line of the installation,
phpize && ./configure --with-secp256k1 && make && sudo make install
I get this error.
Configuring for:
PHP Api Version: 20121113
Zend Module Api No: 20121212
Zend Extension Api No: 220121212
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-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib
checking for PHP extension directory... /usr/lib/php5/20121212
checking for PHP installed headers prefix... /usr/include/php5
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 secp256k1 support... yes, shared
checking for secp256k1 files in default path... found in /usr/local
checking for secp256k1_context_create in -lsecp256k1... yes
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 whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-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 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: executing libtool commands
/bin/bash /home/ubuntu/workspace/secp256k1-php/secp256k1/libtool --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/home/ubuntu/workspace/secp256k1-php/secp256k1 -DPHP_ATOM_INC -I/home/ubuntu/workspace/secp256k1-php/secp256k1/include -I/home/ubuntu/workspace/secp256k1-php/secp256k1/main -I/home/ubuntu/workspace/secp256k1-php/secp256k1 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c -o secp256k1.lo
libtool: compile: cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/home/ubuntu/workspace/secp256k1-php/secp256k1 -DPHP_ATOM_INC -I/home/ubuntu/workspace/secp256k1-php/secp256k1/include -I/home/ubuntu/workspace/secp256k1-php/secp256k1/main -I/home/ubuntu/workspace/secp256k1-php/secp256k1 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c -fPIC -DPIC -o .libs/secp256k1.o
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:259:32: error: unknown type name ‘zend_resource’
static void secp256k1_ctx_dtor(zend_resource rsrc TSRMLS_DC)
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:267:35: error: unknown type name ‘zend_resource’
static void secp256k1_pubkey_dtor(zend_resource *rsrc TSRMLS_DC)
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:275:32: error: unknown type name ‘zend_resource’
static void secp256k1_sig_dtor(zend_resource * rsrc TSRMLS_DC)
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:283:44: error: unknown type name ‘zend_resource’
static void secp256k1_recoverable_sig_dtor(zend_resource * rsrc TSRMLS_DC)
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c: In function ‘zm_startup_secp256k1’:
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:292:58: error: ‘secp256k1_ctx_dtor’ undeclared (first use in this function)
le_secp256k1_ctx = zend_register_list_destructors_ex(secp256k1_ctx_dtor, NULL, SECP256K1_CTX_RES_NAME, module_number);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:292:58: note: each undeclared identifier is reported only once for each function it appears in
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:293:61: error: ‘secp256k1_pubkey_dtor’ undeclared (first use in this function)
le_secp256k1_pubkey = zend_register_list_destructors_ex(secp256k1_pubkey_dtor, NULL, SECP256K1_PUBKEY_RES_NAME, module_number);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:294:58: error: ‘secp256k1_sig_dtor’ undeclared (first use in this function)
le_secp256k1_sig = zend_register_list_destructors_ex(secp256k1_sig_dtor, NULL, SECP256K1_SIG_RES_NAME, module_number);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:295:70: error: ‘secp256k1_recoverable_sig_dtor’ undeclared (first use in this function)
le_secp256k1_recoverable_sig = zend_register_list_destructors_ex(secp256k1_recoverable_sig_dtor, NULL, SECP256K1_RECOVERABLE_SIG_RES_NAME, module_number);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c: In function ‘zif_secp256k1_context_create’:
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:361:5: warning: passing argument 1 of ‘zend_register_resource’ from incompatible pointer type [enabled by default]
RETURN_RES(zend_register_resource(ctx, le_secp256k1_ctx));
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: expected ‘struct zval *’ but argument is of type ‘struct secp256k1_context *’
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:361:5: warning: passing argument 2 of ‘zend_register_resource’ makes pointer from integer without a cast [enabled by default]
RETURN_RES(zend_register_resource(ctx, le_secp256k1_ctx));
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: expected ‘void *’ but argument is of type ‘int’
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:361:5: error: too few arguments to function ‘zend_register_resource’
RETURN_RES(zend_register_resource(ctx, le_secp256k1_ctx));
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: declared here
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c: In function ‘zif_secp256k1_context_clone’:
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:393:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((ctx = (secp256k1_context *)zend_fetch_resource2_ex(zCtx, SECP256K1_CTX_RES_NAME, le_secp256k1_ctx, -1)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:398:5: warning: passing argument 1 of ‘zend_register_resource’ from incompatible pointer type [enabled by default]
RETURN_RES(zend_register_resource(newCtx, le_secp256k1_ctx));
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: expected ‘struct zval *’ but argument is of type ‘struct secp256k1_context *’
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:398:5: warning: passing argument 2 of ‘zend_register_resource’ makes pointer from integer without a cast [enabled by default]
RETURN_RES(zend_register_resource(newCtx, le_secp256k1_ctx));
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: expected ‘void *’ but argument is of type ‘int’
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:398:5: error: too few arguments to function ‘zend_register_resource’
RETURN_RES(zend_register_resource(newCtx, le_secp256k1_ctx));
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: declared here
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c: In function ‘zif_secp256k1_context_randomize’:
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:415:5: error: unknown type name ‘zend_string’
zend_string seed32;
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:420:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((ctx = (secp256k1_context )zend_fetch_resource2_ex(zCtx, SECP256K1_CTX_RES_NAME, le_secp256k1_ctx, -1)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:424:53: error: request for member ‘val’ in something not a structure or union
result = secp256k1_context_randomize(ctx, seed32->val);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c: In function ‘zif_secp256k1_ecdsa_signature_serialize_der’:
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:442:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((ctx = (secp256k1_context *)zend_fetch_resource2_ex(zCtx, SECP256K1_CTX_RES_NAME, le_secp256k1_ctx, -1)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:446:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((sig = (secp256k1_ecdsa_signature *)zend_fetch_resource2_ex(zSig, SECP256K1_SIG_RES_NAME, le_secp256k1_sig, -1)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:453:48: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given
ZVAL_STRINGL(zSigOut, sigout, sigoutlen);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:453:9: error: ‘ZVAL_STRINGL’ undeclared (first use in this function)
ZVAL_STRINGL(zSigOut, sigout, sigoutlen);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c: In function ‘zif_secp256k1_ecdsa_signature_parse_der’:
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:473:5: error: unknown type name ‘zend_string’
zend_string *sigin;
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:479:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((ctx = (secp256k1_context *)zend_fetch_resource2_ex(zCtx, SECP256K1_CTX_RES_NAME, le_secp256k1_ctx, -1)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:484:65: error: request for member ‘val’ in something not a structure or union
result = secp256k1_ecdsa_signature_parse_der(ctx, sig, sigin->val, sigin->len);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:484:77: error: request for member ‘len’ in something not a structure or union
result = secp256k1_ecdsa_signature_parse_der(ctx, sig, sigin->val, sigin->len);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:487:9: warning: passing argument 1 of ‘zend_register_resource’ from incompatible pointer type [enabled by default]
ZVAL_RES(zSig, zend_register_resource(sig, le_secp256k1_sig));
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: expected ‘struct zval *’ but argument is of type ‘struct secp256k1_ecdsa_signature *’
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:487:9: warning: passing argument 2 of ‘zend_register_resource’ makes pointer from integer without a cast [enabled by default]
ZVAL_RES(zSig, zend_register_resource(sig, le_secp256k1_sig));
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: expected ‘void *’ but argument is of type ‘int’
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:487:9: error: too few arguments to function ‘zend_register_resource’
ZVAL_RES(zSig, zend_register_resource(sig, le_secp256k1_sig));
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: declared here
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c: In function ‘zif_secp256k1_ecdsa_signature_normalize’:
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:512:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((ctx = (secp256k1_context *)zend_fetch_resource2_ex(zCtx, SECP256K1_CTX_RES_NAME, le_secp256k1_ctx, -1)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:516:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((sigin = (secp256k1_ecdsa_signature *)zend_fetch_resource2_ex(zSigIn, SECP256K1_SIG_RES_NAME, le_secp256k1_sig, -1)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:523:25: error: invalid type argument of ‘->’ (have ‘int’)
Z_RES_P(zSigOut)->ptr = zend_register_resource(sigout, le_secp256k1_sig);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:523:9: warning: passing argument 1 of ‘zend_register_resource’ from incompatible pointer type [enabled by default]
Z_RES_P(zSigOut)->ptr = zend_register_resource(sigout, le_secp256k1_sig);
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: expected ‘struct zval *’ but argument is of type ‘struct secp256k1_ecdsa_signature *’
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:523:9: warning: passing argument 2 of ‘zend_register_resource’ makes pointer from integer without a cast [enabled by default]
Z_RES_P(zSigOut)->ptr = zend_register_resource(sigout, le_secp256k1_sig);
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: expected ‘void *’ but argument is of type ‘int’
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:523:9: error: too few arguments to function ‘zend_register_resource’
Z_RES_P(zSigOut)->ptr = zend_register_resource(sigout, le_secp256k1_sig);
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: declared here
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c: In function ‘zif_secp256k1_ecdsa_verify’:
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:546:5: error: unknown type name ‘zend_string’
zend_string *msg32;
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:553:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((ctx = (secp256k1_context *)zend_fetch_resource2_ex(zCtx, SECP256K1_CTX_RES_NAME, le_secp256k1_ctx, -1)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:557:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((sig = (secp256k1_ecdsa_signature *)zend_fetch_resource2_ex(zSig, SECP256K1_SIG_RES_NAME, le_secp256k1_sig, -1)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:561:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((pubkey = (secp256k1_pubkey *)zend_fetch_resource2_ex(zPubKey, SECP256K1_PUBKEY_RES_NAME, le_secp256k1_pubkey, -1)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:567:55: error: request for member ‘val’ in something not a structure or union
result = secp256k1_ecdsa_verify(ctx, sigcpy, msg32->val, pubkey);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c: In function ‘zif_secp256k1_ecdsa_sign’:
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:619:5: error: unknown type name ‘zend_string’
zend_string *msg32, *seckey;
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:626:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((ctx = (secp256k1_context *)zend_fetch_resource2_ex(zCtx, SECP256K1_CTX_RES_NAME, le_secp256k1_ctx, -1)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:630:14: error: request for member ‘len’ in something not a structure or union
if (msg32->len != HASH_LENGTH) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:636:15: error: request for member ‘len’ in something not a structure or union
if (seckey->len != SECRETKEY_LENGTH) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:643:53: error: request for member ‘val’ in something not a structure or union
result = secp256k1_ecdsa_sign(ctx, newsig, msg32->val, seckey->val, NULL, NULL);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:643:66: error: request for member ‘val’ in something not a structure or union
result = secp256k1_ecdsa_sign(ctx, newsig, msg32->val, seckey->val, NULL, NULL);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:646:9: warning: passing argument 1 of ‘zend_register_resource’ from incompatible pointer type [enabled by default]
ZVAL_RES(zSig, zend_register_resource(newsig, le_secp256k1_sig));
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: expected ‘struct zval *’ but argument is of type ‘struct secp256k1_ecdsa_signature *’
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:646:9: warning: passing argument 2 of ‘zend_register_resource’ makes pointer from integer without a cast [enabled by default]
ZVAL_RES(zSig, zend_register_resource(newsig, le_secp256k1_sig));
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: expected ‘void *’ but argument is of type ‘int’
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:646:9: error: too few arguments to function ‘zend_register_resource’
ZVAL_RES(zSig, zend_register_resource(newsig, le_secp256k1_sig));
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: declared here
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c: In function ‘zif_secp256k1_ec_seckey_verify’:
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:663:5: error: unknown type name ‘zend_string’
zend_string *seckey;
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:670:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((ctx = (secp256k1_context *)zend_fetch_resource2_ex(zCtx, SECP256K1_CTX_RES_NAME, le_secp256k1_ctx, -1)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:674:15: error: request for member ‘len’ in something not a structure or union
if (seckey->len != SECRETKEY_LENGTH) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:679:52: error: request for member ‘val’ in something not a structure or union
result = secp256k1_ec_seckey_verify(ctx, seckey->val);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c: In function ‘zif_secp256k1_ec_pubkey_create’:
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:705:5: error: unknown type name ‘zend_string’
zend_string *seckey;
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:712:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((ctx = (secp256k1_context *)zend_fetch_resource2_ex(zCtx, SECP256K1_CTX_RES_NAME, le_secp256k1_ctx, -1)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:716:15: error: request for member ‘len’ in something not a structure or union
if (seckey->len != SECRETKEY_LENGTH) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:722:77: error: request for member ‘val’ in something not a structure or union
result = secp256k1_ec_pubkey_create(ctx, pubkey, (unsigned char *)seckey->val);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:725:9: warning: passing argument 1 of ‘zend_register_resource’ from incompatible pointer type [enabled by default]
ZVAL_RES(zPubKey, zend_register_resource(pubkey, le_secp256k1_pubkey));
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: expected ‘struct zval *’ but argument is of type ‘struct secp256k1_pubkey *’
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:725:9: warning: passing argument 2 of ‘zend_register_resource’ makes pointer from integer without a cast [enabled by default]
ZVAL_RES(zPubKey, zend_register_resource(pubkey, le_secp256k1_pubkey));
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: expected ‘void *’ but argument is of type ‘int’
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:725:9: error: too few arguments to function ‘zend_register_resource’
ZVAL_RES(zPubKey, zend_register_resource(pubkey, le_secp256k1_pubkey));
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: declared here
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c: In function ‘zif_secp256k1_ec_pubkey_parse’:
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:745:5: error: unknown type name ‘zend_string’
zend_string *pubkeyin;
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:752:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((ctx = (secp256k1_context *)zend_fetch_resource2_ex(zCtx, SECP256K1_CTX_RES_NAME, le_secp256k1_ctx, -1)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:757:61: error: request for member ‘val’ in something not a structure or union
result = secp256k1_ec_pubkey_parse(ctx, pubkey, pubkeyin->val, pubkeyin->len);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:757:76: error: request for member ‘len’ in something not a structure or union
result = secp256k1_ec_pubkey_parse(ctx, pubkey, pubkeyin->val, pubkeyin->len);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:760:9: warning: passing argument 1 of ‘zend_register_resource’ from incompatible pointer type [enabled by default]
ZVAL_RES(zPubKey, zend_register_resource(pubkey, le_secp256k1_pubkey));
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: expected ‘struct zval *’ but argument is of type ‘struct secp256k1_pubkey *’
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:760:9: warning: passing argument 2 of ‘zend_register_resource’ makes pointer from integer without a cast [enabled by default]
ZVAL_RES(zPubKey, zend_register_resource(pubkey, le_secp256k1_pubkey));
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: expected ‘void *’ but argument is of type ‘int’
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:760:9: error: too few arguments to function ‘zend_register_resource’
ZVAL_RES(zPubKey, zend_register_resource(pubkey, le_secp256k1_pubkey));
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: declared here
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c: In function ‘zif_secp256k1_ec_pubkey_serialize’:
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:779:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((ctx = (secp256k1_context *)zend_fetch_resource2_ex(zCtx, SECP256K1_CTX_RES_NAME, le_secp256k1_ctx, -1)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:783:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((pubkey = (secp256k1_pubkey *)zend_fetch_resource2_ex(zPubKey, SECP256K1_PUBKEY_RES_NAME, le_secp256k1_pubkey, -1)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:792:51: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given
ZVAL_STRINGL(zPubOut, pubkeyout, pubkeylen);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:792:9: error: ‘ZVAL_STRINGL’ undeclared (first use in this function)
ZVAL_STRINGL(zPubOut, pubkeyout, pubkeylen);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c: In function ‘zif_secp256k1_ec_privkey_tweak_add’:
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:814:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((ctx = (secp256k1_context *)zend_fetch_resource2_ex(zCtx, SECP256K1_CTX_RES_NAME, le_secp256k1_ctx, 0)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c: In function ‘zif_secp256k1_ec_pubkey_tweak_add’:
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:839:5: error: unknown type name ‘zend_string’
zend_string *tweak;
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:846:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((ctx = (secp256k1_context *)zend_fetch_resource2_ex(zCtx, SECP256K1_CTX_RES_NAME, le_secp256k1_ctx, 0)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:850:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((pubkey = (secp256k1_pubkey *)zend_fetch_resource2_ex(zPubKey, SECP256K1_PUBKEY_RES_NAME, le_secp256k1_pubkey, 0)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:854:14: error: request for member ‘len’ in something not a structure or union
if (tweak->len != SECRETKEY_LENGTH) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:859:62: error: request for member ‘val’ in something not a structure or union
result = secp256k1_ec_pubkey_tweak_add(ctx, pubkey, tweak->val);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c: In function ‘zif_secp256k1_ec_privkey_tweak_mul’:
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:868:5: error: unknown type name ‘zend_string’
zend_string *tweak;
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:876:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((ctx = (secp256k1_context *)zend_fetch_resource2_ex(zCtx, SECP256K1_CTX_RES_NAME, le_secp256k1_ctx, -1)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:890:14: error: request for member ‘len’ in something not a structure or union
if (tweak->len != SECRETKEY_LENGTH) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:896:66: error: request for member ‘val’ in something not a structure or union
result = secp256k1_ec_privkey_tweak_mul(ctx, newseckey, tweak->val);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c: In function ‘zif_secp256k1_ec_pubkey_tweak_mul’:
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:908:5: error: unknown type name ‘zend_string’
zend_string *tweak;
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:915:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((ctx = (secp256k1_context *)zend_fetch_resource2_ex(zCtx, SECP256K1_CTX_RES_NAME, le_secp256k1_ctx, -1)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:919:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((pubkey = (secp256k1_pubkey *)zend_fetch_resource2_ex(zPubKey, SECP256K1_PUBKEY_RES_NAME, le_secp256k1_pubkey, -1)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:923:62: error: request for member ‘val’ in something not a structure or union
result = secp256k1_ec_pubkey_tweak_mul(ctx, pubkey, tweak->val);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c: In function ‘zif_secp256k1_ecdsa_recoverable_signature_parse_compact’:
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:935:5: error: unknown type name ‘zend_string’
zend_string *input64;
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:943:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((ctx = (secp256k1_context *)zend_fetch_resource2_ex(zCtx, SECP256K1_CTX_RES_NAME, le_secp256k1_ctx, -1)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:948:83: error: request for member ‘val’ in something not a structure or union
result = secp256k1_ecdsa_recoverable_signature_parse_compact(ctx, sig, input64->val, recid);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:950:9: warning: passing argument 1 of ‘zend_register_resource’ from incompatible pointer type [enabled by default]
ZVAL_RES(zSig, zend_register_resource(sig, le_secp256k1_recoverable_sig));
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: expected ‘struct zval *’ but argument is of type ‘struct secp256k1_ecdsa_recoverable_signature *’
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:950:9: warning: passing argument 2 of ‘zend_register_resource’ makes pointer from integer without a cast [enabled by default]
ZVAL_RES(zSig, zend_register_resource(sig, le_secp256k1_recoverable_sig));
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: expected ‘void *’ but argument is of type ‘int’
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:950:9: error: too few arguments to function ‘zend_register_resource’
ZVAL_RES(zSig, zend_register_resource(sig, le_secp256k1_recoverable_sig));
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: declared here
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c: In function ‘zif_secp256k1_ecdsa_recoverable_signature_convert’:
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:969:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((ctx = (secp256k1_context *)zend_fetch_resource2_ex(zCtx, SECP256K1_CTX_RES_NAME, le_secp256k1_ctx, -1)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:973:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((rSig = (secp256k1_ecdsa_recoverable_signature *)zend_fetch_resource2_ex(zRecoverableSig, SECP256K1_RECOVERABLE_SIG_RES_NAME, le_secp256k1_recoverable_sig, -1)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:980:9: warning: passing argument 1 of ‘zend_register_resource’ from incompatible pointer type [enabled by default]
ZVAL_RES(zNormalSig, zend_register_resource(nSig, le_secp256k1_sig));
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: expected ‘struct zval *’ but argument is of type ‘struct secp256k1_ecdsa_signature *’
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:980:9: warning: passing argument 2 of ‘zend_register_resource’ makes pointer from integer without a cast [enabled by default]
ZVAL_RES(zNormalSig, zend_register_resource(nSig, le_secp256k1_sig));
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: expected ‘void *’ but argument is of type ‘int’
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:980:9: error: too few arguments to function ‘zend_register_resource’
ZVAL_RES(zNormalSig, zend_register_resource(nSig, le_secp256k1_sig));
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: declared here
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c: In function ‘zif_secp256k1_ecdsa_recoverable_signature_serialize_compact’:
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:999:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((ctx = (secp256k1_context *)zend_fetch_resource2_ex(zCtx, SECP256K1_CTX_RES_NAME, le_secp256k1_ctx, -1)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1003:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((recsig = (secp256k1_ecdsa_recoverable_signature *)zend_fetch_resource2_ex(zRecSig, SECP256K1_RECOVERABLE_SIG_RES_NAME, le_secp256k1_recoverable_sig, -1)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1010:60: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given
ZVAL_STRINGL(zSigOut, sig, COMPACT_SIGNATURE_LENGTH);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1010:9: error: ‘ZVAL_STRINGL’ undeclared (first use in this function)
ZVAL_STRINGL(zSigOut, sig, COMPACT_SIGNATURE_LENGTH);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c: In function ‘zif_secp256k1_ecdsa_sign_recoverable’:
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1021:5: error: unknown type name ‘zend_string’
zend_string *msg32, *seckey;
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1029:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((ctx = (secp256k1_context *)zend_fetch_resource2_ex(zCtx, SECP256K1_CTX_RES_NAME, le_secp256k1_ctx, -1)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1033:14: error: request for member ‘len’ in something not a structure or union
if (msg32->len != HASH_LENGTH) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1038:15: error: request for member ‘len’ in something not a structure or union
if (seckey->len != SECRETKEY_LENGTH) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1044:65: error: request for member ‘val’ in something not a structure or union
result = secp256k1_ecdsa_sign_recoverable(ctx, newsig, msg32->val, seckey->val, 0, 0);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1044:78: error: request for member ‘val’ in something not a structure or union
result = secp256k1_ecdsa_sign_recoverable(ctx, newsig, msg32->val, seckey->val, 0, 0);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1046:9: warning: passing argument 1 of ‘zend_register_resource’ from incompatible pointer type [enabled by default]
ZVAL_RES(zSig, zend_register_resource(newsig, le_secp256k1_recoverable_sig));
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: expected ‘struct zval *’ but argument is of type ‘struct secp256k1_ecdsa_recoverable_signature *’
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1046:9: warning: passing argument 2 of ‘zend_register_resource’ makes pointer from integer without a cast [enabled by default]
ZVAL_RES(zSig, zend_register_resource(newsig, le_secp256k1_recoverable_sig));
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: expected ‘void *’ but argument is of type ‘int’
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1046:9: error: too few arguments to function ‘zend_register_resource’
ZVAL_RES(zSig, zend_register_resource(newsig, le_secp256k1_recoverable_sig));
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: declared here
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c: In function ‘zif_secp256k1_ecdsa_recover’:
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1068:5: error: unknown type name ‘zend_string’
zend_string *msg32;
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1075:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((ctx = (secp256k1_context *)zend_fetch_resource2_ex(zCtx, SECP256K1_CTX_RES_NAME, le_secp256k1_ctx, 0)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1079:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((sig = (secp256k1_ecdsa_recoverable_signature *)zend_fetch_resource2_ex(zSig, SECP256K1_RECOVERABLE_SIG_RES_NAME, le_secp256k1_recoverable_sig, 0)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1084:61: error: request for member ‘val’ in something not a structure or union
result = secp256k1_ecdsa_recover(ctx, pubkey, sig, msg32->val);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1086:9: warning: passing argument 1 of ‘zend_register_resource’ from incompatible pointer type [enabled by default]
ZVAL_RES(zPubKey, zend_register_resource(pubkey, le_secp256k1_pubkey));
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: expected ‘struct zval *’ but argument is of type ‘struct secp256k1_pubkey *’
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1086:9: warning: passing argument 2 of ‘zend_register_resource’ makes pointer from integer without a cast [enabled by default]
ZVAL_RES(zPubKey, zend_register_resource(pubkey, le_secp256k1_pubkey));
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: expected ‘void *’ but argument is of type ‘int’
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1086:9: error: too few arguments to function ‘zend_register_resource’
ZVAL_RES(zPubKey, zend_register_resource(pubkey, le_secp256k1_pubkey));
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: declared here
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c: In function ‘zif_secp256k1_ecdh’:
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1098:5: error: unknown type name ‘zend_string’
zend_string *privKey;
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1105:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((ctx = (secp256k1_context *)zend_fetch_resource2_ex(zCtx, SECP256K1_CTX_RES_NAME, le_secp256k1_ctx, -1)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1109:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((pubkey = (secp256k1_pubkey *)zend_fetch_resource2_ex(zPubKey, SECP256K1_PUBKEY_RES_NAME, le_secp256k1_pubkey, -1)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1115:62: error: request for member ‘val’ in something not a structure or union
result = secp256k1_ecdh(ctx, resultChars, pubkey, privKey->val);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1117:46: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given
ZVAL_STRINGL(zResult, resultChars, 32);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1117:9: error: ‘ZVAL_STRINGL’ undeclared (first use in this function)
ZVAL_STRINGL(zResult, resultChars, 32);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c: In function ‘zif_secp256k1_schnorr_verify’:
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1130:5: error: unknown type name ‘zend_string’
zend_string *msg32, *sig64;
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1137:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((ctx = (secp256k1_context *)zend_fetch_resource2_ex(zCtx, SECP256K1_CTX_RES_NAME, le_secp256k1_ctx, -1)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1141:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((pubkey = (secp256k1_pubkey *)zend_fetch_resource2_ex(zPubKey, SECP256K1_PUBKEY_RES_NAME, le_secp256k1_pubkey, -1)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1145:49: error: request for member ‘val’ in something not a structure or union
result = secp256k1_schnorr_verify(ctx, sig64->val, msg32->val, pubkey);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1145:61: error: request for member ‘val’ in something not a structure or union
result = secp256k1_schnorr_verify(ctx, sig64->val, msg32->val, pubkey);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c: In function ‘zif_secp256k1_schnorr_sign’:
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1154:5: error: unknown type name ‘zend_string’
zend_string *seckey, *msg32;
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1161:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((ctx = (secp256k1_context *)zend_fetch_resource2_ex(zCtx, SECP256K1_CTX_RES_NAME, le_secp256k1_ctx, -1)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1165:14: error: request for member ‘len’ in something not a structure or union
if (msg32->len != HASH_LENGTH) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1170:15: error: request for member ‘len’ in something not a structure or union
if (seckey->len != SECRETKEY_LENGTH) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1176:55: error: request for member ‘val’ in something not a structure or union
result = secp256k1_schnorr_sign(ctx, newsig, msg32->val, seckey->val, NULL, NULL);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1176:68: error: request for member ‘val’ in something not a structure or union
result = secp256k1_schnorr_sign(ctx, newsig, msg32->val, seckey->val, NULL, NULL);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1178:38: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given
ZVAL_STRINGL(zSig, newsig, 64);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1178:9: error: ‘ZVAL_STRINGL’ undeclared (first use in this function)
ZVAL_STRINGL(zSig, newsig, 64);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c: In function ‘zif_secp256k1_schnorr_recover’:
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1198:5: error: unknown type name ‘zend_string’
zend_string *sig64, *msg32;
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1205:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((ctx = (secp256k1_context *)zend_fetch_resource2_ex(zCtx, SECP256K1_CTX_RES_NAME, le_secp256k1_ctx, -1)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1210:58: error: request for member ‘val’ in something not a structure or union
result = secp256k1_schnorr_recover(ctx, pubkey, sig64->val, msg32->val);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1210:70: error: request for member ‘val’ in something not a structure or union
result = secp256k1_schnorr_recover(ctx, pubkey, sig64->val, msg32->val);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1212:9: warning: passing argument 1 of ‘zend_register_resource’ from incompatible pointer type [enabled by default]
ZVAL_RES(zPubKey,zend_register_resource(pubkey, le_secp256k1_pubkey));
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: expected ‘struct zval *’ but argument is of type ‘struct secp256k1_pubkey *’
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1212:9: warning: passing argument 2 of ‘zend_register_resource’ makes pointer from integer without a cast [enabled by default]
ZVAL_RES(zPubKey,zend_register_resource(pubkey, le_secp256k1_pubkey));
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: expected ‘void *’ but argument is of type ‘int’
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1212:9: error: too few arguments to function ‘zend_register_resource’
ZVAL_RES(zPubKey,zend_register_resource(pubkey, le_secp256k1_pubkey));
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: declared here
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c: In function ‘zif_secp256k1_schnorr_generate_nonce_pair’:
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1225:5: error: unknown type name ‘zend_string’
zend_string *msg32, *seckey;
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1232:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((ctx = (secp256k1_context *)zend_fetch_resource2_ex(zCtx, SECP256K1_CTX_RES_NAME, le_secp256k1_ctx, -1)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1236:14: error: request for member ‘len’ in something not a structure or union
if (msg32->len != HASH_LENGTH) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1241:15: error: request for member ‘len’ in something not a structure or union
if (seckey->len != SECRETKEY_LENGTH) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1247:85: error: request for member ‘val’ in something not a structure or union
result = secp256k1_schnorr_generate_nonce_pair(ctx, pubnonce, privnonce32, msg32->val, seckey->val, NULL, NULL);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1247:98: error: request for member ‘val’ in something not a structure or union
result = secp256k1_schnorr_generate_nonce_pair(ctx, pubnonce, privnonce32, msg32->val, seckey->val, NULL, NULL);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1249:9: warning: passing argument 1 of ‘zend_register_resource’ from incompatible pointer type [enabled by default]
ZVAL_RES(zPubNonce, zend_register_resource(pubnonce, le_secp256k1_pubkey));
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: expected ‘struct zval *’ but argument is of type ‘struct secp256k1_pubkey *’
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1249:9: warning: passing argument 2 of ‘zend_register_resource’ makes pointer from integer without a cast [enabled by default]
ZVAL_RES(zPubNonce, zend_register_resource(pubnonce, le_secp256k1_pubkey));
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: expected ‘void *’ but argument is of type ‘int’
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1249:9: error: too few arguments to function ‘zend_register_resource’
ZVAL_RES(zPubNonce, zend_register_resource(pubnonce, le_secp256k1_pubkey));
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: declared here
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1250:63: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given
ZVAL_STRINGL(zPrivNonce, privnonce32, SECRETKEY_LENGTH);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1250:9: error: ‘ZVAL_STRINGL’ undeclared (first use in this function)
ZVAL_STRINGL(zPrivNonce, privnonce32, SECRETKEY_LENGTH);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c: In function ‘zif_secp256k1_schnorr_partial_sign’:
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1261:5: error: unknown type name ‘zend_string’
zend_string *seckey, *msg32, *secnonce32;
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1268:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((ctx = (secp256k1_context *)zend_fetch_resource2_ex(zCtx, SECP256K1_CTX_RES_NAME, le_secp256k1_ctx, -1)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1272:28: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((pubnonce_others = (secp256k1_pubkey *)zend_fetch_resource2_ex(zPubNonceOthers, SECP256K1_PUBKEY_RES_NAME, le_secp256k1_pubkey, -1)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1276:14: error: request for member ‘len’ in something not a structure or union
if (msg32->len != HASH_LENGTH) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1281:15: error: request for member ‘len’ in something not a structure or union
if (seckey->len != SECRETKEY_LENGTH) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1286:19: error: request for member ‘len’ in something not a structure or union
if (secnonce32->len != SECRETKEY_LENGTH) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1292:63: error: request for member ‘val’ in something not a structure or union
result = secp256k1_schnorr_partial_sign(ctx, newsig, msg32->val, seckey->val, pubnonce_others, secnonce32->val);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1292:76: error: request for member ‘val’ in something not a structure or union
result = secp256k1_schnorr_partial_sign(ctx, newsig, msg32->val, seckey->val, pubnonce_others, secnonce32->val);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1292:110: error: request for member ‘val’ in something not a structure or union
result = secp256k1_schnorr_partial_sign(ctx, newsig, msg32->val, seckey->val, pubnonce_others, secnonce32->val);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1294:38: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given
ZVAL_STRINGL(zSig, newsig, 64);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1294:9: error: ‘ZVAL_STRINGL’ undeclared (first use in this function)
ZVAL_STRINGL(zSig, newsig, 64);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c: In function ‘zif_secp256k1_schnorr_partial_combine’:
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1313:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((ctx = (secp256k1_context *)zend_fetch_resource2_ex(zCtx, SECP256K1_CTX_RES_NAME, le_secp256k1_ctx, -1)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1323:5: error: unknown type name ‘zend_string’
zend_string *key;
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1325:54: error: expected ‘;’ before ‘{’ token
ZEND_HASH_FOREACH_KEY_VAL(arr_hash, i, key, val) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1333:45: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given
ZVAL_STRINGL(zSigCombined, sig64, 64);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1333:9: error: ‘ZVAL_STRINGL’ undeclared (first use in this function)
ZVAL_STRINGL(zSigCombined, sig64, 64);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c: In function ‘zif_secp256k1_ec_pubkey_combine’:
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1352:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if ((ctx = (secp256k1_context *)zend_fetch_resource2_ex(zCtx, SECP256K1_CTX_RES_NAME, le_secp256k1_ctx, -1)) == NULL) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1362:5: error: unknown type name ‘zend_string’
zend_string *key;
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1364:54: error: expected ‘;’ before ‘{’ token
ZEND_HASH_FOREACH_KEY_VAL(arr_hash, i, key, val) {
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1376:9: warning: passing argument 1 of ‘zend_register_resource’ from incompatible pointer type [enabled by default]
ZVAL_RES(zPubkeyCombined, zend_register_resource(combined, le_secp256k1_pubkey));
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: expected ‘struct zval *’ but argument is of type ‘struct secp256k1_pubkey *’
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1376:9: warning: passing argument 2 of ‘zend_register_resource’ makes pointer from integer without a cast [enabled by default]
ZVAL_RES(zPubkeyCombined, zend_register_resource(combined, le_secp256k1_pubkey));
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: expected ‘void *’ but argument is of type ‘int’
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:1376:9: error: too few arguments to function ‘zend_register_resource’
ZVAL_RES(zPubkeyCombined, zend_register_resource(combined, le_secp256k1_pubkey));
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /home/ubuntu/workspace/secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php5/Zend/zend_list.h:82:14: note: declared here
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
make: ** [secp256k1.lo] Error 1