> Could you give us the output from echo 'LD_LIBRARY_PATH' and 'ldd xdg-
> open' with and without sourcing sage-env. If you add an 'echo
> LD_LIBRARY_PATH' right before xdg-open is called in P.show()
>
> >From the name of the symbol I would guess that it is a libz
> incompability. There was a patch to the launch code for firefox/
> iceweasel that malb made because of a similar issue. Maybe we need to
> reset LD_LIBRARY_PATH to the old value before we modify it in sage-env
> in case we launch external helper applications.
LD_LIBRARY_PATH (right before xdg-open is called) is
/home/bober/sage-2.8.7.2/local/lib/openmpi:/home/bober/sage-2.8.7.2/local/lib/:
It isn't actually set to anything normally (outside of sage-env),
however. ldd xgd-open won't tell anything (actually, it says that it
isn't a dynamic executable) because xdg-open just launched the preferred
application. However, when executed from within sage, ldd /usr/bin/eog
yields the following possibly offending lines. (The full output is at
the end of this email.)
libgnutls.so.13 => /home/bober/sage-2.8.7.2/local/lib/libgnutls.so.13
(0xb6f0f000)
libfreetype.so.6 => /home/bober/sage-2.8.7.2/local/lib/libfreetype.so.6
(0xb6e36000)
libz.so.1 => /home/bober/sage-2.8.7.2/local/lib/libz.so.1 (0xb6e20000)
libpng12.so.0 => /home/bober/sage-2.8.7.2/local/lib/libpng12.so.0
(0xb6df3000)
libgcrypt.so.11 => /home/bober/sage-2.8.7.2/local/lib/libgcrypt.so.11
(0xb6d25000)
libgpg-error.so.0 =>
/home/bober/sage-2.8.7.2/local/lib/libgpg-error.so.0 (0xb6d21000)
I realize now that I don't have to go through all of this source editing
to find the problem:
sage: !eog
eog: symbol lookup error: /usr/lib/libxml2.so.2: undefined symbol: gzopen64
sage: !gimp
gimp: symbol lookup error: /usr/lib/libcairo.so.2: undefined symbol:
FT_Library_SetLcdFilter
sage: !gvim
gvim: symbol lookup error: /usr/lib/libcairo.so.2: undefined symbol:
FT_Library_SetLcdFilter
And the problem extends beyond library path errors into python path
errors:
sage: !glchess
Traceback (most recent call last):
File "/usr/games/glchess", line 18, in <module>
from glchess.glchess import start_game
ImportError: No module named glchess.glchess
However, calling
os.system("LD_LIBRARY_PATH='' eog")
or
os.system("LD_LIBRARY_PATH='' gimp")
works just fine, so a solution might be to just unset LD_LIBRARY_PATH
before calling external applications. But there might be a better
solution, because I would like for "!eog" to work, for example. (Well,
that's not something that I ever use, but it should work anyway.)
output from ldd /usr/bin/eog, just in case there is something I missed:
linux-gate.so.1 => (0xffffe000)
/usr/lib/fglrx/libGL.so.1.2.xlibmesa (0xb7ee9000)
libpython2.5.so.1.0 => /usr/lib/libpython2.5.so.1.0 (0xb7d9a000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7d81000)
libglade-2.0.so.0 => /usr/lib/libglade-2.0.so.0 (0xb7d69000)
liblaunchpad-integration.so.0 => /usr/lib/liblaunchpad-integration.so.0
(0xb7d65000)
libgnome-desktop-2.so.2 => /usr/lib/libgnome-desktop-2.so.2 (0xb7d50000)
libgnomeui-2.so.0 => /usr/lib/libgnomeui-2.so.0 (0xb7cc4000)
libgnomevfs-2.so.0 => /usr/lib/libgnomevfs-2.so.0 (0xb7c6a000)
libgnome-2.so.0 => /usr/lib/libgnome-2.so.0 (0xb7c55000)
libart_lgpl_2.so.2 => /usr/lib/libart_lgpl_2.so.2 (0xb7c3f000)
libgconf-2.so.4 => /usr/lib/libgconf-2.so.4 (0xb7c0d000)
libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0xb7c08000)
libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0xb7883000)
libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0xb77fb000)
libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0xb77e3000)
libcairo.so.2 => /usr/lib/libcairo.so.2 (0xb776c000)
libX11.so.6 => /usr/lib/libX11.so.6 (0xb767b000)
libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0xb7677000)
libexif.so.12 => /usr/lib/libexif.so.12 (0xb764d000)
liblcms.so.1 => /usr/lib/liblcms.so.1 (0xb761b000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb75f6000)
libdbus-glib-1.so.2 => /usr/lib/libdbus-glib-1.so.2 (0xb75db000)
libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0xb75a0000)
libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb74e3000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb74c3000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7378000)
libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb725a000)
libXext.so.6 => /usr/lib/libXext.so.6 (0xb724c000)
libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0xb7247000)
libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0xb7244000)
libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb723f000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb723a000)
libdrm.so.2 => /usr/lib/libdrm.so.2 (0xb7230000)
libutil.so.1 => /lib/tls/i686/cmov/libutil.so.1 (0xb722c000)
/lib/ld-linux.so.2 (0xb7f4c000)
libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0xb7211000)
libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0xb7208000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb71dc000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb71d4000)
libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb71d1000)
libXi.so.6 => /usr/lib/libXi.so.6 (0xb71c9000)
libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb71c3000)
libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb71ba000)
libXcomposite.so.1 => /usr/lib/libXcomposite.so.1 (0xb71b6000)
libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0xb7179000)
libSM.so.6 => /usr/lib/libSM.so.6 (0xb7171000)
libICE.so.6 => /usr/lib/libICE.so.6 (0xb7159000)
libbonoboui-2.so.0 => /usr/lib/libbonoboui-2.so.0 (0xb70fb000)
libgnomecanvas-2.so.0 => /usr/lib/libgnomecanvas-2.so.0 (0xb70ca000)
libpopt.so.0 => /lib/libpopt.so.0 (0xb70c2000)
libbonobo-2.so.0 => /usr/lib/libbonobo-2.so.0 (0xb7066000)
libbonobo-activation.so.4 => /usr/lib/libbonobo-activation.so.4
(0xb7051000)
libORBit-2.so.0 => /usr/lib/libORBit-2.so.0 (0xb6ffe000)
librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0xb6ff5000)
libstartup-notification-1.so.0 =>
/usr/lib/libstartup-notification-1.so.0 (0xb6feb000)
libgnome-keyring.so.0 => /usr/lib/libgnome-keyring.so.0 (0xb6fdd000)
libdbus-1.so.3 => /usr/lib/libdbus-1.so.3 (0xb6fa8000)
libgnutls.so.13 => /home/bober/sage-2.8.7.2/local/lib/libgnutls.so.13
(0xb6f0f000)
libavahi-glib.so.1 => /usr/lib/libavahi-glib.so.1 (0xb6f0b000)
libavahi-common.so.3 => /usr/lib/libavahi-common.so.3 (0xb6f00000)
libavahi-client.so.3 => /usr/lib/libavahi-client.so.3 (0xb6ef1000)
libresolv.so.2 => /lib/tls/i686/cmov/libresolv.so.2 (0xb6ede000)
libselinux.so.1 => /lib/libselinux.so.1 (0xb6ec8000)
libesd.so.0 => /usr/lib/libesd.so.0 (0xb6ebd000)
libaudiofile.so.0 => /usr/lib/libaudiofile.so.0 (0xb6e9b000)
libfreetype.so.6 => /home/bober/sage-2.8.7.2/local/lib/libfreetype.so.6
(0xb6e36000)
libz.so.1 => /home/bober/sage-2.8.7.2/local/lib/libz.so.1 (0xb6e20000)
libpng12.so.0 => /home/bober/sage-2.8.7.2/local/lib/libpng12.so.0
(0xb6df3000)
libXau.so.6 => /usr/lib/libXau.so.6 (0xb6df0000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb6deb000)
libnsl.so.1 => /lib/tls/i686/cmov/libnsl.so.1 (0xb6dd3000)
libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0xb6da4000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb6d84000)
libgailutil.so.18 => /usr/lib/libgailutil.so.18 (0xb6d7c000)
libORBitCosNaming-2.so.0 => /usr/lib/libORBitCosNaming-2.so.0
(0xb6d77000)
libgcrypt.so.11 => /home/bober/sage-2.8.7.2/local/lib/libgcrypt.so.11
(0xb6d25000)
libgpg-error.so.0 =>
/home/bober/sage-2.8.7.2/local/lib/libgpg-error.so.0 (0xb6d21000)
libsepol.so.1 => /lib/libsepol.so.1 (0xb6ce0000)
libasound.so.2 => /usr/lib/libasound.so.2 (0xb6c1a000)
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---