Subject: Re: misc/openoffice2 on NetBSD sparc64
To: Raymond Meyer <raymond.meyer@rambler.ru>
From: Kouichirou Hiratsuka <hira@po6.nsk.ne.jp>
List: pkgsrc-users
Date: 04/16/2007 21:24:15
Hello,

At Mon, 16 Apr 2007 12:42:56 +0100,
Raymond Meyer wrote:
> 
> On Mon, 16 Apr 2007 01:43:05 +0100
> Raymond Meyer <raymond.meyer@rambler.ru> wrote:
> 
> > OK, I have another problem, it is now trying to compile java files and it
> > fails because I don't have java compiler. How do I disable java support??
> 
> I commented out the following lines in unxbsds.mk and got further compiling
> openoffice
> 
> #SOLAR_JAVA=TRUE
> #JAVAFLAGSDEBUG=-g
> 
> However now I have the following error. For some reason g++ is passed
> -hlibstore.so.3 flag, which it doesn't recognise. Any idea why it does that?
> 
> Making: ../unxbsds3.pro/lib/libstore.so.3
> g++
> -L/opt/pkg.obj/misc/openoffice2/work.ultra10/OOF680_m14/solver/680/unxbsds3.pro/lib
> "-hlibstore.so.3" -shared
> -Wl,--version-script ../unxbsds3.pro/misc/store_store.map -L../unxbsds3.pro/lib
> -L/opt/pkg/lib/firefox ../unxbsds3.pro/slo/store_version.o ../unxbsds3.pro/slo/store_description.o
> -o ../unxbsds3.pro/lib/libstore.so.3 ../unxbsds3.pro/slo/object.o ../unxbsds3.pro/slo/memlckb.o ../unxbsds3.pro/slo/filelckb.o ../unxbsds3.pro/slo/storbase.o ../unxbsds3.pro/slo/storcach.o ../unxbsds3.pro/slo/stordata.o ../unxbsds3.pro/slo/storlckb.o ../unxbsds3.pro/slo/stortree.o ../unxbsds3.pro/slo/storpage.o ../unxbsds3.pro/slo/store.o
> -luno_sal -lsupc++ -lpthread -lm
> g++: unrecognized option '-hlibstore.so.3'
> 
> ...
> 
> ERROR: Error 65280 occurred while
> making /opt/pkg.obj/misc/openoffice2/work.ultra10/OOF680_m14/store/util dmake:
> Error code 1, while making 'build_instsetoo_native' '---*  *---'
> *** Error code 255
> 
> Stop.
> make: stopped in /opt/pkgsrc/misc/openoffice2

Please try to add the following setting to unxbsds.mk.

  SONAME_SWITCH=-Wl,-h

best regards.
-- 
 Kouichirou Hiratsuka
   hira@po6.nsk.ne.jp