gcc-4.1 snapshot and Java AWT
NAKATA Maho
chat95 at mac.com
Fri Jul 1 03:12:02 GMT 2005
Dear all,
I'm a newbie of gcc-4.1 (lang/gcc41).
with gcj/gij, I'm trying to compile OOo with gcj/gij but in vain.
there are problems gcc ports,
first one is:
o AWT doesn't build
this maybe fixed by following patch
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/lang/gcc41/Makefile,v
retrieving revision 1.216
diff -u -r1.216 Makefile
--- Makefile 26 Jun 2005 11:44:16 -0000 1.216
+++ Makefile 1 Jul 2005 02:59:44 -0000
@@ -72,6 +72,10 @@
.if defined(WITH_FORTRAN)
CONFIGURE_ARGS+= --with-gmp=${LOCALBASE}
.endif
+.if defined(WITH_JAVA_AWT)
+USE_X11= yes
+CONFIGURE_ARGS+= --enable-java-awt=gtk2,xlib --enable-gtk-cairo=yes
+.endif
MAKE_ARGS+= MAKEINFOFLAGS="--no-split"
.if defined(WANT_SHAREDLIBS)
CONFIGURE_ARGS+= --enable-shared
o next problem is:
it seems gcjawt doesn't work for me (--enable-java-awt=gtk2)
we got many undefined classpath_jawt_get_awt_version, lock, unlock etc.
configure:7397: ccache gcc-ooo -o conftest -O -pipe -I/usr/local/lib/gcc/i386-portbld-freebsd5.4/4.1.0/gcc/i386-portbld-freebsd5.4/4.1.0/include -L/usr/local/lib/gcc/i386-portbld-freebsd5.4/4.1.0/gcc/i386-portbld-freebsd5.4/4.1.0/../../../ -lgcj conftest.c -lgcjawt >&5
/usr/local/lib/gcc/i386-portbld-freebsd5.4/4.1.0/gcc/i386-portbld-freebsd5.4/4.1.0/../../..//libgcjawt.a(libgcjawt_la-jawt.o)(.text+0xb): In function `JAWT_GetAWT':
: undefined reference to `classpath_jawt_get_awt_version'
/usr/local/lib/gcc/i386-portbld-freebsd5.4/4.1.0/gcc/i386-portbld-freebsd5.4/4.1.0/../../..//libgcjawt.a(libgcjawt_la-jawt.o)(.text+0x4e): In function `_Jv_Lock':
: undefined reference to `classpath_jawt_object_lock'
/usr/local/lib/gcc/i386-portbld-freebsd5.4/4.1.0/gcc/i386-portbld-freebsd5.4/4.1.0/../../..//libgcjawt.a(libgcjawt_la-jawt.o)(.text+0x61): In function `_Jv_Unlock':
: undefined reference to `classpath_jawt_object_unlock'
/usr/local/lib/gcc/i386-portbld-freebsd5.4/4.1.0/gcc/i386-portbld-freebsd5.4/4.1.0/../../..//libgcjawt.a(libgcjawt_la-jawt.o)(.text+0x100): In function `_Jv_GetDrawingSurface':
: undefined reference to `classpath_jawt_create_lock'
it seems gcjawt doesn't work for me (--enable-java-awt=xlib)
ccache gcc-ooo -o conftest -O -pipe -I/usr/local/lib/gcc/i386-portbld-freebsd5.4/4.1.0/gcc/i386-portbld-freebsd5.4/4.1.0/include -L/usr/local/lib/gcc/i386-portbld-freebsd5.4/4.1.0/gcc/i386-portbld-freebsd5.4/4.1.0/../../../ -lgcj conftest.c -lgcjawt >&5
/work/tmp/cc7mjDnq.o(.text+0xd): In function `main':
: undefined reference to `JAWT_GetAWT'
o last problem is:
currently OOo-2.0-devel is not buildable with gcc-4.1. there are a lot
of problems here...out current status is just mix these two compilers.
So I would like to request, a very small example, whether to find
really AWT is running....
I found a mail,
http://gcc.gnu.org/ml/java-patches/2005-q1/msg00334.html
and i found a screenshot (inc. what he's done)
http://people.redhat.com/fitzsim/gcj-libjawt.so-2005-02-11.png
but I cannot figure out what's doing.
thanks in advance,
-- NAKATA, Maho (maho at FreeBSD.org)
More information about the freebsd-ports
mailing list