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

[macosx] Builds requires X11 headers (and libs?)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • None
    • client-libs
    • None
    • 2d
    • os_x

      I've upgraded to OS X 10.8. An error is reported when compiling BufImgSurfaceData.c. The included files somehow #include an X11 header file, and the build fails since Apple no longer supports X11 on OS X 10.8. I'm currently downloading the XQuartz package to remedy this issue, however, I think that in the long term JDK should not require X11 headers/libs to build on OS X. I'm using the "old" build system. The error is as follows:

      /Applications/Xcode.app/Contents/Developer/usr/bin/llvm-gcc -Os -fno-strict-aliasing -fPIC -W -Wall -Wno-unused -Wno-parentheses -pipe -m64 -fno-omit-frame-pointer -D_LITTLE_ENDIAN -F/System/Library/Frameworks/JavaVM.framework/Frameworks -F/System/Library/Frameworks/ApplicationServices.framework/Frameworks -D__MEDIALIB_OLD_NAMES -D__USE_J2D_NAMES -DMLIB_NO_LIBSUNMATH -DNDEBUG -DARCH='"x86_64"' -Dx86_64 -D_ALLBSD_SOURCE -DRELEASE='"1.8.0-internal"' -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -D_REENTRANT -DMACOSX -D_LP64=1 -I. -I../../../build/macosx-x86_64/tmp/sun/sun.awt/awt/CClassHeaders -I../../../src/closed/share/javavm/export -I../../../src/solaris/javavm/export -I../../../src/share/javavm/export -I../../../src/share/native/common -I../../../src/solaris/native/common -I../../../src/share/native/sun/awt -I../../../src/solaris/native/sun/awt -DTHIS_FILE='"BufImgSurfaceData.c"' -I../../../src/share/native/sun/awt/debug -I../../../src/share/native/sun/awt/../font -I../../../src/solaris/native/sun/awt/../font -I../../../src/share/native/sun/awt/image -I../../../src/share/native/sun/awt/image/cvutils -I../../../src/share/native/sun/awt/shell -I../../../src/share/native/sun/awt/medialib -I../../../src/solaris/native/sun/awt/medialib -I../../../src/share/native/sun/awt/../java2d -I../../../src/solaris/native/sun/awt/../java2d -I../../../src/share/native/sun/awt/../java2d/loops -I../../../src/share/native/sun/awt/../java2d/pipe -I../../../src/share/native/sun/awt/../java2d/opengl -I../../../src/solaris/native/sun/awt/../java2d/opengl -I../../../src/solaris/native/sun/awt/../java2d/x11 -I../../../src/share/native/sun/awt/../dc/doe -I../../../src/share/native/sun/awt/../dc/path -I../../../src/solaris/native/sun/awt/../jdga -I../../../src/solaris/native/sun/awt -c -o ../../../build/macosx-x86_64/tmp/sun/sun.awt/awt/obj64/BufImgSurfaceData.o ../../../src/share/native/sun/awt/image/BufImgSurfaceData.c
      In file included from ../../../src/share/native/sun/awt/../java2d/pipe/Region.h:34,
                       from ../../../src/share/native/sun/awt/../java2d/pipe/Region.c:30:
      ../../../src/solaris/native/sun/awt/utility/rect.h:31:22: error: X11/Xlib.h: No such file or directory
      In file included from ../../../src/share/native/sun/awt/../java2d/pipe/Region.h:34,
                       from ../../../src/share/native/sun/awt/../java2d/pipe/Region.c:30:
      ../../../src/solaris/native/sun/awt/utility/rect.h:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'RECT_T'
      ../../../src/solaris/native/sun/awt/utility/rect.h:51: error: expected declaration specifiers or '...' before 'RECT_T'
      In file included from ../../../src/share/native/sun/awt/../java2d/pipe/Region.c:30:
      ../../../src/share/native/sun/awt/../java2d/pipe/Region.h:211: error: expected declaration specifiers or '...' before 'RECT_T'
      ../../../src/share/native/sun/awt/../java2d/pipe/Region.c:243: error: expected declaration specifiers or '...' before 'RECT_T'
      ../../../src/share/native/sun/awt/../java2d/pipe/Region.c: In function 'RegionToYXBandedRectangles':
      ../../../src/share/native/sun/awt/../java2d/pipe/Region.c:254: error: 'pRect' undeclared (first use in this function)
      ../../../src/share/native/sun/awt/../java2d/pipe/Region.c:254: error: (Each undeclared identifier is reported only once
      ../../../src/share/native/sun/awt/../java2d/pipe/Region.c:254: error: for each function it appears in.)
      ../../../src/share/native/sun/awt/../java2d/pipe/Region.c:263: warning: comparison between signed and unsigned
      ../../../src/share/native/sun/awt/../java2d/pipe/Region.c:264: error: 'RECT_T' undeclared (first use in this function)
      ../../../src/share/native/sun/awt/../java2d/pipe/Region.c:264: error: expected expression before ')' token
      make[3]: *** [../../../build/macosx-x86_64/tmp/sun/sun.awt/awt/obj64/Region.o] Error 1
      make[3]: *** Waiting for unfinished jobs....
      In file included from ../../../src/solaris/native/sun/awt/color.h:28,
                       from ../../../src/solaris/native/sun/awt/img_util_md.h:26,
                       from ../../../src/share/native/sun/awt/image/BufImgSurfaceData.c:31:
      ../../../src/solaris/native/sun/awt/awt.h:38:27: error: X11/Intrinsic.h: No such file or directory
      In file included from ../../../src/solaris/native/sun/awt/color.h:28,
                       from ../../../src/solaris/native/sun/awt/img_util_md.h:26,
                       from ../../../src/share/native/sun/awt/image/BufImgSurfaceData.c:31:
      ../../../src/solaris/native/sun/awt/awt.h:100: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
      ../../../src/solaris/native/sun/awt/awt.h:101: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'awt_ModLockIsShiftLock'
      In file included from ../../../src/solaris/native/sun/awt/img_util_md.h:26,
                       from ../../../src/share/native/sun/awt/image/BufImgSurfaceData.c:31:
      ../../../src/solaris/native/sun/awt/color.h:34: error: expected specifier-qualifier-list before 'XPixmapFormatValues'
      In file included from ../../../src/share/native/sun/awt/image/BufImgSurfaceData.c:31:
      ../../../src/solaris/native/sun/awt/img_util_md.h:32: error: expected specifier-qualifier-list before 'XID'
      make[3]: *** [../../../build/macosx-x86_64/tmp/sun/sun.awt/awt/obj64/BufImgSurfaceData.o] Error 1
      make[2]: *** [library_parallel_compile] Error 2
      make[1]: *** [all] Error 1
      make: *** [all] Error 1

            prr Philip Race
            anthony Anthony Petrov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: