Subject: Re: Building openoffice2 on amd64
To: None <paul@whooppee.com>
From: Kouichirou Hiratsuka <hira@po6.nsk.ne.jp>
List: current-users
Date: 12/24/2007 19:48:55
Hello,

At Mon, 24 Dec 2007 02:36:04 -0800 (PST),
Paul Goyette wrote:
> 
> >>> Please update your pkgsrc tree and try again.
> >>
> >> To which version?  I update to HEAD daily.
> >
> > I've committed the fix to HEAD 40 minutes ago.
> >
> >  http://mail-index.NetBSD.org/pkgsrc-changes/2007/12/24/0001.html
> 
> Well, patch-ba revision 1.10 doesn't fix the problem for me....
> 
> =============
> Building project store
> =============
> /usr/pkgsrc/misc/openoffice2/work.x86_64/OOG680_m9/store/inc
> -------------
> /usr/pkgsrc/misc/openoffice2/work.x86_64/OOG680_m9/store/source
> -------------
> /usr/pkgsrc/misc/openoffice2/work.x86_64/OOG680_m9/store/util
> ------------------------------
> Making: ../unxbsdx3.pro/lib/libstore.so.3
> c++ -z combreloc -z defs -Wl,-rpath,'$ORIGIN' 
> -L/usr/pkgsrc/misc/openoffice2/work.x86_64/OOG680_m9/solver/680/unxbsdx3.pro/lib 
> "-Wl,-hlibstore.so.3" -shared -Wl,-O1 -Wl,--version-script 
> ../unxbsdx3.pro/misc/store_store.map -L../unxbsdx3.pro/lib 
> -L/usr/pkg/lib/firefox ../unxbsdx3.pro/slo/store_version.o -o 
> ../unxbsdx3.pro/lib/libstore.so.3 ../unxbsdx3.pro/slo/object.o 
> ../unxbsdx3.pro/slo/memlckb.o ../unxbsdx3.pro/slo/filelckb.o 
> ../unxbsdx3.pro/slo/storbase.o ../unxbsdx3.pro/slo/storcach.o 
> ../unxbsdx3.pro/slo/stordata.o ../unxbsdx3.pro/slo/storlckb.o 
> ../unxbsdx3.pro/slo/stortree.o ../unxbsdx3.pro/slo/storpage.o 
> ../unxbsdx3.pro/slo/store.o -luno_sal -lsupc++ -lpthread -lm -lc -lgcc_s
> -lstdc++
> ld: /usr/lib/libsupc++.a(pure.o): relocation R_X86_64_32 against `a 
> local symbol' can not be used when making a shared object; recompile 
> with -fPIC
> /usr/lib/libsupc++.a: could not read symbols: Bad value
> dmake:  Error code 1, while making '../unxbsdx3.pro/lib/libstore.so.3'
> ---* tg_merge.mk *---
> 
> ERROR: Error 65280 occurred while making 
> /usr/pkgsrc/misc/openoffice2/work.x86_64/OOG680_m9/store/util
> dmake:  Error code 1, while making 'build_instsetoo_native'
> ---*  *---
> *** Error code 255

I've fixed libXinerama.  On NetBSD/amd64 the package still cannot be
compiled with gcc-4.  Please try:

  # cd /usr/src/gnu/lib/libsupc++4
  # make CFLAGS+="-fPIC" && make install
  # cd /usr/pkgsrc/misc/openoffice2 && make

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