[ https://issues.apache.org/jira/browse/PROTON-451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13824174#comment-13824174 ]
Dmitrii Zolotov commented on PROTON-451: ---------------------------------------- Swig version is latest (2.0.11), php built from source (with gnu layout), header and library files in standard locations. Linux distribution is Debian 7 amd64. Same compilation error occurs with default PHP build options and with bundled modules. In same environment, but without ZTS, proton library for PHP builds successfully. But my application requires ZTS (for pthreads) with AMQP client library. > PHP binding build failed with PHP5.5 (ZTS) > ------------------------------------------ > > Key: PROTON-451 > URL: https://issues.apache.org/jira/browse/PROTON-451 > Project: Qpid Proton > Issue Type: Bug > Components: proton-c > Affects Versions: 0.5 > Environment: Debian 7 (amd64), PHP5.5.5 (built from source) > Reporter: Dmitrii Zolotov > Assignee: Darryl L. Pierce > > SWIG PHP binding compilation failed with following errors: > In file included from /usr/include/php/Zend/zend_alloc.h:27:0, > from /usr/include/php/Zend/zend.h:252, > from php_wrap.c:706: > php_wrap.c: In function ‘t_output_helper’: > /usr/include/php/Zend/../TSRM/TSRM.h:167:18: error: ‘tsrm_ls’ undeclared > (first use in this function) > #define TSRMLS_C tsrm_ls > ^ > /usr/include/php/Zend/../TSRM/TSRM.h:168:21: note: in expansion of macro > ‘TSRMLS_C’ > #define TSRMLS_CC , TSRMLS_C > ^ > /usr/include/php/Zend/zend_gc.h:160:32: note: in expansion of macro > ‘TSRMLS_CC’ > gc_remove_zval_from_buffer(z TSRMLS_CC); \ > ^ > /usr/include/php/Zend/zend_gc.h:213:6: note: in expansion of macro > ‘GC_REMOVE_ZVAL_FROM_BUFFER’ > GC_REMOVE_ZVAL_FROM_BUFFER(z); \ > ^ > php_wrap.c:1154:5: note: in expansion of macro ‘FREE_ZVAL’ > FREE_ZVAL(o); > ^ > /usr/include/php/Zend/../TSRM/TSRM.h:167:18: note: each undeclared identifier > is reported only once for each function it appears in > #define TSRMLS_C tsrm_ls > ^ > /usr/include/php/Zend/../TSRM/TSRM.h:168:21: note: in expansion of macro > ‘TSRMLS_C’ > #define TSRMLS_CC , TSRMLS_C > ^ > /usr/include/php/Zend/zend_gc.h:160:32: note: in expansion of macro > ‘TSRMLS_CC’ > gc_remove_zval_from_buffer(z TSRMLS_CC); \ > ^ > /usr/include/php/Zend/zend_gc.h:213:6: note: in expansion of macro > ‘GC_REMOVE_ZVAL_FROM_BUFFER’ > GC_REMOVE_ZVAL_FROM_BUFFER(z); \ > ^ > php_wrap.c:1154:5: note: in expansion of macro ‘FREE_ZVAL’ > FREE_ZVAL(o); > ^ > I've tried to run swig manually (with php.i / cproton.i) and get the same > error. -- This message was sent by Atlassian JIRA (v6.1#6144)