Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-451

PHP binding build failed with PHP5.5 (ZTS)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Pending Closed
    • proton-0.5
    • None
    • php-binding
    • Debian 7 (amd64), PHP5.5.5 (built from source)

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dmitrii.zolotov Dmitrii Zolotov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: