From owner-freebsd-ports@FreeBSD.ORG Fri Jul 1 03:12:02 2005 Return-Path: X-Original-To: ports@FreeBSD.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AB11116A41C for ; Fri, 1 Jul 2005 03:12:02 +0000 (GMT) (envelope-from chat95@mac.com) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D7C343D49 for ; Fri, 1 Jul 2005 03:12:02 +0000 (GMT) (envelope-from chat95@mac.com) Received: from mac.com (smtpin02-en2 [10.13.10.147]) by smtpout.mac.com (Xserve/8.12.11/smtpout15/MantshX 4.0) with ESMTP id j613C07e007241; Thu, 30 Jun 2005 20:12:01 -0700 (PDT) Received: from localhost ([133.11.172.102]) (authenticated bits=0) by mac.com (Xserve/smtpin02/MantshX 4.0) with ESMTP id j613BuiA025153; Thu, 30 Jun 2005 20:11:59 -0700 (PDT) Date: Fri, 01 Jul 2005 12:11:46 +0900 (JST) Message-Id: <20050701.121146.41626507.chat95@mac.com> To: ports@FreeBSD.org From: NAKATA Maho Organization: private X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: gerald@pfeifer.com Subject: gcc-4.1 snapshot and Java AWT X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2005 03:12:02 -0000 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@FreeBSD.org)