FS#56835 - [php-enchant] Module fails to load
Attached to Project:
Arch Linux
Opened by Jakob Gahde (J5lx) - Saturday, 23 December 2017, 14:36 GMT
Last edited by Doug Newgard (Scimmia) - Thursday, 25 January 2018, 22:05 GMT
Opened by Jakob Gahde (J5lx) - Saturday, 23 December 2017, 14:36 GMT
Last edited by Doug Newgard (Scimmia) - Thursday, 25 January 2018, 22:05 GMT
|
Details
Description:
PHP fails to load the enchant module and errors out like this: PHP Warning: PHP Startup: Unable to load dynamic library 'enchant.so' (tried: /usr/lib/php/modules/enchant.so (/usr/lib/php/modules/enchant.so: undefined symbol: enchant_dict_is_in_session), /usr/lib/php/modules/enchant.so.so (/usr/lib/php/modules/enchant.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Additional info: * php-enchant version: 7.2.0-2 * enchant version: 2.1.2-3 Steps to reproduce: 1. Make sure the enchant PHP module is enabled (i.e. extension=enchant.so in configuration) 2. Run `php -m` in a terminal and observe: a) above error message b) enchant is missing from the [PHP Modules] section of the output |
This task depends upon
Closed by Doug Newgard (Scimmia)
Thursday, 25 January 2018, 22:05 GMT
Reason for closing: Fixed
Additional comments about closing: enchant 2.2 moved to Extra
Thursday, 25 January 2018, 22:05 GMT
Reason for closing: Fixed
Additional comments about closing: enchant 2.2 moved to Extra
The source code history would tend to agree: https://github.com/php/php-src/commits/PHP-7.2.0/ext/enchant
Either we should build against a legacy enchant1 package, or we should enable the bundled enchant, or figure out how to get this to work with modern versions of enchant.
Enchant upstream decided to make 1.x and 2.x co-installable though, so we have to patch and recompile everything again or simply introduce 1.x package.
ldd output:
$ ldd /usr/lib/php/modules/enchant.so
linux-vdso.so.1 (0x00007ffcf27de000)
libenchant-2.so.2 => not found
libc.so.6 => /usr/lib/libc.so.6 (0x00007f726596a000)
/usr/lib64/ld-linux-x86-64.so.2 (0x00007f7265f27000)