mysterious shared library problem

mysterious shared library problem

Post by Yaron M. Mins » Mon, 22 Sep 1997 04:00:00



I'm having a somewhat mysterious shared library problem.  In particular, for
some odd reason, xterm and nxterm can't find any of the X libraries they need.
Other programs, such as xclock, have no problems, even though they require the
same library.  Here's what ldd returns for xterm and xclock:

      flapdragon: bin $ ldd xterm
              libXaw.so.6 => not found
              libXmu.so.6 => not found
              libXt.so.6 => not found
              libSM.so.6 => not found
              libICE.so.6 => not found
              libXext.so.6 => not found
              libX11.so.6 => not found
              libtermcap.so.2 => /lib/libtermcap.so.2.0.8
              libc.so.5 => /lib/libc.so.5.3.12

      flapdragon: bin $ ldd xclock
              libXaw.so.6 => /usr/X11/lib/libXaw.so.6
              libXmu.so.6 => /usr/X11/lib/libXmu.so.6
              libXt.so.6 => /usr/X11/lib/libXt.so.6
              libSM.so.6 => /usr/X11/lib/libSM.so.6
              libICE.so.6 => /usr/X11/lib/libICE.so.6
              libXext.so.6 => /usr/X11/lib/libXext.so.6
              libX11.so.6 => /usr/X11/lib/libX11.so.6
              libc.so.5 => /lib/libc.so.5.3.12

To make matters weirder, xterm starts up just fine if run as root.

Does anyone have any idea what's going on here?  I've tried rerunning ldconfig,
to no avail.  I'm running Redhat 4.2, with ld.so-1.7.14-5, XFree86-3.3.1-1,
XFree86-libs-3.3.1-1.  This problem started suddenly.  I'm not quite sure what
the cause was, but I was upgrading to new python and mysql rpms.

--
/- Yaron M. Minsky --------------------------------------------\
    H: (315) 423-9907                        O: (607) 255-4934
    109 Comstock Pl. Apt. #3, Syracuse NY      4139 Upson Hall
\------------------- http://www.cs.cornell.edu/home/yminsky/ --/

 
 
 

mysterious shared library problem

Post by maca.. » Tue, 23 Sep 1997 04:00:00




<snipped>

Quote:> To make matters weirder, xterm starts up just fine if run as root.

Could someone please tell my why xterm is suid?  It doesn't seem
that it needs it but I noticed that most of the distributions install
it that way.

TIA

 
 
 

1. mysterious shared library problem (setuid problem?)

This problem just gets stranger and stranger.  I discovered that my xterm
programs (nxterm and xterm) were setuid root (why are they setuid root, by the
way?  It seems to be standard with the package, but I can't imagine why.)  Once
I get rid of the setuid root bit, the work fine.  But other programs that are
run using setuid seem to have the same problem.  In particular, if I run a
program through at, it barfs for lack of libraries.  Similarly if my httpd
daemon tries to run a cgi script.

Any ideas?
TIA,
Yaron

--
/- Yaron M. Minsky --------------------------------------------\
    H: (315) 423-9907                        O: (607) 255-4934
    109 Comstock Pl. Apt. #3, Syracuse NY      4139 Upson Hall
\------------------- http://www.cs.cornell.edu/home/yminsky/ --/

2. Maxtech Modem

3. Will strip(debug shared library) == nodebug shared library ?

4. 2.4.19-rc2 compile fail

5. Help with building shared libraries with dependencies on other shared libraries

6. Sun Binary

7. Question: Inclusion of shared libraries during linking of shared libraries

8. talk problems

9. Shared library loading shared library.

10. Need a Shared Library Guru: beyond simple shared library question

11. When is a shared library not a shared library?

12. Compiling static libraries as shared libraries

13. Building shared library which includes static libraries