Project

Profile

Help

Bug #5764

closed

compiling PHP extension fails

Added by franz kelnreiter over 1 year ago. Updated over 1 year ago.

Status:
Duplicate
Priority:
Low
Category:
-
Start date:
2022-12-14
Due date:
% Done:

0%

Estimated time:
Found in version:
11.4
Fixed in version:
Platforms:

Description

Hi, I am trying to compile the libsaxon-11.4 PHP extension on a CentOS machine with gcc 11.2.1 20210728 (Red Hat 11.2.1-1). Following the steps on https://www.saxonica.com/saxon-c/doc1.1/html/index.html#Installation the make script fails with the following errors:

/libsaxon-HEC-11.4/Saxon.C.API/php7_Xslt30Processor.cpp:418:73: error: 'TSRMLS_C' was not declared in this scope; did you mean 'TSRM_H'?
  418 |                         zend_throw_exception(zend_exception_get_default(TSRMLS_C), exception->getMessage(), 0 TSRMLS_CC)
      |                                             ~                                                                ^~~~~~~~~~
/libsaxon-HEC-11.4/Saxon.C.API/php7_Xslt30Processor.cpp:418:110: error: expected ')' before 'TSRMLS_CC'
  418 |                         zend_throw_exception(zend_exception_get_default(TSRMLS_C), exception->getMessage(), 0 TSRMLS_CC);
      |                                             ~                                                                ^~~~~~~~~~
/libsaxon-HEC-11.4/Saxon.C.API/php7_Xslt30Processor.cpp:542:77: error: 'ZEND_ACC_DTOR' was not declared in this scope; did you mean 'ZEND_ACC_CTO '?
  542 |         PHP_ME(Xslt30Processor,  __destruct,     nullptr, ZEND_ACC_PUBLIC | ZEND_ACC_DTOR)
      |                                                                             ^~~~~~~~~~~~~

The compilation process fails permanently. How can I get rid of these errors? I'd very much appreciate to get some input pointing me to the right direction. Thank you! --franz


Related issues

Is duplicate of SaxonC - Feature #4842: PHP 8ClosedO'Neil Delpratt2020-11-26

Actions

Please register to edit this issue

Also available in: Atom PDF