Actions
Bug #5876
closedPHP-extension: Undefined symbol: xsltApplyStylesheet
Start date:
2023-02-09
Due date:
% Done:
0%
Estimated time:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Found in version:
12.0
Fixed in version:
SaxonC Languages:
SaxonC Platforms:
SaxonC Architecture:
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
Please register to edit this issue
Actions