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

Static build of libzip is missing JNI_OnLoad_zip entry point

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 9
    • 9
    • core-libs
    • b120

      The ZipFile.c was recently removed from libzip build.
      It contained the JNI_OnLoad_zip entrypoint used to flag built in static libraries. Moving the missing declaration to zip_util.c is a sufficient fix.

      diff --git a/src/java.base/share/native/libzip/zip_util.c b/src/java.base/share/native/libzip/zip_util.c
      --- a/src/java.base/share/native/libzip/zip_util.c
      +++ b/src/java.base/share/native/libzip/zip_util.c
      @@ -77,6 +77,11 @@
       static jint INITIAL_META_COUNT = 2; /* initial number of entries in meta name array */
       
       /*
      + * Declare library specific JNI_Onload entry if static build
      + */
      +DEF_STATIC_JNI_OnLoad
      +
      +/*
        * The ZFILE_* functions exist to provide some platform-independence with
        * respect to file access needs.
        */

            naoto Naoto Sato
            gadams Gary Adams (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: