Subject: Re: Broken c++ stopping ./build.sh tools
To: Andrew Reilly <andrew-netbsd@areilly.bpc-users.org>
From: Jaka Jejcic <jj@gnorw.net>
List: current-users
Date: 03/13/2004 04:59:32
On Sat, Mar 13, 2004 at 02:08:46PM +1100, Andrew Reilly wrote:
> I'm running 
> NetBSD other.reilly.home 1.6ZK NetBSD 1.6ZK (OTHER) #0: Sat Feb 28 18:34:02 EST 2004  root@other.reilly.home:/home/obj/sys/arch/i386/compile/OTHER i386
> 
> As far as I could tell, the BUILDING process at that
> date went fine, but ever since I've been unable to get
> past the config of groff when I "./build.sh tools".  The
> tools/groff/obj/build/config.log file says:
> 
> configure:2372: c++ -o conftest -O  -I/usr/src/tools/compat/obj -I/usr/src/tools
> /compat/obj/include  -I/usr/src/tools/groff/../compat -DHAVE_NBTOOL_CONFIG_H=1  
> -D_FILE_OFFSET_BITS=64 -D_NETBSD_SOURCE  conftest.cc  >&5
> /usr/lib/libstdc++.so: undefined reference to `_Unwind_GetIP'
> /usr/lib/libstdc++.so: undefined reference to `_Unwind_Resume_or_Rethrow'
> /usr/lib/libstdc++.so: undefined reference to `_Unwind_GetRegionStart'
> /usr/lib/libstdc++.so: undefined reference to `_Unwind_Resume'
> /usr/lib/libstdc++.so: undefined reference to `_Unwind_DeleteException'
> /usr/lib/libstdc++.so: undefined reference to `_Unwind_RaiseException'
> /usr/lib/libstdc++.so: undefined reference to `_Unwind_SetIP'
> /usr/lib/libstdc++.so: undefined reference to `_Unwind_GetTextRelBase'
> /usr/lib/libstdc++.so: undefined reference to `_Unwind_GetLanguageSpecificData'
> /usr/lib/libstdc++.so: undefined reference to `_Unwind_SetGR'
> /usr/lib/libstdc++.so: undefined reference to `_Unwind_GetDataRelBase'
> configure:2375: $? = 1
> configure: program exited with status 1
> configure: failed program was:
> #line 2366 "configure"
> #include "confdefs.h"
> int main() { return 0; }
> configure:2389: result: no
> configure:2390: error: a working C++ compiler is required
> 
> So it looks as though I haven't compiled one of the C++
> libraries properly, or something.
> 
> Can someone give me a hint as to how I can bootstrap myself back
> to having a working build environment?  My /usr/src tree has
> been cvs updated this morning.

First check your COPTS and CFLAGS if you use '+=' to set options. By just
using '=' you can disable an important path (exactly what I did and couldn't
build groff for a month now ;))

jj