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

fix for 6374419 suppresses real error message from the linker

XMLWordPrintable

    • b80
    • 6
    • b01
    • sparc
    • solaris_9

        While reading forums I've tripped across several users who are rightly confused UnsatisfiedLinkErrors of the form:

        Exception in thread "Thread-1" java.lang.UnsatisfiedLinkError: /home/ktasinga/development/aperi/AperiDebug/lib/linux-ix86/libDataServer.so: Can't load IA 32-bit .so on a IA 32-bit platform

        instead of the infinitely more helpful:

        Exception in thread "Thread-1" java.lang.UnsatisfiedLinkError: /home/ktasinga/development/aperi/AperiDebug/lib/linux-ix86/libDataServer.so: /home/ktasinga/development/aperi/AperiDebug/lib/linux-ix86/libDataServer.so: undefined symbol: adminGIDField

        The code added to fix 6374419 suppresses the real error message from the linker in this case. That could should probably only trigger if the library and the platform are different. Given that we went to the trouble to backport this to an 1.5 update release this should also be fixed in a 1.5 update release.

        Here are two cases where users on our forums were confused by this message

        http://forum.java.sun.com/thread.jspa?threadID=792436
        http://forum.java.sun.com/thread.jspa?threadID=5126164

              ikrylov Ivan Krylov (Inactive)
              never Tom Rodriguez
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: