Build fails on vanilla Mountain Lion install
niagarasoft20-macosxportdev at yahoo.com
niagarasoft20-macosxportdev at yahoo.com
Tue Oct 30 18:26:59 PDT 2012
Hello,
I'm trying to build the macport openJDK sources as described on this page:
https://wikis.oracle.com/display/OpenJDK/Mac+OS+X+Port
I've followed the instructions described on the page but get stuck with a few errors regarding X11. I did install the XQuartz package and that got me a little further along however still getting errors as follows below. What am I missing?
Mike
--------------------------------------------------------------------------------------------------
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[5]: *** [/Users/mnigrin/jdk7u-dev/build/macosx-x86_64/tmp/sun/sun.awt/awt/obj64/Region.o] Error 1
make[5]: *** 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:162: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
../../../src/solaris/native/sun/awt/awt.h:163: 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[5]: *** [/Users/mnigrin/jdk7u-dev/build/macosx-x86_64/tmp/sun/sun.awt/awt/obj64/BufImgSurfaceData.o] Error 1
make[4]: *** [library_parallel_compile] Error 2
make[3]: *** [all] Error 1
make[2]: *** [all] Error 1
make[1]: *** [jdk-build] Error 2
make: *** [build_product_image] Error 2
More information about the macosx-port-dev
mailing list