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

splashscreen_png.c compile error with gcc 4.9.2

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: client-libs
    • Labels:
    • Environment:

      Fedora 21 64 bit, gcc 4.9.2

    • Subcomponent:
    • Resolved In Build:
      b74
    • CPU:
      x86
    • OS:
      linux

      Backports

        Description

        Compiling recent OpenJDK 9 on Fedora 21 gives compile error:

        /home/peter/work/hg/jdk9-dev/jdk/src/java.desktop/share/native/libsplashscreen/splashscreen_png.c: In function 'SplashDecodePng':
        /home/peter/work/hg/jdk9-dev/jdk/src/java.desktop/share/native/libsplashscreen/splashscreen_png.c:51:16: error: variable 'row_pointers' might be clobbered by 'longjmp' or 'vfork' [-Werror=clobbered]
             png_bytepp row_pointers = NULL;
                        ^
        /home/peter/work/hg/jdk9-dev/jdk/src/java.desktop/share/native/libsplashscreen/splashscreen_png.c:52:15: error: variable 'image_data' might be clobbered by 'longjmp' or 'vfork' [-Werror=clobbered]
             png_bytep image_data = NULL;
                       ^
        cc1: all warnings being treated as errors
        gmake[3]: *** [/home/peter/work/hg/jdk9-dev/build/linux-x86_64-normal-server-release/support/native/java.desktop/libsplashscreen/splashscreen_png.o] Error 1
        gmake[3]: *** Waiting for unfinished jobs....
        Awt2dLibraries.gmk:879: recipe for target '/home/peter/work/hg/jdk9-dev/build/linux-x86_64-normal-server-release/support/native/java.desktop/libsplashscreen/splashscreen_png.o' failed
        gmake[2]: *** [java.desktop-libs] Error 1
        make/Main.gmk:168: recipe for target 'java.desktop-libs' failed

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  plevart Peter Levart
                  Reporter:
                  plevart Peter Levart
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: