Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » xdebug + LD_LIBRARY_PATH
xdebug + LD_LIBRARY_PATH [message #1736795] Fri, 01 July 2016 19:22 Go to next message
Jeff Chimene is currently offline Jeff ChimeneFriend
Messages: 4
Registered: July 2016
Junior Member
Hi,
LD_LIBRARY_PATH as defined by PDT for XDEBUG doesn't work on my system:

phpinfo() yields the following for Environment
Variable => Value
XDEBUG_CONFIG => remote_enable=1 idekey=ECLIPSE_DBGP
DBGP_IDEKEY => ECLIPSE_DBGP
LD_LIBRARY_PATH => /usr/lib
DBGP_COOKIE => 146739879635417


That won't work. I get the following error as PHP loads in the PDT + XDEBUG environment
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20131226/curl.so' - /lib/x86_64-linux-gnu/libgcrypt.so.20: symbol gpgrt_lock_lock, version GPG_ERROR_1.0 not defined in file libgpg-error.so.0 with link time reference in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20131226/imagick.so' - /usr/lib/libgomp.so.1: version `GOMP_4.0' not found (required by /usr/lib/x86_64-linux-gnu/libMagickWand-6.Q16.so.2) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20131226/readline.so' - /usr/lib/php5/20131226/readline.so: undefined symbol: rl_on_new_line in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20131226/xsl.so' - /lib/x86_64-linux-gnu/libgcrypt.so.20: symbol gpgrt_lock_lock, version GPG_ERROR_1.0 not defined in file libgpg-error.so.0 with link time reference in Unknown on line 0
/


php --info | grep -i ld_library 
at the shell doesn't throw the warnings, and yields no matches.

I tried defining LD_LIBRARY_PATH using just the value "/lib/x86_64-linux-gnu" in the debug environment panel, enabling the "replace" option

PDT seems to ignore that setting.

tia,
Re: xdebug + LD_LIBRARY_PATH [message #1737081 is a reply to message #1736795] Tue, 05 July 2016 14:43 Go to previous messageGo to next message
Kaloyan Raev is currently offline Kaloyan RaevFriend
Messages: 201
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Jeff,

Could you tell your Linux distro and how did you install PHP?

I'd like to reproduce the issue.

Thanks,
Kaloyan
Re: xdebug + LD_LIBRARY_PATH [message #1737082 is a reply to message #1736795] Tue, 05 July 2016 14:43 Go to previous messageGo to next message
Dawid Pakula is currently offline Dawid PakulaFriend
Messages: 243
Registered: March 2013
Senior Member
This looks like PDT problem. Can you report your bug on bugzilla? https://bugs.eclipse.org/bugs/enter_bug.cgi?product=PDT

Please also attach information about your Linux and Eclipse distributions (versions, names).


Re: xdebug + LD_LIBRARY_PATH [message #1737089 is a reply to message #1737082] Tue, 05 July 2016 15:19 Go to previous messageGo to next message
Jeff Chimene is currently offline Jeff ChimeneFriend
Messages: 4
Registered: July 2016
Junior Member
$ uname -a
Linux Epiktistes 4.5.0-2-amd64 #1 SMP Debian 4.5.5-1 (2016-05-29) x86_64 GNU/Linux

$ php -v
PHP 5.6.22-2 (cli)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with XCache v3.2.0, Copyright (c) 2005-2014, by mOo
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
with Xdebug v2.4.0, Copyright (c) 2002-2016, by Derick Rethans
with XCache Optimizer v3.2.0, Copyright (c) 2005-2014, by mOo
with XCache Cacher v3.2.0, Copyright (c) 2005-2014, by mOo
with XCache Coverager v3.2.0, Copyright (c) 2005-2014, by mOo

Eclipse installed into /opt via the Eclipse repo
PHP installed via Debian unstable/testing repo

I've used this configuration for > 10 yrs.
Re: xdebug + LD_LIBRARY_PATH [message #1737093 is a reply to message #1737089] Tue, 05 July 2016 15:37 Go to previous messageGo to next message
Kaloyan Raev is currently offline Kaloyan RaevFriend
Messages: 201
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Which version of Debian is this exactly?

Would it be good enough if I install the latest one from the web site?
Re: xdebug + LD_LIBRARY_PATH [message #1737109 is a reply to message #1737093] Tue, 05 July 2016 18:40 Go to previous messageGo to next message
Jeff Chimene is currently offline Jeff ChimeneFriend
Messages: 4
Registered: July 2016
Junior Member
Please try Debian Testing. I believe you will get 32 bit compatibility automatically with this install.
I run a combination of Testing & Unstable, but don't do that.
It looks like the issue is caused by LD_LIBRARY_PATH not including the 64 bit libraries.
LD_LIBRARY_PATH is empty at the shell, but /usr/bin via PDT & debug.
When I set LD_LIBRARY_PATH in the debug environment, PDT prefixes /usr/bin, which perhaps exposes 32 bit libraries to PHP?
It might be interesting to try suffixing /usr/bin to LD_LIBRARY_PATH, or simply using Eclipse's Java classpath. That will search irrelevant paths, but it will correctly handle searching 64 bit path first, then 32 bit

[Updated on: Tue, 05 July 2016 18:55]

Report message to a moderator

Re: xdebug + LD_LIBRARY_PATH [message #1737151 is a reply to message #1737109] Wed, 06 July 2016 07:17 Go to previous messageGo to next message
Kaloyan Raev is currently offline Kaloyan RaevFriend
Messages: 201
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
I tried Debian Testing, but installation failed from the netinst ISO.

So, I made a successful installation of Debian 8.5. I added the testing software repo.

Then I installed php5 + php-xdebug + some other extensions from Synaptic.

I installed Eclipse IDE for PHP Developers Neon release. I had no issue configuring and using the php5 stack installed from Synaptic.

Perhaps, it matters how you configure them in the PHP Executables preference page.
I attach screenshot of my configuration.
Re: xdebug + LD_LIBRARY_PATH [message #1737264 is a reply to message #1737151] Wed, 06 July 2016 17:42 Go to previous messageGo to next message
Jeff Chimene is currently offline Jeff ChimeneFriend
Messages: 4
Registered: July 2016
Junior Member
I'm not going to play "not reproducible from my account" game.
I see what I see.
If you can't reproduce, close the bug report. This will be the first and last time I post to PDT group.
Re: xdebug + LD_LIBRARY_PATH [message #1738497 is a reply to message #1737264] Wed, 20 July 2016 10:58 Go to previous message
Dawid Pakula is currently offline Dawid PakulaFriend
Messages: 243
Registered: March 2013
Senior Member
Can you put your apt repositories. Maybe you are using something nonstandard?

Previous Topic:Need public folder to be htdocs
Next Topic:[Feature] Code-assist : Get class name as string
Goto Forum:
  


Current Time: Wed Sep 26 08:37:17 GMT 2018

Powered by FUDForum. Page generated in 0.01705 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top