Error bulding Java jdk15 - FAQ?

Norberto Meijome freebsd at meijome.net
Thu Mar 23 02:43:33 UTC 2006


Hi there,
I'm having trouble building jdk15 under  FreeBSD 6.1-PRERELEASE, with world, kernel and ports up to date. It
dies with
[...]
/usr/bin/gcc  -fno-strict-aliasing -fPIC -W -Wall  -Wno-unused
-Wno-parentheses -pipe -fno-omit-frame-pointer -D__MEDIALIB_OLD_NAMES
-D__USE_J2D_NAMES -DMLIB_NO_LIBSUNMATH -DMOTIF_VERSION=2  -Di586
-DARCH='"i586"' -DRELEASE='"1.5.0-p2"'
-DFULL_VERSION='"1.5.0-p2-root_23_mar_2006_10_49"' -D_GNU_SOURCE
-D_REENTRANT -D_THREAD_SAFE -D_ALLBSD_SOURCE  -I.
-I/usr/ports/java/jdk15/work/control/build/bsd-i586/tmp/sun/sun.awt/awt/CClassHeaders
-I../../../src/solaris/javavm/export -I../../../src/share/javavm/export
-I../../../src/share/javavm/include
-I../../../src/solaris/javavm/include
-I../../../src/share/native/common -I../../../src/solaris/native/common
-I../../../src/share/native/sun/awt
-I../../../src/solaris/native/sun/awt   -I/usr/X11R6/include
-I/usr/X11R6/include -I/usr/X11R6/include/X11/extensions
-I../../../src/solaris/native/sun/awt/font
-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/alphacomposite
-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/share/native/sun/awt/../dc/doe
-I../../../src/share/native/sun/awt/../dc/path
-I../../../src/solaris/native/sun/awt/../jdga   -c
-o /usr/ports/java/jdk15/work/control/build/bsd-i586/tmp/sun/sun.awt/awt/obj/BufImgSurfaceData.o  ../../../src/share/native/sun/awt/image/BufImgSurfaceData.c
In file included from ../../../src/solaris/native/sun/awt/awt.h:20,
from ../../../src/solaris/native/sun/awt/color.h:10,
from ../../../src/solaris/native/sun/awt/img_util_md.h:8,
from ../../../src/share/native/sun/awt/image/BufImgSurfaceData.c:17: /usr/X11R6/include/X11/Intrinsic.h:1181:
error: syntax error before
"_X_SENTINEL" /usr/X11R6/include/X11/Intrinsic.h:1325: error: syntax
error before "_X_SENTINEL" /usr/X11R6/include/X11/Intrinsic.h:1392:
error: syntax error before
"_X_SENTINEL" /usr/X11R6/include/X11/Intrinsic.h:1399: error: syntax
error before "_X_SENTINEL" /usr/X11R6/include/X11/Intrinsic.h:1423:
error: syntax error before
"_X_SENTINEL" /usr/X11R6/include/X11/Intrinsic.h:1475: error: syntax
error before "_X_SENTINEL" /usr/X11R6/include/X11/Intrinsic.h:1498:
error: syntax error before
"_X_SENTINEL" /usr/X11R6/include/X11/Intrinsic.h:1572: error: syntax
error before "_X_SENTINEL" /usr/X11R6/include/X11/Intrinsic.h:1593:
error: syntax error before
"_X_SENTINEL" /usr/X11R6/include/X11/Intrinsic.h:1604: error: syntax
error before "_X_SENTINEL" /usr/X11R6/include/X11/Intrinsic.h:1615:
error: syntax error before
"_X_SENTINEL" /usr/X11R6/include/X11/Intrinsic.h:1630: error: syntax
error before "_X_SENTINEL" /usr/X11R6/include/X11/Intrinsic.h:1645:
error: syntax error before
"_X_SENTINEL" ../../../src/share/native/sun/awt/image/BufImgSurfaceData.c:
In function
`Java_sun_awt_image_BufImgSurfaceData_freeNativeICMData': ../../../src/share/native/sun/awt/image/BufImgSurfaceData.c:83:
warning: cast to pointer from integer of different
size ../../../src/share/native/sun/awt/image/BufImgSurfaceData.c: In
function
`BufImg_SetupICM': ../../../src/share/native/sun/awt/image/BufImgSurfaceData.c:257:
warning: cast to pointer from integer of different
size ../../../src/share/native/sun/awt/image/BufImgSurfaceData.c:276:
warning: cast from pointer to integer of different size gmake[4]: ***
[/usr/ports/java/jdk15/work/control/build/bsd-i586/tmp/sun/sun.awt/awt/obj/BufImgSurfaceData.o]
Error 1 gmake[4]: Leaving directory
`/usr/ports/java/jdk15/work/j2se/make/sun/awt' gmake[3]: ***
[optimized] Error 2 gmake[3]: Leaving directory
`/usr/ports/java/jdk15/work/j2se/make/sun/awt' gmake[2]: *** [all]
Error 1 gmake[2]: Leaving directory
`/usr/ports/java/jdk15/work/j2se/make/sun' gmake[1]: *** [all] Error 1
gmake[1]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make'
gmake: *** [j2se-build] Error 2 *** Error code 2
---

i have linux.ko loaded and 
linprocfs on /usr/compat/linux/proc (linprocfs, local)

mounted. I also have these 2 ports installed already:
javavmwrapper-2.0_6 Wrapper script for various Java Virtual Machines
linux-sun-jdk-1.4.2.10 Sun Java Development Kit 1.4 for Linux

Any idea?

Thanks!!
Beto


More information about the freebsd-questions mailing list