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

Headless build fails due to missing X11 headers on linux

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b13
    • CPU:
      generic
    • OS:
      linux

      Description

      Headless build fails due to missing X11 headers, if the build environment requires the use of --x-includes configure flag. The problem is the header file "src/java.desktop/share/native/libawt/java2d/pipe/Region.h" which is used in various places and includes "src/java.desktop/unix/native/common/awt/utility/rect.h" which defines a platform dependent type, which requires the X11 headers on linux.

      In file included from /home/cgo/dev/openjdk/jdk/src/java.desktop/share/native/libawt/java2d/pipe/Region.h:34:0,
                       from /home/cgo/dev/openjdk/jdk/src/java.desktop/share/native/libawt/java2d/loops/Blit.c:27:
      /home/cgo/dev/openjdk/jdk/src/java.desktop/unix/native/common/awt/utility/rect.h:32:10: fatal error: X11/Xlib.h: No such file or directory
       #include <X11/Xlib.h>
                ^~~~~~~~~~~~
      compilation terminated.
       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ihse Magnus Ihse Bursie
              Reporter:
              cgo Christoph Göttschkes
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: