This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: `set_new_handler' missing in libstdc++.2.9.0 of egcs-1.1b on sco-3.2v5.0.4
- To: Franz Sirl <Franz dot Sirl-kernel at lauterbach dot com>
- Subject: Re: `set_new_handler' missing in libstdc++.2.9.0 of egcs-1.1b on sco-3.2v5.0.4
- From: Joao Cardoso <jcardoso at inescn dot pt>
- Date: Mon, 02 Nov 1998 20:56:29 +0000
- CC: egcs at cygnus dot com
- Organization: INESC
- References: <4.1.19981102183749.038d03e0@mail.lauterbach.com>
Franz Sirl wrote:
>
> Hi,
>
> this should probably a FAQ, check out
> <http://www.cygnus.com/ml/egcs/1998-Aug/0811.html> and
> <http://www.cygnus.com/ml/egcs/1998-Aug/0813.html>.
>
> I short, remove the 'extern "C" ' around your set_new_handler declaration,
> this was a bug and is fixed in egcs >=1.1.
Thanks, I will check it out latter, but you seem to be right.
Joao
>
> Franz.
>
> At 01:30 02.11.98 , Joao Cardoso wrote:
> >Hi,
> >
> >When trying to compile a program with egcs-1.1b on sco-3.2v5.0.4 I got
> >the following error:
> >
> >Undefined first referenced
> > symbol in file
> >set_new_handler ../src/liboctinterp.so
> >
> >in searching for the missing symbol:
> >
> >in libstdc++.so.2.9.0 it appears as:
> >
> >nm -p /usr/local/lib/libstdc++.so.2.9.0 | fgrep set_new_handler
> >00043c38 T set_new_handler__FPFv_v
> >
> >nm -pC /usr/local/lib/libstdc++.so.2.9.0 | fgrep set_new_handler
> >00043c38 T set_new_handler(void (*)(void))
> >
> >So, why has the link failed?
> >
> >In libstdc++.so.2.8.0 it appear as:
> >
> >nm -p /usr/local/lib/libstdc++.so.2.8.0 | fgrep set_new_handler
> >00042150 T set_new_handler
> >
> >nm -pC /usr/local/lib/libstdc++.so.2.8.0 | fgrep set_new_handler
> >00042150 T set_new_handler
> >
> >And the link does not fail.
> >
> >It seems that in the new library the symbol is "mangled"???
> >If I link against libstdc++.so.2.8.0 I got no unresolved symbols.
--
Joao Cardoso | e-mail: jcardoso@inescn.pt
INESC, R. Jose Falcao 110 | tel: + 351 2 2094322
4050 Porto, Portugal | fax: + 351 2 2008487