Project

Profile

Help

Bug #5876

closed

PHP-extension: Undefined symbol: xsltApplyStylesheet

Added by carlos juan over 1 year ago. Updated over 1 year ago.

Status:
Duplicate
Priority:
Low
Category:
PHP Build
Start date:
2023-02-09
Due date:
% Done:

0%

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

Description

I'm trying to use Saxon-HE 12 with PHP 8 but after compiling and installing the extension, I'm getting an undefined symbol error.

The steps for installation are documented in the Dockerfile for the repository https://github.com/JuanKman94/saxon-he-php-demo

  • PHP version: PHP 8.1.15 (cli) (built: Jan 31 2023 15:13:17) (NTS gcc x86_64)
  • OS: Fedora 37
  • GLibC: 2.36
  • GCC: 12.2.1 20221121 (Red Hat 12.2.1-4)

SaxonC setup:

  • libsaxon-hec-12.0.so is installed in /lib64
  • PHP saxon.so extension is installed in /usr/lib64/php/modules

When looking for Saxon in the PHP config, this is the output (error included):

$ php -i | grep axon
PHP Warning:  PHP Startup: Unable to load dynamic library 'saxon' (tried: /usr/lib64/php/modules/saxon (/usr/lib64/php/modules/saxon: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/saxon.so (/usr/lib64/php/modules/saxon.so: undefined
symbol: xsltApplyStylesheet)) in Unknown on line 0
/etc/php.d/20-saxon.ini,

Aside from that, the Dockerfile documents a change I had to made to the source code in order to compile it: sed -i 's|setRelocate|setRelocatable|g' php8_*.c*

In the repository's README there are instructions to troubleshoot the container, if additional data is needed, please let me know.


Related issues

Is duplicate of SaxonC - Bug #5868: C samples don't build with UbuntuClosedO'Neil Delpratt2023-02-03

Actions

Please register to edit this issue

Also available in: Atom PDF