View Issue Details

IDProjectCategoryView StatusLast Update
0001730XdebugInstallationpublic2020-01-27 20:34
ReporterDani Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionno change required 
OSUbuntu 
Product Version2.9.0 
Summary0001730: So many undeined symbols in xdebug.so
Description

After pulling the latest xdebug source from GitHub and compiling, the generated xdebug.so has so many undefined symbols in it (complete output is attached separately):

nm -u xdebug.so | grep U
U dom_node_node_type_read
U dom_node_node_value_read
U dom_node_node_value_write

If we add -Wl,--no-undefined to CFLAGS, xdebug.so is not generated and several errors are issued.

These undefined symbols are defined in PHP source code (various modules), but are undefined in xdebug.so
When PHP-fpm is going to load xdebug.so as a zend_extension, it issues error and fails to load:

Failed loading /usr/local/lib/php/extensions/no-debug-non-zts-20180731/xdebug.so: /usr/local/lib/php/extensions/no-debug-non-zts-20180731/xdebug.so: undefined symbol: OnUpdateBool

Trying to add different .lo files from PHP directory to shared_objects_xdebug of xdebug's Makefile, does not solve the problem, as there are new undefined symbols or it leads to multiple definition error.

The issue does not seem to be related to PHP version, etc.

TagsNo tags attached.
Operating System
PHP Version7.3.10-7.3.14

Activities

derick

2019-12-12 15:21

administrator   ~0005206

Did you re-run phpize and configure? Lots of file locations have changed. I would recommend you reclone the git repository.

derick

2020-01-12 14:31

administrator   ~0005209

Ping?

Dani

2020-01-20 01:36

reporter   ~0005221

I had done some changes to my php source directory; after switching to a clean installation of php, xdebug.so loaded as charm.
Thanks for the great product.

derick

2020-01-27 20:34

administrator   ~0005230

Thanks for letting me know! I'll be closing the report then.