From owner-freebsd-openoffice@FreeBSD.ORG Sat Feb 4 01:41:50 2006 Return-Path: X-Original-To: freebsd-openoffice@freebsd.org Delivered-To: freebsd-openoffice@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3E00E16A420 for ; Sat, 4 Feb 2006 01:41:50 +0000 (GMT) (envelope-from nikolas.britton@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id B402D43D46 for ; Sat, 4 Feb 2006 01:41:49 +0000 (GMT) (envelope-from nikolas.britton@gmail.com) Received: by xproxy.gmail.com with SMTP id s9so510091wxc for ; Fri, 03 Feb 2006 17:41:49 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=q/S404lsn4LEoCD9qmM4dNcM7H/qc5xdFqZecI6r57HdQMrMTQlHonfAtIT2KzFb2WwxL0WQGPta1ZiWv11BpPOEiJpLBJKn1uACicGT1vlZo7cfgGn+YckXsezAC5Zh3yn6cUKpujljFjRHBomeCKgP58oD0gZapf/s/PoWSx4= Received: by 10.70.118.19 with SMTP id q19mr905529wxc; Fri, 03 Feb 2006 17:41:48 -0800 (PST) Received: by 10.70.67.17 with HTTP; Fri, 3 Feb 2006 17:41:48 -0800 (PST) Message-ID: Date: Fri, 3 Feb 2006 19:41:48 -0600 From: Nikolas Britton To: freebsd-openoffice@freebsd.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_12167_11536394.1139017308826" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Successful Build!, was (Re: OOo2 port with jdk15 build failures, help?, project xmerge.) X-BeenThere: freebsd-openoffice@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting OpenOffice to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Feb 2006 01:41:50 -0000 ------=_Part_12167_11536394.1139017308826 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Success! I built openoffice.org-2.0 with jdk15 (patchset 2), kde, etc. in FreeBSD 6.0-RELEASE "make JAVA_VERSION=3D1.5 WITH_KDE=3Dyes install" Prereq: Make and Install the jdk15 port, but don't remove the linux-sun-jdk14 port just yet, we need some files from it. ### Problem 1 ### OOo needs bison2 and you have bison1 installed, you can't install both of them. ### Fix 1 ### You will need to deinstall bison1 and then install bison2. bison2 is only a build requirement for OOo so you can change it back to bison1 after you finish building OOo. ### Problem 2 (project bean) ### ERROR: Shared object "libmawt.so" not found, required by "libjawt.so" dmake: Error code 1, while making '../../unxfbsd.pro/lib/libofficebean.so' '---* tg_merge.mk *---' ERROR: Error 65280 occurred while making /usr/ports/editors/openoffice.org-2.0/work/OOA680_m1/bean/native/unix dmake: Error code 1, while making 'build_instsetoo_native' '---* tg_merge.mk *---' *** Error code 255 ### Fix 2 ### If you look you will find 3, different, versions of libmawt= .so: /usr/local/jdk1.5.0/jre/lib/i386/headless/libmawt.so /usr/local/jdk1.5.0/jre/lib/i386/motif21/libmawt.so /usr/local/jdk1.5.0/jre/lib/i386/xawt/libmawt.so You will need to symbolically link xawt/libmawt.so to: /usr/local/jdk1.5.0/jre/lib/i386/ and/or possibly /usr/local/lib/ # cd /usr/local/jdk1.5.0/jre/lib/i386/xawt/ # ln -s ./libmawt.so ../libmawt.so # ln -s ./libmawt.so ../../../../../lib/libmawt.so ### Problem 3 (project xmerge) ### as of release 1.5, 'enum' is a keyword, and may not be used as an identifie= r (try -source 1.4 or lower to use 'enum' as an identifier) mimeType=3D (String) enum.nextElement(); ^ 8 errors BUILD FAILED /usr/ports/editors/openoffice.org-2.0/work/OOA680_m1/xmerge/source/xmerge/b= uild.xml:81: Compile failed; see the compiler error output for details. Total time: 3 seconds dmake: Error code 1, while making 'ANTBUILD' '---* tg_merge.mk *---' ERROR: Error 65280 occurred while making /usr/ports/editors/openoffice.org-2.0/work/OOA680_m1/xmerge/source/xmerge dmake: Error code 1, while making 'build_instsetoo_native' '---* tg_merge.mk *---' *** Error code 255 ### Fix 3 ### You will need to edit 3 files to change the variable "enum" to something else so it doesn't conflict with the new enum keyword. Just do a standard case sensitive "Search and Replace" in your editor of choice. I would change the variable name from enum to enumer, or something similar. The base directory is: /usr/ports/editors/openoffice.org-2.0/work/OOA680_m1/xmerge/source/xmerge/j= ava/org/openoffice/xmerge/ The files are: ConvertData.java converter/xml/xslt/DocumentDeserializerImpl.java converter/xml/xslt/PluginFactoryImpl.java ### Problem 4 (project xmerge, continued...)### /usr/ports/editors/openoffice.org-2.0/work/OOA680_m1/xmerge/source/xmerge/j= ava/org/openoffice/xmerge/converter/xml/xslt/DocumentSerializerImpl.java:93= : package org.apache.xalan.serialize does not exist import org.apache.xalan.serialize.Serializer; ^ /usr/ports/editors/openoffice.org-2.0/work/OOA680_m1/xmerge/source/xmerge/j= ava/org/openoffice/xmerge/converter/xml/xslt/DocumentSerializerImpl.java:94= : package org.apache.xalan.serialize does not exist import org.apache.xalan.serialize.SerializerFactory; ^ /usr/ports/editors/openoffice.org-2.0/work/OOA680_m1/xmerge/source/xmerge/j= ava/org/openoffice/xmerge/converter/xml/xslt/DocumentSerializerImpl.java:95= : package org.apache.xalan.templates does not exist import org.apache.xalan.templates.OutputProperties; ^ Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 3 errors BUILD FAILED /usr/ports/editors/openoffice.org-2.0/work/OOA680_m1/xmerge/source/xmerge/b= uild.xml:81: Compile failed; see the compiler error output for details. Total time: 5 seconds dmake: Error code 1, while making 'ANTBUILD' '---* tg_merge.mk *---' ERROR: Error 65280 occurred while making /usr/ports/editors/openoffice.org-2.0/work/OOA680_m1/xmerge/source/xmerge dmake: Error code 1, while making 'build_instsetoo_native' '---* tg_merge.mk *---' *** Error code 255 ### Fix 4 ### For some reason J2SE SDK 5 does not include the apache class packages in the JRE rt.jar file(?). You will need to add them into this file using the ones that are in the linux-sun-jdk14 port that was installed when you built jdk15. # cd /usr/local/linux-sun-jdk1.4.2/jre/lib/ && mkdir tmp ; cd tmp ; unzip -q ../rt.jar # cd /usr/local/jdk1.5.0/jre/lib/ && mkdir tmp ; cd tmp ; unzip -q ../rt.ja= r # test -e ../rt.bak && mv ../rt.bak ../rt.jar # cp ../rt.jar ../rt.bak ; mkdir org/apache ; cd org/apache # cp -R /usr/local/linux-sun-jdk1.4.2/jre/lib/tmp/org/apache/* ./ # cd ../../ ; rm ../rt.jar ; zip -0qr ../rt.jar ./* ; ls -l ../rt*; cd / # rm -r /usr/local/linux-sun-jdk1.4.2/jre/lib/tmp ; rm -r /usr/local/jdk1.5.0/jre/lib/tmp ------=_Part_12167_11536394.1139017308826--