Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failed #5

Open
rodion-k opened this issue Feb 14, 2021 · 0 comments
Open

Build failed #5

rodion-k opened this issue Feb 14, 2021 · 0 comments

Comments

@rodion-k
Copy link

$ make
/bin/bash /tmp/ext-buffer/libtool --mode=compile g++  -I. -I/tmp/ext-buffer -DPHP_ATOM_INC -I/tmp/ext-buffer/include -I/tmp/ext-buffer/main -I/tmp/ext-buffer -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/ext-buffer/buffer.cc -o buffer.lo 
mkdir .libs
 g++ -I. -I/tmp/ext-buffer -DPHP_ATOM_INC -I/tmp/ext-buffer/include -I/tmp/ext-buffer/main -I/tmp/ext-buffer -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/ext-buffer/buffer.cc  -fPIC -DPIC -o .libs/buffer.o
In file included from /tmp/ext-buffer/buffer.cc:11:
/tmp/ext-buffer/arginfo.h:14:42: error: ‘value’ was not declared in this scope
   14 | ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, value, IS_STRING, 0, "")
      |                                          ^~~~~
/tmp/ext-buffer/arginfo.h:14:1: error: ‘ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE’ was not declared in this scope
   14 | ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, value, IS_STRING, 0, "")
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20190902/Zend/zend.h:27,
                 from /usr/include/php/20190902/main/php.h:34,
                 from /tmp/ext-buffer/php_buffer.h:21,
                 from /tmp/ext-buffer/buffer.cc:10:
/tmp/ext-buffer/arginfo.h:33:30: error: ‘IS_MIXED’ was not declared in this scope
   33 | ZEND_ARG_TYPE_INFO(0, value, IS_MIXED, 0)
      |                              ^~~~~~~~
/usr/include/php/20190902/Zend/zend_types.h:157:5: note: in definition of macro ‘ZEND_TYPE_ENCODE’
  157 |  (((code) << Z_L(2)) | ((allow_null) ? Z_L(0x1) : Z_L(0x0)))
      |     ^~~~
/tmp/ext-buffer/arginfo.h:33:1: note: in expansion of macro ‘ZEND_ARG_TYPE_INFO’
   33 | ZEND_ARG_TYPE_INFO(0, value, IS_MIXED, 0)
      | ^~~~~~~~~~~~~~~~~~
In file included from /tmp/ext-buffer/buffer.cc:11:
/tmp/ext-buffer/arginfo.h:38:42: error: ‘offset’ was not declared in this scope; did you mean ‘off_t’?
   38 | ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, offset, IS_LONG, 0, 0)
      |                                          ^~~~~~
      |                                          off_t
/tmp/ext-buffer/arginfo.h:38:1: error: ‘ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE’ was not declared in this scope
   38 | ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, offset, IS_LONG, 0, 0)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/ext-buffer/arginfo.h:51:42: error: ‘offset’ was not declared in this scope; did you mean ‘off_t’?
   51 | ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, offset, IS_LONG, 0, 0)
      |                                          ^~~~~~
      |                                          off_t
/tmp/ext-buffer/arginfo.h:51:1: error: ‘ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE’ was not declared in this scope
   51 | ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, offset, IS_LONG, 0, 0)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/ext-buffer/arginfo.h:63:42: error: ‘offset’ was not declared in this scope; did you mean ‘off_t’?
   63 | ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, offset, IS_LONG, 0, 0)
      |                                          ^~~~~~
      |                                          off_t
/tmp/ext-buffer/arginfo.h:63:1: error: ‘ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE’ was not declared in this scope
   63 | ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, offset, IS_LONG, 0, 0)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/ext-buffer/arginfo.h:74:42: error: ‘offset’ was not declared in this scope; did you mean ‘off_t’?
   74 | ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, offset, IS_LONG, 0, 0)
      |                                          ^~~~~~
      |                                          off_t
/tmp/ext-buffer/arginfo.h:74:1: error: ‘ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE’ was not declared in this scope
   74 | ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, offset, IS_LONG, 0, 0)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:192: buffer.lo] Error 1
  • Version used PHP 7.4.3
  • Operating system and version Ubuntu 20.04.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant