Successful Build!, was (Re: OOo2 port with jdk15 build failures, help?, project xmerge.)

Nikolas Britton nikolas.britton at gmail.com
Fri Feb 3 17:41:50 PST 2006


Success! I built openoffice.org-2.0 with jdk15 (patchset 2), kde, etc.
in FreeBSD 6.0-RELEASE

"make JAVA_VERSION=1.5 WITH_KDE=yes 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 identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
            mimeType= (String) enum.nextElement();
                                             ^
8 errors

BUILD FAILED
/usr/ports/editors/openoffice.org-2.0/work/OOA680_m1/xmerge/source/xmerge/build.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/java/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/java/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/java/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/java/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/build.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.jar
# 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


More information about the freebsd-openoffice mailing list