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

-xc99=%none conflict with snv_173's /usr/include/X11/Xfuncproto.h

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 8
    • infrastructure
    • None
    • b04
    • 8
    • generic
    • generic

      OpenJDK uses -xc99=%none but /usr/include/X11/Xfuncproto.h contains a C99-only feature:

      132 /* requires xproto >= 7.0.22 */
      133 #if defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 303)
      134 #define _X_NONNULL(args...) __attribute__((nonnull(args)))
      135 #else
      136 #define _X_NONNULL(...) /* */
      137 #endif

      When building OpenJDK, it fails with

      "/usr/include/X11/Xfuncproto.h", line 136: invalid token in #define
      macro parameters: ...
      cc: acomp failed for
      ../../../src/share/native/sun/awt/image/BufImgSurfaceData.c

            Unassigned Unassigned
            weijun Weijun Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: