Contents LD_LIBRARY_PATH cleared by xterm
Bug #76618 reported by
Mike Rochester
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xterm (Ubuntu) |
Invalid
|
Undecided
|
Tollef Fog Heen |
Bug Description
Binary package hint: xterm
To make shared libraries available locally to programs launched from xterm, it is usual to place
in either.bash_profile or .bashrc, or in /etc/profile.
This works in most linux distributions, but not, as often reported, in Debian and Ubuntu. When xterm is launched it wipes LD_LIBRARY_PATH.
In addition xterm ignores additional paths to libraries in /etc/ld.so.conf.
The only way I have found to solve this problem is to place links to libraries in /usr/lib, which is a nuisance.
Does anyone know how to stop xterm doing this?
N.B. gnome-terminal works properly if launched as a login shell.
To post a comment you must log in.
Apparently "most" refers to Redhat, using utempter. Otherwise, xterm's
installed setgid. The X libraries (as you should have noted, having
commented "as often reported") for several years have stripped
certain environment variables from setuid and setgid programs.
utempter isn't much of an improvement (read it - or gnome-terminal ;-)
There's other ways to use the linker than by hacking up your filesystem.
Look into rpath, for instance.