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

Javah should use the freshly built classes instead of those from the BOOTDIR jdk

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 8
    • security-libs
    • b01
    • generic
    • generic
    • Verified

        After adding one more argument to the native method "nssGetModuleList" of the PKCS11 class sun.security.pkcs11.Secmod, the build fails w/ the following output:

        ===================================
        /build/solaris-i586/tmp/sun/sun.security.pkcs11/j2pkcs11/obj/p11_digest.o ../../../../src/share/native/sun/security/pkcs11/wrapper/p11_digest.c
        "../../../../src/share/native/sun/security/pkcs11/j2secmod.c", line 76: identifier redeclared: Java_sun_security_pkcs11_Secmod_nssGetModuleList
        current : function(pointer to pointer to const struct JNINativeInterface_ {..}, pointer to struct _jobject {..}, long long) returning pointer to struct _jobject {..}
        previous: function(pointer to pointer to const struct JNINativeInterface_ {..}, pointer to struct _jobject {..}, long long, pointer to struct _jobject {..}) returning pointer to struct _jobject {..} : "/w/jfxhudson/hudson-data/jobs/kb-tl/workspace/build/solaris-i586/tmp/sun/sun.security.pkcs11/j2pkcs11/CClassHeaders/sun_security_pkcs11_Secmod.h", line 49
        cc: acomp failed for ../../../../src/share/native/sun/security/pkcs11/j2secmod.c
        make381[4]: *** [/w/jfxhudson/hudson-data/jobs/kb-tl/workspace/build/solaris-i586/tmp/sun/sun.security.pkcs11/j2pkcs11/obj/j2secmod.o] Error 1
        make381[4]: *** Waiting for unfinished jobs....
        ===================================

        This is due to a problem in the sun/security/pkcs11/Makefile and needs to be fixed.

              valeriep Valerie Peng
              valeriep Valerie Peng
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: