Debian Bug report logs - #730624
php5-readline: unresolved symbols in readline.so shipped in php5-readline

Package: php5-readline; Maintainer for php5-readline is (unknown);

Reported by: Giacomo Mulas <giacomo.mulas84@gmail.com>

Date: Wed, 27 Nov 2013 12:03:01 UTC

Severity: normal

Done: Ondřej Surý <ondrej@sury.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#730624; Package php5-readline. (Wed, 27 Nov 2013 12:03:06 GMT) (full text, mbox, link).


Acknowledgement sent to Giacomo Mulas <giacomo.mulas84@gmail.com>:
New Bug report received and forwarded. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Wed, 27 Nov 2013 12:03:06 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Giacomo Mulas <giacomo.mulas84@gmail.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: php5-readline: unresolved symbols in readline.so shipped in php5-readline
Date: Wed, 27 Nov 2013 12:37:27 +0100
Package: php5-readline
Version: 5.5.6+dfsg-1
Severity: normal

Dear Maintainer,

With some recent update (which one exactly I do not recall, since in
unstable there are always tons), I get this warning every time php5 is
started, hence also by the php5 cron job twice per hour:

PHP Warning:  PHP Startup: Unable to load dynamic library
'/usr/lib/php5/20121212/readline.so' - /usr/lib/php5/20121212/readline.so:
undefined symbol: rl_on_new_line in Unknown on line 0

The problem disappears if I purge php5-readline, reappears if I reinstall it
freshly from the current sid package, hence it must definitely be a bug in
php5-readline, probably either some missing dependence or the package was
compiled and linked against libraries in different versions from the ones in
sid.

Bye
Giacomo


-- Package-specific info:
==== Additional PHP 5 information ====

++++ PHP 5 SAPI (php5query -S): ++++
cli
cgi
apache2

++++ PHP 5 Extensions (php5query -M -v): ++++
gd (Enabled for cli by maintainer script)
gd (Enabled for cgi by maintainer script)
gd (Enabled for apache2 by maintainer script)
json (Enabled for cli by maintainer script)
json (Enabled for cgi by maintainer script)
json (Enabled for apache2 by maintainer script)
mysql (Enabled for cli by maintainer script)
mysql (Enabled for cgi by maintainer script)
mysql (Enabled for apache2 by maintainer script)
mysqli (Enabled for cli by maintainer script)
mysqli (Enabled for cgi by maintainer script)
mysqli (Enabled for apache2 by maintainer script)
opcache (Enabled for cli by maintainer script)
opcache (Enabled for cgi by maintainer script)
opcache (Enabled for apache2 by maintainer script)
pdo (Enabled for cli by maintainer script)
pdo (Enabled for cgi by maintainer script)
pdo (Enabled for apache2 by maintainer script)
pdo_mysql (Enabled for cli by maintainer script)
pdo_mysql (Enabled for cgi by maintainer script)
pdo_mysql (Enabled for apache2 by maintainer script)
tidy (Enabled for cli by maintainer script)
tidy (Enabled for cgi by maintainer script)
tidy (Enabled for apache2 by maintainer script)
xsl (Enabled for cli by maintainer script)
xsl (Enabled for cgi by maintainer script)
xsl (Enabled for apache2 by maintainer script)
readline (Enabled for cli by maintainer script)
readline (Enabled for cgi by maintainer script)
readline (Enabled for apache2 by maintainer script)

++++ Configuration files: ++++
**** /etc/php5/mods-available/readline.ini ****
extension=readline.so


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (401, 'unstable'), (10, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.11.7-jak (SMP w/4 CPU cores)
Locale: LANG=it_IT.utf8, LC_CTYPE=it_IT.utf8 (charmap=UTF-8) (ignored: LC_ALL set to it_IT.utf8)
Shell: /bin/sh linked to /bin/dash

Versions of packages php5-readline depends on:
ii  dpkg                           1.17.1
ii  libc6                          2.17-96
ii  libedit2                       3.1-20130712-2
ii  libtinfo5                      5.9+20130608-1
ii  php5-cli                       5.5.6+dfsg-1
ii  php5-common [phpapi-20121212]  5.5.6+dfsg-1
ii  ucf                            3.0027+nmu1

php5-readline recommends no packages.

php5-readline suggests no packages.

Versions of packages php5-common depends on:
ii  libc6      2.17-96
ii  lsof       4.86+dfsg-1
ii  php5-json  1.3.2-2
ii  psmisc     22.20-1
ii  sed        4.2.2-2
ii  ucf        3.0027+nmu1

Versions of packages php5-common suggests:
pn  php5-user-cache  <none>

Versions of packages php5-cli depends on:
ii  libbz2-1.0        1.0.6-5
ii  libc6             2.17-96
ii  libcomerr2        1.42.8-1
ii  libdb5.1          5.1.29-7
ii  libedit2          3.1-20130712-2
ii  libgssapi-krb5-2  1.11.3+dfsg-3
ii  libk5crypto3      1.11.3+dfsg-3
ii  libkrb5-3         1.11.3+dfsg-3
ii  libmagic1         1:5.14-2
ii  libonig2          5.9.1-1
ii  libpcre3          1:8.31-2
ii  libqdbm14         1.8.78-2+b1
ii  libssl1.0.0       1.0.1e-4
ii  libxml2           2.9.1+dfsg1-3
ii  mime-support      3.54
ii  php5-common       5.5.6+dfsg-1
ii  tzdata            2013d-1
ii  ucf               3.0027+nmu1
ii  zlib1g            1:1.2.8.dfsg-1

php5-cli recommends no packages.

Versions of packages php5-cli suggests:
pn  php-pear  <none>

Versions of packages libapache2-mod-php5 depends on:
ii  apache2                             2.4.6-3
ii  apache2-bin [apache2-api-20120211]  2.4.6-3
ii  libbz2-1.0                          1.0.6-5
ii  libc6                               2.17-96
ii  libcomerr2                          1.42.8-1
ii  libdb5.1                            5.1.29-7
ii  libgssapi-krb5-2                    1.11.3+dfsg-3
ii  libk5crypto3                        1.11.3+dfsg-3
ii  libkrb5-3                           1.11.3+dfsg-3
ii  libmagic1                           1:5.14-2
ii  libonig2                            5.9.1-1
ii  libpcre3                            1:8.31-2
ii  libqdbm14                           1.8.78-2+b1
ii  libssl1.0.0                         1.0.1e-4
ii  libstdc++6                          4.8.2-5
ii  libxml2                             2.9.1+dfsg1-3
ii  mime-support                        3.54
ii  php5-common                         5.5.6+dfsg-1
ii  tzdata                              2013d-1
ii  ucf                                 3.0027+nmu1
ii  zlib1g                              1:1.2.8.dfsg-1

Versions of packages libapache2-mod-php5 recommends:
ii  php5-cli  5.5.6+dfsg-1

Versions of packages libapache2-mod-php5 suggests:
pn  php-pear  <none>

Versions of packages php5-cgi depends on:
ii  libbz2-1.0        1.0.6-5
ii  libc6             2.17-96
ii  libcomerr2        1.42.8-1
ii  libdb5.1          5.1.29-7
ii  libgssapi-krb5-2  1.11.3+dfsg-3
ii  libk5crypto3      1.11.3+dfsg-3
ii  libkrb5-3         1.11.3+dfsg-3
ii  libmagic1         1:5.14-2
ii  libonig2          5.9.1-1
ii  libpcre3          1:8.31-2
ii  libqdbm14         1.8.78-2+b1
ii  libssl1.0.0       1.0.1e-4
ii  libxml2           2.9.1+dfsg1-3
ii  mime-support      3.54
ii  php5-common       5.5.6+dfsg-1
ii  tzdata            2013d-1
ii  ucf               3.0027+nmu1
ii  zlib1g            1:1.2.8.dfsg-1

Versions of packages php5-cgi suggests:
pn  php-pear  <none>

-- no debconf information



No longer marked as found in versions php5/5.5.6+dfsg-1. Request was from Ondřej Surý <ondrej@sury.org> to control@bugs.debian.org. (Fri, 06 Dec 2013 09:03:12 GMT) (full text, mbox, link).


Reply sent to Ondřej Surý <ondrej@sury.org>:
You have taken responsibility. (Fri, 06 Dec 2013 09:03:17 GMT) (full text, mbox, link).


Notification sent to Giacomo Mulas <giacomo.mulas84@gmail.com>:
Bug acknowledged by developer. (Fri, 06 Dec 2013 09:03:17 GMT) (full text, mbox, link).


Message #12 received at 730624-done@bugs.debian.org (full text, mbox, reply):

From: Ondřej Surý <ondrej@sury.org>
To: Giacomo Mulas <giacomo.mulas84@gmail.com>, 730624-done@bugs.debian.org
Subject: Re: [php-maint] Bug#730624: php5-readline: unresolved symbols in readline.so shipped in php5-readline
Date: Fri, 06 Dec 2013 09:59:32 +0100
notfound 730624 php5/5.5.6+dfsg-1
thanks

Hi Giacomo,

please uninstall the readline library you probably have in /usr/local/
and you should be fine...

root@howl:/# dpkg -l php5-cli php5-readline
Desired=Unknown/Install/Remove/Purge/Hold
|
Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                        Version                 
  Architecture               Description
+++-===========================================-==========================-==========================-===========================================================================================
ii  php5-cli                                    5.5.6+dfsg-1            
  amd64                      command-line interpreter for the php5
scripting language
ii  php5-readline                               5.5.6+dfsg-1            
  amd64                      Readline module for php5
root@howl:/# php5 -r'phpinfo();' 2>&1 | grep Readline
Readline Support => enabled
Readline library => EditLine wrapper

Closing this bug.

If you have a more evidence this is actually bug in php5-readline,
attach ldd output like this:

# ldd /usr/lib/php5/20121212/readline.so 
	linux-vdso.so.1 (0x00007fff791ff000)
	/usr/lib/cowdancer/libcowdancer.so (0x00007f0dbd0d2000)
	libedit.so.2 => /usr/lib/x86_64-linux-gnu/libedit.so.2
	(0x00007f0dbce9e000)
	libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5
	(0x00007f0dbcc74000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6
	(0x00007f0dbc8c8000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2
	(0x00007f0dbc6c4000)
	libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0
	(0x00007f0dbc4b4000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f0dbd4e0000)

then please re-open the bug.

O.

On Wed, Nov 27, 2013, at 12:37, Giacomo Mulas wrote:
> Package: php5-readline
> Version: 5.5.6+dfsg-1
> Severity: normal
> 
> Dear Maintainer,
> 
> With some recent update (which one exactly I do not recall, since in
> unstable there are always tons), I get this warning every time php5 is
> started, hence also by the php5 cron job twice per hour:
> 
> PHP Warning:  PHP Startup: Unable to load dynamic library
> '/usr/lib/php5/20121212/readline.so' -
> /usr/lib/php5/20121212/readline.so:
> undefined symbol: rl_on_new_line in Unknown on line 0
> 
> The problem disappears if I purge php5-readline, reappears if I reinstall
> it
> freshly from the current sid package, hence it must definitely be a bug
> in
> php5-readline, probably either some missing dependence or the package was
> compiled and linked against libraries in different versions from the ones
> in
> sid.
> 
> Bye
> Giacomo
> 
> 
> -- Package-specific info:
> ==== Additional PHP 5 information ====
> 
> ++++ PHP 5 SAPI (php5query -S): ++++
> cli
> cgi
> apache2
> 
> ++++ PHP 5 Extensions (php5query -M -v): ++++
> gd (Enabled for cli by maintainer script)
> gd (Enabled for cgi by maintainer script)
> gd (Enabled for apache2 by maintainer script)
> json (Enabled for cli by maintainer script)
> json (Enabled for cgi by maintainer script)
> json (Enabled for apache2 by maintainer script)
> mysql (Enabled for cli by maintainer script)
> mysql (Enabled for cgi by maintainer script)
> mysql (Enabled for apache2 by maintainer script)
> mysqli (Enabled for cli by maintainer script)
> mysqli (Enabled for cgi by maintainer script)
> mysqli (Enabled for apache2 by maintainer script)
> opcache (Enabled for cli by maintainer script)
> opcache (Enabled for cgi by maintainer script)
> opcache (Enabled for apache2 by maintainer script)
> pdo (Enabled for cli by maintainer script)
> pdo (Enabled for cgi by maintainer script)
> pdo (Enabled for apache2 by maintainer script)
> pdo_mysql (Enabled for cli by maintainer script)
> pdo_mysql (Enabled for cgi by maintainer script)
> pdo_mysql (Enabled for apache2 by maintainer script)
> tidy (Enabled for cli by maintainer script)
> tidy (Enabled for cgi by maintainer script)
> tidy (Enabled for apache2 by maintainer script)
> xsl (Enabled for cli by maintainer script)
> xsl (Enabled for cgi by maintainer script)
> xsl (Enabled for apache2 by maintainer script)
> readline (Enabled for cli by maintainer script)
> readline (Enabled for cgi by maintainer script)
> readline (Enabled for apache2 by maintainer script)
> 
> ++++ Configuration files: ++++
> **** /etc/php5/mods-available/readline.ini ****
> extension=readline.so
> 
> 
> -- System Information:
> Debian Release: jessie/sid
>   APT prefers unstable
>   APT policy: (401, 'unstable'), (10, 'experimental')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
> 
> Kernel: Linux 3.11.7-jak (SMP w/4 CPU cores)
> Locale: LANG=it_IT.utf8, LC_CTYPE=it_IT.utf8 (charmap=UTF-8) (ignored:
> LC_ALL set to it_IT.utf8)
> Shell: /bin/sh linked to /bin/dash
> 
> Versions of packages php5-readline depends on:
> ii  dpkg                           1.17.1
> ii  libc6                          2.17-96
> ii  libedit2                       3.1-20130712-2
> ii  libtinfo5                      5.9+20130608-1
> ii  php5-cli                       5.5.6+dfsg-1
> ii  php5-common [phpapi-20121212]  5.5.6+dfsg-1
> ii  ucf                            3.0027+nmu1
> 
> php5-readline recommends no packages.
> 
> php5-readline suggests no packages.
> 
> Versions of packages php5-common depends on:
> ii  libc6      2.17-96
> ii  lsof       4.86+dfsg-1
> ii  php5-json  1.3.2-2
> ii  psmisc     22.20-1
> ii  sed        4.2.2-2
> ii  ucf        3.0027+nmu1
> 
> Versions of packages php5-common suggests:
> pn  php5-user-cache  <none>
> 
> Versions of packages php5-cli depends on:
> ii  libbz2-1.0        1.0.6-5
> ii  libc6             2.17-96
> ii  libcomerr2        1.42.8-1
> ii  libdb5.1          5.1.29-7
> ii  libedit2          3.1-20130712-2
> ii  libgssapi-krb5-2  1.11.3+dfsg-3
> ii  libk5crypto3      1.11.3+dfsg-3
> ii  libkrb5-3         1.11.3+dfsg-3
> ii  libmagic1         1:5.14-2
> ii  libonig2          5.9.1-1
> ii  libpcre3          1:8.31-2
> ii  libqdbm14         1.8.78-2+b1
> ii  libssl1.0.0       1.0.1e-4
> ii  libxml2           2.9.1+dfsg1-3
> ii  mime-support      3.54
> ii  php5-common       5.5.6+dfsg-1
> ii  tzdata            2013d-1
> ii  ucf               3.0027+nmu1
> ii  zlib1g            1:1.2.8.dfsg-1
> 
> php5-cli recommends no packages.
> 
> Versions of packages php5-cli suggests:
> pn  php-pear  <none>
> 
> Versions of packages libapache2-mod-php5 depends on:
> ii  apache2                             2.4.6-3
> ii  apache2-bin [apache2-api-20120211]  2.4.6-3
> ii  libbz2-1.0                          1.0.6-5
> ii  libc6                               2.17-96
> ii  libcomerr2                          1.42.8-1
> ii  libdb5.1                            5.1.29-7
> ii  libgssapi-krb5-2                    1.11.3+dfsg-3
> ii  libk5crypto3                        1.11.3+dfsg-3
> ii  libkrb5-3                           1.11.3+dfsg-3
> ii  libmagic1                           1:5.14-2
> ii  libonig2                            5.9.1-1
> ii  libpcre3                            1:8.31-2
> ii  libqdbm14                           1.8.78-2+b1
> ii  libssl1.0.0                         1.0.1e-4
> ii  libstdc++6                          4.8.2-5
> ii  libxml2                             2.9.1+dfsg1-3
> ii  mime-support                        3.54
> ii  php5-common                         5.5.6+dfsg-1
> ii  tzdata                              2013d-1
> ii  ucf                                 3.0027+nmu1
> ii  zlib1g                              1:1.2.8.dfsg-1
> 
> Versions of packages libapache2-mod-php5 recommends:
> ii  php5-cli  5.5.6+dfsg-1
> 
> Versions of packages libapache2-mod-php5 suggests:
> pn  php-pear  <none>
> 
> Versions of packages php5-cgi depends on:
> ii  libbz2-1.0        1.0.6-5
> ii  libc6             2.17-96
> ii  libcomerr2        1.42.8-1
> ii  libdb5.1          5.1.29-7
> ii  libgssapi-krb5-2  1.11.3+dfsg-3
> ii  libk5crypto3      1.11.3+dfsg-3
> ii  libkrb5-3         1.11.3+dfsg-3
> ii  libmagic1         1:5.14-2
> ii  libonig2          5.9.1-1
> ii  libpcre3          1:8.31-2
> ii  libqdbm14         1.8.78-2+b1
> ii  libssl1.0.0       1.0.1e-4
> ii  libxml2           2.9.1+dfsg1-3
> ii  mime-support      3.54
> ii  php5-common       5.5.6+dfsg-1
> ii  tzdata            2013d-1
> ii  ucf               3.0027+nmu1
> ii  zlib1g            1:1.2.8.dfsg-1
> 
> Versions of packages php5-cgi suggests:
> pn  php-pear  <none>
> 
> -- no debconf information
> 
> _______________________________________________
> pkg-php-maint mailing list
> pkg-php-maint@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-php-maint


-- 
Ondřej Surý <ondrej@sury.org>
Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server



Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#730624; Package php5-readline. (Fri, 06 Dec 2013 10:39:04 GMT) (full text, mbox, link).


Acknowledgement sent to Ondřej Surý <ondrej@sury.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Fri, 06 Dec 2013 10:39:04 GMT) (full text, mbox, link).


Message #17 received at 730624@bugs.debian.org (full text, mbox, reply):

From: Ondřej Surý <ondrej@sury.org>
To: Giacomo Mulas <gmulas@oa-cagliari.inaf.it>, 730624@bugs.debian.org
Subject: Re: [php-maint] Bug#730624: php5-readline: unresolved symbols in readline.so shipped in php5-readline
Date: Fri, 06 Dec 2013 11:37:07 +0100
Hi Giacorno,

php5-readline is not compiled against readline, but against libedit
(sorry for the confusion),

Could you check if you have recent libedit version?

What does:

dpkg -l libedit2

and

apt-cache policy libedit2

output?

Could you also install debsums package and do:

debsums libedit2

It should look like this:

# debsums libedit2
/usr/lib/x86_64-linux-gnu/libedit.so.2.0.47                             
     OK
/usr/share/doc/libedit2/TODO.Debian                                     
     OK
/usr/share/doc/libedit2/changelog.Debian.gz                             
     OK
/usr/share/doc/libedit2/changelog.gz                                    
     OK
/usr/share/doc/libedit2/copyright                                       
     OK
/usr/share/lintian/overrides/libedit2                                   
     OK

Also does:

# nm -D /usr/lib/x86_64-linux-gnu/libedit.so.2.0.47 | grep
rl_on_new_line

output something like:

000000000001fb10 T rl_on_new_line

It should and if it doesn't please try reinstalling your libedit2
package, since it's broken.

Cheers,
Ondrej

On Fri, Dec 6, 2013, at 11:23, Giacomo Mulas wrote:
> On Fri, 6 Dec 2013, Ondřej Surý wrote:
> 
> > please uninstall the readline library you probably have in /usr/local/
> > and you should be fine...
> 
> I double checked, there is no leftover stray readline library in odd
> places.
> I even tried with a find / -iname "libreadline.so*" and it only found the
> libraries it is supposed to find (i.e. x86_64 and i486 ones from official
> packages).
> 
> To meet your request, here is the ldd output:
> 
> root@capitanata:~# ldd /usr/lib/php5/20121212/readline.so
>  	linux-vdso.so.1 (0x00007fff97bff000)
>  	libedit.so.2 => /usr/lib/x86_64-linux-gnu/libedit.so.2
> (0x00007f012ab2c000)
>  	libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5
> (0x00007f012a903000)
>  	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f012a556000)
>  	libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0
> (0x00007f012a347000)
>  	/lib64/ld-linux-x86-64.so.2 (0x00007f012afb5000)
> 
> It is different from yours in that it does not link against libcowdancer,
> but
> otherwise similar.  Oddly, it does not link against libreadline, even if
> it
> is in the system.  Again oddly, whereas if I run php5 on the command line
> I
> get
> 
> root@capitanata:~# php5
> PHP Warning:  PHP Startup: Unable to load dynamic library
> '/usr/lib/php5/20121212/readline.so' -
> /usr/lib/php5/20121212/readline.so:
> undefined symbol: rl_on_new_line in Unknown on line 0
> 
> if I instead LD_PRELOAD the readline library (it does not matter whether
> it
> is version 5 or 6) I get no warning, and it appears to work.
> 
> Indeed, there is no dependence on any readline library in the
> php5-readline
> package, so I am somewhat puzzled:
> 
> why does /usr/lib/php5/20121212/readline.so cough on being unable to
> resolve
> a symbol that is in a library it does not depend on, and that it does not
> even try to load? In your system, which runtime library is providing
> rl_on_new_line to the php5 executable (when it loads the readline.so
> module)?
> 
> I am not sure whether this is a bug in php5-readline, it might be in
> php5-cli, or in php5-cgi, or in something else related, but it sure is a
> bug.
> 
> Bye
> Giacomo
> 
> -- 
> _________________________________________________________________
> 
> Giacomo Mulas <gmulas@oa-cagliari.inaf.it>
> _________________________________________________________________
> 
> INAF - Osservatorio Astronomico di Cagliari
> via della scienza 5 - 09047 Selargius (CA)
> 
> tel.   +39 070 71180244
> mob. : +39 329  6603810
> _________________________________________________________________
> 
> "When the storms are raging around you, stay right where you are"
>                           (Freddy Mercury)
> _________________________________________________________________


-- 
Ondřej Surý <ondrej@sury.org>
Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server



Message #18 received at 730624-done@bugs.debian.org (full text, mbox, reply):

From: Giacomo Mulas <gmulas@oa-cagliari.inaf.it>
To: Ondřej Surý <ondrej@sury.org>
Cc: Giacomo Mulas <giacomo.mulas84@gmail.com>, 730624-done@bugs.debian.org
Subject: Re: [php-maint] Bug#730624: php5-readline: unresolved symbols in readline.so shipped in php5-readline
Date: Fri, 6 Dec 2013 11:23:09 +0100 (CET)
[Message part 1 (text/plain, inline)]
On Fri, 6 Dec 2013, Ondřej Surý wrote:

> please uninstall the readline library you probably have in /usr/local/
> and you should be fine...

I double checked, there is no leftover stray readline library in odd places.
I even tried with a find / -iname "libreadline.so*" and it only found the
libraries it is supposed to find (i.e. x86_64 and i486 ones from official
packages).

To meet your request, here is the ldd output:

root@capitanata:~# ldd /usr/lib/php5/20121212/readline.so
	linux-vdso.so.1 (0x00007fff97bff000)
	libedit.so.2 => /usr/lib/x86_64-linux-gnu/libedit.so.2
(0x00007f012ab2c000)
	libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5
(0x00007f012a903000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f012a556000)
	libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0
(0x00007f012a347000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f012afb5000)

It is different from yours in that it does not link agains libcowdancer, but
otherwise similar.  Oddly, it does not link against libreadline, even if it
is in the system.  Again oddly, whereas if I run php5 on the command line I
get

root@capitanata:~# php5
PHP Warning:  PHP Startup: Unable to load dynamic library
'/usr/lib/php5/20121212/readline.so' - /usr/lib/php5/20121212/readline.so:
undefined symbol: rl_on_new_line in Unknown on line 0

if I instead LD_PRELOAD the readline library (it does not matter whether it
is version 5 or 6) I get no warning, and it appears to work.

Indeed, there is no dependence on any readline library in the php5-readline
package, so I am somewhat puzzled:

why does /usr/lib/php5/20121212/readline.so cough on being unable to resolve
a symbol that is in a library it does not depend on, and that it does not
even try to load? In your system, which runtime library is providing
rl_on_new_line to the php5 executable (when it loads the readline.so module)?

I am not sure whether this is a bug in php5-readline, it might be in
php5-cli, or in php5-cgi, or in something else related, but it sure is a
bug.

Bye
Giacomo

-- 
_________________________________________________________________

Giacomo Mulas <gmulas@oa-cagliari.inaf.it>
_________________________________________________________________

INAF - Osservatorio Astronomico di Cagliari
via della scienza 5 - 09047 Selargius (CA)

tel.   +39 070 71180244
mob. : +39 329  6603810
_________________________________________________________________

"When the storms are raging around you, stay right where you are"
                         (Freddy Mercury)
_________________________________________________________________

Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#730624; Package php5-readline. (Fri, 06 Dec 2013 12:42:07 GMT) (full text, mbox, link).


Acknowledgement sent to Giacomo Mulas <gmulas@oa-cagliari.inaf.it>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Fri, 06 Dec 2013 12:42:07 GMT) (full text, mbox, link).


Message #23 received at 730624@bugs.debian.org (full text, mbox, reply):

From: Giacomo Mulas <gmulas@oa-cagliari.inaf.it>
To: Ondřej Surý <ondrej@sury.org>
Cc: 730624@bugs.debian.org
Subject: Re: [php-maint] Bug#730624: php5-readline: unresolved symbols in readline.so shipped in php5-readline
Date: Fri, 6 Dec 2013 12:51:48 +0100 (CET)
[Message part 1 (text/plain, inline)]
On Fri, 6 Dec 2013, Ondřej Surý wrote:

> Hi Giacomo,
>
> php5-readline is not compiled against readline, but against libedit
> (sorry for the confusion),
>
> Could you check if you have recent libedit version?
>
> What does:
>
> dpkg -l libedit2
>
> and
>
> apt-cache policy libedit2
>
> output?
>
> Could you also install debsums package and do:
>
> debsums libedit2
>
> It should look like this:
>
> # debsums libedit2
> /usr/lib/x86_64-linux-gnu/libedit.so.2.0.47
>     OK
> /usr/share/doc/libedit2/TODO.Debian
>     OK
> /usr/share/doc/libedit2/changelog.Debian.gz
>     OK
> /usr/share/doc/libedit2/changelog.gz
>     OK
> /usr/share/doc/libedit2/copyright
>     OK
> /usr/share/lintian/overrides/libedit2
>     OK
>
> Also does:
>
> # nm -D /usr/lib/x86_64-linux-gnu/libedit.so.2.0.47 | grep
> rl_on_new_line
>
> output something like:
>
> 000000000001fb10 T rl_on_new_line
>
> It should and if it doesn't please try reinstalling your libedit2
> package, since it's broken.

everything above is ok, but on closer inspection I found that I had a
leftover libedit.so.2.11 in /usr/lib/i386-linux-gnu. It does not belong to
any package in my sid system, but it is identical to the version shipped in
the wheezy package. I would like to know how this happened to remain in my
system. In any case, you were right, it was not a bug in php5-readline but a
stray library. My best guess is that it was left over from some less then
perfect system update. Of course, ldconfig linked libedit.so.2 to
libedit.so.2.11 instead of libedit.so.2.0.47, since it (wrongly) looks like 
the later version.

This was a nasty one to find. I would suggest that you forward this to the
maintainer of libedit, to investigate whether this might be a common problem
in upgrading from the wheezy version to sid. My laptop is a good guinea pig,
in this respect, since I trace sid rather regularly and hardly ever put any
file where it should not go in the debian file system hierarchy (I am quite
anal bout this).

Thanks for your help and patience, bye
Giacomo

>> I am not sure whether this is a bug in php5-readline, it might be in
>> php5-cli, or in php5-cgi, or in something else related, but it sure is a
>> bug.
>>
>> Bye
>> Giacomo
>>
>> --
>> _________________________________________________________________
>>
>> Giacomo Mulas <gmulas@oa-cagliari.inaf.it>
>> _________________________________________________________________
>>
>> INAF - Osservatorio Astronomico di Cagliari
>> via della scienza 5 - 09047 Selargius (CA)
>>
>> tel.   +39 070 71180244
>> mob. : +39 329  6603810
>> _________________________________________________________________
>>
>> "When the storms are raging around you, stay right where you are"
>>                           (Freddy Mercury)
>> _________________________________________________________________
>
>
>

-- 
_________________________________________________________________

Giacomo Mulas <gmulas@oa-cagliari.inaf.it>
_________________________________________________________________

INAF - Osservatorio Astronomico di Cagliari
via della scienza 5 - 09047 Selargius (CA)

tel.   +39 070 71180244
mob. : +39 329  6603810
_________________________________________________________________

"When the storms are raging around you, stay right where you are"
                         (Freddy Mercury)
_________________________________________________________________

Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 04 Jan 2014 07:27:13 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 03:29:03 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.