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/15/2007 21:18:06
Hello,
At Sun, 15 Apr 2007 12:51:06 +0100,
Raymond Meyer wrote:
> Hi, build of openoffice now fails with the following errors.
> Any idea how to fix that?
>
> Making: ../unxbsds3.pro/bin/hidc
> unx
> cat ../unxbsds3.pro/misc/hidc.hidc_1.cmd
> gcc -L/opt/pkg.obj/misc/openoffice2/work.ultra10/OOF680_m14/solver/680/unxbsds3.pro/lib -Wl,-export-dynamic -L../unxbsds3.pro/lib -L/opt/pkg/lib/firefox ../unxbsds3.pro/obj/wrap_hidclex.o \
> -lpthread -lm -o ../unxbsds3.pro/bin/hidc
> ../unxbsds3.pro/obj/wrap_hidclex.o: In function `delete_stack()':
> wrap_hidclex.cxx:(.text+0x884): undefined reference to `operator delete(void*)'
> ../unxbsds3.pro/obj/wrap_hidclex.o: In function `yylex()':
> wrap_hidclex.cxx:(.text+0x2438): undefined reference to `operator new(unsigned long)'
> wrap_hidclex.cxx:(.text+0x28b4): undefined reference to `operator delete(void*)'
> ../unxbsds3.pro/obj/wrap_hidclex.o: In function `main':
> wrap_hidclex.cxx:(.text+0x3d04): undefined reference to `operator new(unsigned long)'
> wrap_hidclex.cxx:(.text+0x3d38): undefined reference to `operator new(unsigned long)'
>
> [wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:
> /opt/pkg.obj/misc/openoffice2/work.ultra10/.gcc/bin/gcc -L/opt/pkg.obj/misc/openoffice2/work.ultra10/OOF680_m14/solver/680/unxbsds3.pro/lib -Wl,-export-dynamic -L../unxbsds3.pro/lib -L/opt/pkg.obj/misc/openoffice2/work.ultra10/.buildlink/lib/firefox ../unxbsds3.pro/obj/wrap_hidclex.o -o ../unxbsds3.pro/bin/hidc -I/opt/pkg.obj/misc/openoffice2/work.ultra10/.buildlink/include -L/opt/pkg.obj/misc/openoffice2/work.ultra10/.buildlink/lib -lpthread -lm
> dmake: Error code 1, while making '../unxbsds3.pro/bin/hidc'
> '---* tg_merge.mk *---'
>
> ERROR: Error 65280 occurred while making /opt/pkg.obj/misc/openoffice2/work.ultra10/OOF680_m14/soltools/HIDCompiler
> dmake: Error code 1, while making 'build_instsetoo_native'
> '---* *---'
> *** Error code 255
>
> Stop.
> make: stopped in /opt/pkgsrc/misc/openoffice2
> *** Error code 1
The gcc command cannot link c++ object files.
Please set LINK and LINKC correctly in unxbsds.mk.
LINK*=$(CXX)
LINKC*=$(CC)
best regards.
--
Kouichirou Hiratsuka
hira@po6.nsk.ne.jp