Bug 95535

Summary: building openoffice-2.0 from ports fails
Product: Ports & Packages Reporter: jau
Component: Individual Port(s)Assignee: freebsd-openoffice (Nobody) <openoffice>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description jau 2006-04-09 08:50:13 UTC
The normal make in the openoffice-2.0 ports directory fails.
The output from the build attempt ends as follows (until that
moment everything goes just fine) ...

-----------------------------
SHL1FILTERFILE not set!
-----------------------------
dummy file to keep the dependencies for later use.
------------------------------
Making: ../../unxfbsd.pro/lib/libofficebean.so
g++-ooo -Wl,-z,combreloc -Wl,-rpath,'$ORIGIN' -shared -L../../unxfbsd.pro/lib -L../lib -L/usr/ports/editors/openoffice.org-2.0/work/OOB680_m5/solenv/unxfbsd/lib -L/usr/ports/editors/openoffice.org-2.0/work/OOB680_m5/solver/680/unxfbsd.pro/lib -L/usr/ports/editors/openoffice.org-2.0/work/OOB680_m5/solenv/unxfbsd/lib -L/usr/local/jdk1.5.0/lib -L/usr/local/jdk1.5.0/jre/lib/i386 -L/usr/local/jdk1.5.0/jre/lib/i386/client -L/usr/local/jdk1.5.0/jre/lib/i386/native_threads -L/usr/X11R6/lib ../../unxfbsd.pro/slo/officebean_version.o -o ../../unxfbsd.pro/lib/libofficebean.so ../../unxfbsd.pro/slo/com_sun_star_comp_beans_LocalOfficeWindow.o ../../unxfbsd.pro/slo/com_sun_star_beans_LocalOfficeWindow.o -ljawt -pthread -lm
rm -f ../../unxfbsd.pro/lib/check_libofficebean.so
mv ../../unxfbsd.pro/lib/libofficebean.so ../../unxfbsd.pro/lib/check_libofficebean.so
/usr/ports/editors/openoffice.org-2.0/work/OOB680_m5/solenv/bin/checkdll.sh -L../../unxfbsd.pro/lib -L../lib -L/usr/ports/editors/openoffice.org-2.0/work/OOB680_m5/solenv/unxfbsd/lib -L/usr/ports/editors/openoffice.org-2.0/work/OOB680_m5/solver/680/unxfbsd.pro/lib -L/usr/ports/editors/openoffice.org-2.0/work/OOB680_m5/solenv/unxfbsd/lib -L/usr/local/jdk1.5.0/lib -L/usr/local/jdk1.5.0/jre/lib/i386 -L/usr/local/jdk1.5.0/jre/lib/i386/client -L/usr/local/jdk1.5.0/jre/lib/i386/native_threads -L/usr/X11R6/lib ../../unxfbsd.pro/lib/check_libofficebean.so
Checking DLL ../../unxfbsd.pro/lib/check_libofficebean.so ...: 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/OOB680_m5/bean/native/unix
dmake:  Error code 1, while making 'build_instsetoo_native'
'---* *---'
*** Error code 255

Stop in /usr/ports/editors/openoffice.org-2.0.


The reason seems to be that the build does not find
/usr/local/jdk1.5.0/jre/lib/i386/xawt/libmawt.so.

Fix: 

The missing library path should be added to the makefiles.

-L/usr/local/jdk1.5.0/jre/lib/i386/xawt/
How-To-Repeat: Make sure your top level Makefile uses jdk-1.5.
Then issue the commands below and wait.

cd /usr/ports/editors/openoffice.org-2.0
make
Comment 1 Edwin Groothuis freebsd_committer 2006-04-09 09:11:32 UTC
Responsible Changed
From-To: freebsd-ports-bugs->openoffice

Over to maintainer
Comment 2 Maho Nakata freebsd_committer 2006-05-28 11:10:14 UTC
State Changed
From-To: open->closed

Now ooo-2.0 ports support Java 1.5, thanks for your report.