[comp.windows.x] xterm problem after install

bjm@bigben.uucp (Brendan McMahon) (06/05/90)

Installed latest/greatest X11R4.  Source is on a sparcserver 4/390,
NfS mounted to a sparc-station.  Root can bring up xinit with the
default 1 xterm fine.  When a non-root user attempts xinit, I get
ld.so: libXmu.so.4: not found.
Xterm is setuid to root.  I have run ranlib.

The interesting thing is that a xterm does work for a non-root user
if the trace command is used ie: trace xterm, will dump the trace
and bring up the window.

Also the refence to libXmu.so.4 is resolved when xinit calls the X
server. It is just the xterm client that can't resolve libXmu.so.4

I have set LD_LIBRARY_PATH to /lib/Xlib where /lib from the server
machine is mounted with all the X libraries.  LD_LIBRARY_PATH  was 
not set when X was compiled.  

Any help appreciated!
-- 
My Opinions only
...rochester!rocksanne!bigben!bjm           <=====>         bjm.rochia@xerox.com

bjm@bigben.uucp (Brendan McMahon) (06/06/90)

Thanks to all who responded by mail.  The problem was that setuid
programs ignore the env. variable LD_LIBRARY_PATH.  The best solution
was to make a symbolic link from the non-standard X library directory 
/lib/Xlib to a dir that is always searched for resolving dynamic ld 
references, lib:/usr/lib:/usr/local/lib.  I used /usr/local/lib since 
I was not previously using it.
-- 
My Opinions only
...rochester!rocksanne!bigben!bjm           <=====>         bjm.rochia@xerox.com