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

did not compile on CentOS 7 64bit #35

Open
vladimirkudarev opened this issue Apr 20, 2018 · 1 comment
Open

did not compile on CentOS 7 64bit #35

vladimirkudarev opened this issue Apr 20, 2018 · 1 comment

Comments

@vladimirkudarev
Copy link

vladimirkudarev commented Apr 20, 2018

HI peolple, I need help :)
I try to compile pinba_extesion on centos7 64bit

...
/usr/include/php/Zend/zend_operators.h:460:29: error: request for member 'type' in something not a structure or union
#define Z_TYPE(zval) (zval).type
^
/usr/include/php/Zend/zend_operators.h:461:26: note: in expansion of macro 'Z_TYPE'
#define Z_TYPE_P(zval_p) Z_TYPE(*zval_p)
^
/usr/include/php/Zend/zend_API.h:719:63: note: in expansion of macro 'Z_TYPE_P'
#define HASH_OF(p) (Z_TYPE_P(p)==IS_ARRAY ? Z_ARRVAL_P(p) : ((Z_TYPE_P(p)==IS_OBJECT ? Z_OBJ_HT_P(p)->get_properties((p) TSRMLS_CC) : NULL)))
^
/TEMP/pinba_extension/pinba.c:2674:28: note: in expansion of macro 'HASH_OF'
tmp = zend_hash_str_find(HASH_OF(&PG(http_globals)[TRACK_VARS_SERVER]), "SERVER_NAME", sizeof("SERVER_NAME")-1);
^
/usr/include/php/Zend/zend_operators.h:421:32: error: request for member 'value' in something not a structure or union
#define Z_OBJVAL(zval) (zval).value.obj
^
/usr/include/php/Zend/zend_operators.h:423:26: note: in expansion of macro 'Z_OBJVAL'
#define Z_OBJ_HT(zval) Z_OBJVAL(zval).handlers
^
/usr/include/php/Zend/zend_operators.h:441:29: note: in expansion of macro 'Z_OBJ_HT'
#define Z_OBJ_HT_P(zval_p) Z_OBJ_HT(*zval_p)
^
/usr/include/php/Zend/zend_API.h:719:88: note: in expansion of macro 'Z_OBJ_HT_P'
#define HASH_OF(p) (Z_TYPE_P(p)==IS_ARRAY ? Z_ARRVAL_P(p) : ((Z_TYPE_P(p)==IS_OBJECT ? Z_OBJ_HT_P(p)->get_properties((p) TSRMLS_CC) : NULL)))
^
/TEMP/pinba_extension/pinba.c:2674:28: note: in expansion of macro 'HASH_OF'
tmp = zend_hash_str_find(HASH_OF(&PG(http_globals)[TRACK_VARS_SERVER]), "SERVER_NAME", sizeof("SERVER_NAME")-1);
^
make: *** [pinba.lo] Ошибка 1

What I do wrong?

@vladimirkudarev
Copy link
Author

Issue was closed. In my case problem was in php 5.x, I should have used branch php5

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

1 participant