Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined symbol: php_json_serializable_ce #47

Closed
syslogic opened this issue Aug 10, 2020 · 2 comments
Closed

undefined symbol: php_json_serializable_ce #47

syslogic opened this issue Aug 10, 2020 · 2 comments

Comments

@syslogic
Copy link

Can build, but then: undefined symbol: php_json_serializable_ce.

PHP Warning: PHP Startup: Unable to load dynamic library 'decimal.so' (tried: /usr/lib64/php/modules/decimal.so (/usr/lib64/php/modules/decimal.so: undefined symbol: php_json_serializable_ce), /usr/lib64/php/modules/decimal.so.so (/usr/lib64/php/modules/decimal.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0


Loading json.so before decimal.so seems to help; eg. /etc/php.d/98-json.ini and /etc/php.d/99-decimal.ini.

@rtheunissen
Copy link
Contributor

See php-ds/ext-ds#2

@syslogic
Copy link
Author

syslogic commented Aug 16, 2020

This is indeed exactly the same issue, but on CentOS/RHEL this works a tad different than on Ubuntu (there is no phpenmod command and therefore the module's priority needs to be defined manually, which is otherwise being picked up from the comment in the module's .ini on phpenmod). Changing the filename seems to be the only way to affect the loading order (unless loading two modules in one .ini file, which seems to be messy).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants