Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Jul 2004 13:22:29 -0700
From:      Marcel Moolenaar <marcel@xcllnt.net>
To:        Michael Nottebrock <michaelnottebrock@gmx.net>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Funky compile error with new gcc
Message-ID:  <20040730202229.GA77274@ns1.xcllnt.net>
In-Reply-To: <200407302159.45444.michaelnottebrock@gmx.net>
References:  <200407302159.45444.michaelnottebrock@gmx.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jul 30, 2004 at 09:59:45PM +0200, Michael Nottebrock wrote:
> The cups-base port fails in a rather strange fashion since the recent gcc 
> import. Does anybody have a clue what might be the cause and how to fix it?
> 
> cc -L../cups -L../filter ?-L/usr/local/lib -Wl,-R/usr/local/lib -Wall 
> -fPIC ?-o pdftops pdftops.o libxpdf.a -lcups ?-lcrypt ? -lsupc++ -lm
> /usr/lib/libsupc++.a(eh_throw.o)(.text.__cxa_throw+0x1a): In function 
> `__cxa_throw':
> : undefined reference to `__cxxabiv1::__unexpected_handler'

opteron% nm libsupc++.a | grep unexpected_
                 U _ZN10__cxxabiv120__unexpected_handlerE
                 U _ZN10__cxxabiv120__unexpected_handlerE
opteron% nm libstdc++.a | grep unexpected_
0000000000000000 D _ZN10__cxxabiv120__unexpected_handlerE
                 U _ZN10__cxxabiv120__unexpected_handlerE
                 U _ZN10__cxxabiv120__unexpected_handlerE

You probably want to use the C++ driver for the link, add libstdc++
yourself or remove libsupc++ from the link...

-- 
 Marcel Moolenaar	  USPA: A-39004		 marcel@xcllnt.net



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040730202229.GA77274>