Trouble building OpenJDK on FreeBSD 7
Daniel Engberg
diizzyy at gmail.com
Thu Oct 9 00:54:58 PDT 2008
Hi,
I'm trying to get OpenJDK to build (checkout yesterday) on FreeBSD 7 but
can't seem to get it to compile. It all works fine until it tries to
find X11 libs/headers which it fails at.
"/usr/bin/gcc -O2 -fno-strict-aliasing -fPIC -W -Wall -Wno-unused
-Wno-parentheses -pipe -fno-omit-frame-pointer -D_LITTLE_ENDIAN
-D__MEDIALIB_OLD_NAMES -D__USE_J2D_NAMES -DMLIB_NO_LIBSUNMATH -Damd64
-DARCH='"amd64"' -D_ALLBSD_SOURCE -DRELEASE='"1.7.0-internal"'
-D_LARGEFILE64_SOURCE -D_GNU_SOURCE -D_REENTRANT -D_LP64=1 -I.
-I/usr/home/diizzy/m002/bsd-port/build/bsd-amd64/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../../../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/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 -I/usr/X11R6/include
-I/usr/X11R6/include/X11/extensions -c -o
/usr/home/diizzy/m002/bsd-port/build/bsd-amd64/tmp/sun/sun.awt/awt/obj64/Region.o
../../../src/share/native/sun/awt/../java2d/pipe/Region.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'
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"
Could it be that I need to wait on Greg's patches for FreeBSD 7 to make
it compile?
A bit of Googling got me here but I can't find the equal packages/ports
in FreeBSD.
http://today.java.net/pub/a/today/2007/11/29/building-the-jdk.html
Main reason I'm even trying that is because I have a slight hope that
Azureus will start working (again) on FreeBSD. If you already know its
status it would save me some hassle, unfortunately I'm not a programmer
so I cannot help in regards of debugging in case it doesnt work.
Best regards,
Daniel
More information about the bsd-port-dev
mailing list