tony2001 / pinba_extension

Pinba PHP extension
http://pinba.org
GNU Lesser General Public License v2.1
83 stars 22 forks source link

did not compile on CentOS 7 64bit #35

Open vladimirkudarev opened 6 years ago

vladimirkudarev commented 6 years ago

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 commented 6 years ago

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