psgi_plugin.so: undefined symbol: boot_DynaLoader
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
uwsgi (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Precise |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Impact:
It appears that uwsgi-plugin-psgi does not load libperl.so and therefore the package is unusable.
Fix: the psgi plugin uses LDFLAGS to link with libraries so they are ordered wrong on the command line (due to ld --as-needed) so it ends up not linking against them at all.
the fix is to add the libraries to LIBS
The same fix is applied in upstream and quantal.
TESTCASE:
1. # apt-get install uwsgi uwsgi-plugin-psgi
2. # vi /etc/uwsgi/
Put the following contents there:
---cut-here---
uwsgi:
plugins: psgi
psgi: /dev/null
---cut-here---
3. # ln -s /etc/uwsgi/
4. # service uwsgi restart
5. # less /var/log/
Observe the following error message: /usr/lib/
The problem is obvious when looking at the uwsgi plugin file with ldd:
$ ldd /usr/lib/
linux-vdso.so.1 => (0x00007fff395f
libc.so.6 => /lib/x86_
libpthread.so.0 => /lib/x86_
/lib64/
Compare the ldd output of the fixed plugin:
$ ldd /usr/lib/
libc.so.6 => /lib/x86_
libdl.so.2 => /lib/x86_
libm.so.6 => /lib/x86_
Regression potential:
only a change in the linking of a single plugin and the plugin is unusable without the fix
low risk of regressions
rest of original report:
It does not load the perl shared library!
As a workaround I retrieved the current source package version 1.2.3+dfsg-
The working version of the plugin depends on libperl.so while the non-working version does not.
I think the problem has been fixed by this upstream commit:
https:/
See the changes in plugins/
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: uwsgi-plugin-psgi 1.0.3+dfsg-1
ProcVersionSign
Uname: Linux 3.2.0-25-generic x86_64
ApportVersion: 2.0.1-0ubuntu8
Architecture: amd64
Date: Sat Jul 14 01:57:46 2012
InstallationMedia: Xubuntu 11.10 "Oneiric Ocelot" - Beta amd64 (20110920.2)
ProcEnviron:
LANGUAGE=en_US:en
TERM=xterm
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: uwsgi
UpgradeStatus: Upgraded to precise on 2012-04-27 (77 days ago)
the issue seems fixed in quantals 1.2.3+dfsg-1 too