Date: Fri, 3 Feb 2006 19:41:48 -0600 From: Nikolas Britton <nikolas.britton@gmail.com> To: freebsd-openoffice@freebsd.org Subject: Successful Build!, was (Re: OOo2 port with jdk15 build failures, help?, project xmerge.) Message-ID: <ef10de9a0602031741u542d87d1m88c3e299b0e87d5@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
------=_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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ef10de9a0602031741u542d87d1m88c3e299b0e87d5>