From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <97186715014829.tru64-unix-managers.marc@archive.invalid> From: Christophe DIARRA Date: Wed, 18 Oct 2000 11:07:57 +0000 To: tru64-unix-managers Subject: SUMMARY: pine and gv: LD_LIBRARY_PATH visibility X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=97186715014829 Hello. I got only one response from James Sainsbury . Many thanks to him. I seems that the problem comes from the suid bit on xterm. When I remove it (chmod u-s xterm), my problem disappears. Following are the answer (an extract) and my initial question. 1) The answer ------------- Date: Wed, 18 Oct 2000 09:48:34 +1100 (EDT) From: James Sainsbury Subject: Re: pine and gv: LD_LIBRARY_PATH visibility ... The only reason the suid bit is set on xterm is so that xterm can write to /var/adm/utmp & /var/adm/wtmp for a login (xterm -ls ) session. If you remove the bit you will loose that information which is probably OK. Here I created a group "utmp" and made xterm sgid "utmp" and made /var/adm/utmp and /var/adm/wtmp group "utmp" writable to record this info. eg -r-x--s--x 1 root utmp 221184 Dec 9 1997 /usr/bin/X11/xterm -rw-rw-r-- 1 root utmp 6708 Oct 18 09:36 /var/adm/utmp -rw-rw-r-- 1 root utmp 18228132 Oct 18 09:36 /var/adm/wtmp I haven't had any problems so far. 2) The initial question ----------------------- > Hello. > > I have installed new versions of gs and gv to display ps files. > Everything is compiled with X11R6 and libXaw3d. These libraries are stored > in /import/divers/lib/ (/usr/local/lib equivalent and NFS shared). > > pine is configured to start gv when a ps attached file is selected. > > When pine is run from the shell prompt, everything works fine. But, when I > start pine from coolmail (an e-mail notifier) or with the > command 'xterm -e pine', selecting a ps file doesn't start gv. I have > instead an error message. > > diarra<7> echo $LD_LIBRARY_PATH > /usr/shlib:/usr/lib:/import/divers/lib > ^^^^^^^^^^^^^^^^^^ > diarra<8> xterm -e pine ==> leads to the following error message when I try > to display a ps file from pine > > [Displaying attachment...]15230:/import/divers/bin/gv: > /sbin/loader: Fatal Error: cannot map libXaw3d.so > > In /usr/var/X11/xdm/Xsession, LD_LIBRARY_PATH is set too to > /usr/shlib:/usr/lib:/import/divers/lib. > > What am I doing wrong ? With Solaris, the problem doesn't exist. > > Please help me. > > Christophe. *** Christophe DIARRA Institut de Physique Nucleaire Bat 100A - S2I 91406 ORSAY Cedex Tel: (33) 1 69 15 65 60 Fax: (33) 1 69 15 45 03 (33) 1 69 15 64 70 E-mail: diarra@ipno.in2p3.fr ***