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

Does not build against current master of PHP #3

Closed
sebastianbergmann opened this issue Jan 11, 2015 · 1 comment
Closed

Does not build against current master of PHP #3

sebastianbergmann opened this issue Jan 11, 2015 · 1 comment

Comments

@sebastianbergmann
Copy link

/bin/sh /usr/local/src/php/php-ast/libtool --mode=compile ccache clang  -I. -I/usr/local/src/php/php-ast -DPHP_ATOM_INC -I/usr/local/src/php/php-ast/include -I/usr/local/src/php/php-ast/main -I/usr/local/src/php/php-ast -I/usr/local/php-7.0/include/php -I/usr/local/php-7.0/include/php/main -I/usr/local/php-7.0/include/php/TSRM -I/usr/local/php-7.0/include/php/Zend -I/usr/local/php-7.0/include/php/ext -I/usr/local/php-7.0/include/php/ext/date/lib  -DHAVE_CONFIG_H  -march=native -mtune=native -fPIC -pipe -fcolor-diagnostics -Qunused-arguments -O0   -c /usr/local/src/php/php-ast/ast.c -o ast.lo 
mkdir .libs
 ccache clang -I. -I/usr/local/src/php/php-ast -DPHP_ATOM_INC -I/usr/local/src/php/php-ast/include -I/usr/local/src/php/php-ast/main -I/usr/local/src/php/php-ast -I/usr/local/php-7.0/include/php -I/usr/local/php-7.0/include/php/main -I/usr/local/php-7.0/include/php/TSRM -I/usr/local/php-7.0/include/php/Zend -I/usr/local/php-7.0/include/php/ext -I/usr/local/php-7.0/include/php/ext/date/lib -DHAVE_CONFIG_H -march=native -mtune=native -fPIC -pipe -fcolor-diagnostics -Qunused-arguments -O0 -c /usr/local/src/php/php-ast/ast.c  -fPIC -DPIC -o .libs/ast.o
In file included from /usr/local/src/php/php-ast/ast.c:5:
In file included from /usr/local/php-7.0/include/php/main/php.h:35:
In file included from /usr/local/php-7.0/include/php/Zend/zend.h:33:
/usr/local/php-7.0/include/php/Zend/zend_alloc.h:57:236: warning: unknown attribute 'alloc_size' ignored [-Wunknown-attributes]
__attribute__ ((visibility("default"))) void* _emalloc(size_t size , const char *__zend_filename, const uint __zend_lineno , const char *__zend_orig_filename, const uint __zend_orig_lineno) __attribute__ ((__malloc__)) __attribute__ ((alloc_size(1)));
                                                                                                                                                                                                                                           ^
/usr/local/php-7.0/include/php/Zend/zend_alloc.h:61:250: warning: unknown attribute 'alloc_size' ignored [-Wunknown-attributes]
__attribute__ ((visibility("default"))) void* _ecalloc(size_t nmemb, size_t size , const char *__zend_filename, const uint __zend_lineno , const char *__zend_orig_filename, const uint __zend_orig_lineno) __attribute__ ((__malloc__)) __attribute__ ((alloc_size(1,2)));
                                                                                                                                                                                                                                                         ^
/usr/local/php-7.0/include/php/Zend/zend_alloc.h:62:238: warning: unknown attribute 'alloc_size' ignored [-Wunknown-attributes]
__attribute__ ((visibility("default"))) void* _erealloc(void *ptr, size_t size, int allow_failure , const char *__zend_filename, const uint __zend_lineno , const char *__zend_orig_filename, const uint __zend_orig_lineno) __attribute__ ((alloc_size(2)));
                                                                                                                                                                                                                                             ^
/usr/local/src/php/php-ast/ast.c:326:107: error: use of undeclared identifier 'ZEND_ACC_FINAL_CLASS'
 zend_register_long_constant("ast\\flags" "\\" "CLASS_FINAL", sizeof("ast\\flags" "\\" "CLASS_FINAL")-1, (ZEND_ACC_FINAL_CLASS), ((1<<0) | (1<<1)), module_number);
                                                                                                          ^
3 warnings and 1 error generated.
Makefile:180: recipe for target 'ast.lo' failed
make: *** [ast.lo] Error 1
@nikic
Copy link
Owner

nikic commented Jan 11, 2015

Should work now, see 1c43381.

@nikic nikic closed this as completed Jan 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants