Summary Question (was Ksh as root-bad advice)

From: Bruntel, Mitchell L, SOLCM (mbruntel_at_att.com)
Date: 06/27/03

  • Next message: sun_at_bagdon.com: "2.6/2.8 cron question..."
    Date: Fri, 27 Jun 2003 06:50:12 -0500
    To: "Brett Lymn" <blymn@baesystems.com.au>, <jhartzen@csc.com>
    
    

    OK. Thanks to all who've proved me absolutely wrong about COPYing ksh to
    /sbin
    (wont work since still dependencies in /usr/lib.

    Here goes last question about dependencies, and unused dependencies:

    What would happen if I take the dependencies shown by LDD and copy them into
    /sbin too?
    (a: nothing?...)
    ie copy the following files to /sbin:

    for example: :
    root@tape: /export/home/mbruntel #> ldd /sbin/ksh
            libsocket.so.1 => /usr/lib/libsocket.so.1
            libnsl.so.1 => /usr/lib/libnsl.so.1
            libsecdb.so.1 => /usr/lib/libsecdb.so.1
            libc.so.1 => /usr/lib/libc.so.1
            libdl.so.1 => /usr/lib/libdl.so.1
            libmp.so.2 => /usr/lib/libmp.so.2
            libcmd.so.1 => /usr/lib/libcmd.so.1
            /usr/platform/SUNW,Ultra-80/lib/libc_psr.so.1

    (tried with first file):
    root@tape: /export/home/mbruntel #> ls -la /sbin/lib*
    -rwxr-xr-x 1 root other 70864 Jun 27 07:36 /sbin/libsocket.so.1

    still shows with dependency:

    BUT ldd -u (shows unused dependencies) shows:

    root@tape: /export/home/mbruntel #> ldd -u /sbin/ksh
            libsocket.so.1 => /usr/lib/libsocket.so.1
            libnsl.so.1 => /usr/lib/libnsl.so.1
            libsecdb.so.1 => /usr/lib/libsecdb.so.1
            libc.so.1 => /usr/lib/libc.so.1
            libdl.so.1 => /usr/lib/libdl.so.1
            libmp.so.2 => /usr/lib/libmp.so.2
            libcmd.so.1 => /usr/lib/libcmd.so.1
            /usr/platform/SUNW,Ultra-80/lib/libc_psr.so.1

       unused object=/usr/lib/libsocket.so.1
       unused object=/usr/lib/libsecdb.so.1
       unused object=/usr/lib/libmp.so.2
       unused object=/usr/lib/libcmd.so.1

    Now what it SEEMS to say, is that libsocket.so.1 (and other files)
    are UNREFERENCED in the target (/sbin/ksh) file, yet still necessary.

    ideas? Comments? Discuss.
    TIA. Mitch
    PS: I love the list much better now that I am OUT of digest mode!
    _______________________________________________
    sunmanagers mailing list
    sunmanagers@sunmanagers.org
    http://www.sunmanagers.org/mailman/listinfo/sunmanagers


  • Next message: sun_at_bagdon.com: "2.6/2.8 cron question..."

    Relevant Pages

    • Re: ldd and library dependency
      ... This is why I like to install things with package managers rather than by ... such dependencies get reported before you delete the ... In both cases ldd would report the library as required dependency. ...
      (comp.os.linux.setup)
    • Re: Cannot create Java VM on Suse 64 with IBM JVM
      ... application on Suse 64 using IBM JDK v1.4.2, but getting error code ... What dependencies does ldd say that your C++ launcher ...
      (comp.lang.java.programmer)
    • Re: mplayer borked with libpthread + feb4th Current
      ... > By using ldd on mplayer, then all of its dependencies, you can track ...
      (freebsd-current)
    • Re: Cannot find SUNW_1.7; values-Xa.o
      ... The ones ldd shows as dependencies of xmms on your 5.8 installation seem ...
      (comp.unix.solaris)
    • Re: error 1068
      ... double-click on the Spooler ... check the dependencies and take note of any dependencies other than RPCSS ... > the dependency the print spooler wont work and therefore the computer ... > recognize the printers or allow me to reinstall their software, ...
      (microsoft.public.windowsupdate)