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

Compiling warnings in zip_util.c blocks devkit to build with --with-zlib=system

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:

      Description

      Erik Joelsson added a comment - 6 hours ago
      When using the updated devkit that contains zlib-devel, the build fails on these warnings when using --with-zlib=system:

      /opt/jprt/jprtadm/erik/jdk9-dev/jdk/src/java.base/share/native/libzip/zip_util.c: In function 'InflateFully':
      /opt/jprt/jprtadm/erik/jdk9-dev/jdk/src/java.base/share/native/libzip/zip_util.c:1411:50: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
                       if (count != 0 || strm.total_out != entry->size) {
                                                        ^
      /opt/jprt/jprtadm/erik/jdk9-dev/jdk/src/java.base/share/native/libzip/zip_util.c: In function 'ZIP_InflateFully':
      /opt/jprt/jprtadm/erik/jdk9-dev/jdk/src/java.base/share/native/libzip/zip_util.c:1531:36: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
                       if (strm.total_out != outLen) {
                                          ^
      cc1: all warnings being treated as errors
      gmake[3]: *** [/opt/jprt/jprtadm/erik/jdk9-dev/build/olddevkit/support/native/java.base/libzip/zip_util.o] Error 1
      gmake[3]: *** Waiting for unfinished jobs....
      gmake[2]: *** [java.base-libs] Error 1

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sherman Xueming Shen
                Reporter:
                sherman Xueming Shen
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: