Re: Funky compile error with new gcc

From: Marcel Moolenaar <marcel_at_xcllnt.net>
Date: Fri, 30 Jul 2004 13:22:29 -0700
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_at_xcllnt.net
Received on Fri Jul 30 2004 - 18:23:33 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:04 UTC