From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30601 invoked by alias); 31 Mar 2003 09:22:43 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 30574 invoked from network); 31 Mar 2003 09:22:40 -0000 Received: from unknown (HELO localhost.localdomain) (195.113.19.66) by sources.redhat.com with SMTP; 31 Mar 2003 09:22:40 -0000 Received: from localhost.localdomain (sunsite [127.0.0.1]) by localhost.localdomain (8.12.8/8.12.8) with ESMTP id h2V9MaqO005835; Mon, 31 Mar 2003 11:22:36 +0200 Received: (from jakub@localhost) by localhost.localdomain (8.12.8/8.12.8/Submit) id h2V9MZnS005833; Mon, 31 Mar 2003 11:22:35 +0200 Date: Mon, 31 Mar 2003 15:45:00 -0000 From: Jakub Jelinek To: Gerald Pfeifer Cc: java@gcc.gnu.org, gcc@gcc.gnu.org Subject: Re: Building OpenOffice with GCJ? Message-ID: <20030331092235.GB16629@sunsite.ms.mff.cuni.cz> Reply-To: Jakub Jelinek References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i X-SW-Source: 2003-03/txt/msg01796.txt.bz2 On Mon, Mar 31, 2003 at 10:46:31AM +0200, Gerald Pfeifer wrote: > RMS asked about the following: > > I've heard that OpenOffice includes Java programs that cannot be > built with GCJ. This has the consequence that a free GNU/Linux > system including OpenOffice is not self-hosting. > > Do you know what's the actual situation here? If the above is indeed > the case, I understood he'd like talking to someone who is interested in > investigating the details of what needs to be done to allow OpenOffice > being built with GCJ. Java is used AFAIK for 2 things in OOo (it may have changed since I last looked at it, which is more than a year ago): during the build process for XML parsing and to build classes and Java UNO bridge so that one can use Java plugins in OOo. There is a whole lot of proprietary closed source classes packed in OOo. When I was trying to build the XML parser using GCJ, I was unsuccessful, so what we ended up doing is writing a different XML parser (basically very short script using xsltproc) which does the same as the one written in Java included in OOo and disabling Java plugin support in OOo (both because there are no sources for lots of classes used by the plugins and because the bridge relies on Sun JDK internals). gcj is used only to cheat (ie. for each .java source it builds a dummy .class which provides an empty class) to avoid massive makefile surgery. Jakub