Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4980610

warn user when some .so libraries are missing at istall time

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 1.4.2
    • docs
    • rc
    • x86
    • linux

      Name: gm110360 Date: 01/20/2004


      A DESCRIPTION OF THE REQUEST :
      Cannot run Java plug-in while all the .so libraries are installed.

      E.g.: if libgcc_s.so is not installed:
      $ ldd j2sdk1.4.2_03/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so
              libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x40052000)
              libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x4009d000)
              libdl.so.2 => /lib/libdl.so.2 (0x40177000)
              libc.so.6 => /lib/libc.so.6 (0x4017a000)
              libgcc_s.so.1 => not found
              libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x40297000)
              libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x4029f000)
              /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)


      JUSTIFICATION :
      if the user knows that there are missing .so libraries (s)he could install them instead of thinking why the java plug-in isn't working in the browser

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The install script should print something like:

      WARNING: the following libraries are missing in your system:

      The file j2sdk1.4.2_03/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so needs
              libgcc_s.so.1 => not found

      ACTUAL -
      (silence)

      ---------- BEGIN SOURCE ----------
      #!/bin/sh

      LD_LIBRARY_PATH=./jre/lib/i386/:./jre/lib/i386/server/:./jre/lib/i386/client/

      for i in $(find -name '*.so'); do
          ldd $i |grep "not found";
      done;

      for i in $(find -perm 111 -type f); do
          ldd $i|grep "not found";
      done

      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      run ldd by hand
      (Incident Review ID: 234598)
      ======================================================================

            duke J. Duke
            gmanwanisunw Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: