c++filt is broken, at least on 5.3 and -CURRENT. It no longer builds during a buildworld. This is really annoying for those of using the base system compiler to build large C++ projects.
I've attached a Makefile which works for me; I haven't integrated it into my local buildworld, though. BMS
# $XORP$
S= /usr/src
.PATH: $S/contrib/gcc
PROG= c++filt
SRCS= cp-demangle.c dyn-string.c
CFLAGS+= -DSTANDALONE_DEMANGLER
CFLAGS+= -Dxmalloc=malloc -Dxrealloc=realloc
LDADD+= -lgcc
NOMAN= defined
test: ${PROG}
${.OBJDIR}/${PROG} < ${.CURDIR}/sample
.include <bsd.prog.mk>
N11__gnu_debug14_Safe_iteratorIN10__gnu_norm14_List_iteratorIP7BGPPeerEEN15__gnu_debug_def4listIS4_SaIS4_EEEEE
pgpd4m13utwWf.pgp
Description: PGP signature

