Date: Wed, 14 Feb 96 20:48 +0100 From: FreeBSD_mail@t-online.de (Martin Heller) To: hackers@freebsd.org Subject: errors which MUST NOT happen with g++/libg++ Message-ID: <m0tmn9q-0000YIC@ermail00.btx.dtag.de>
next in thread | raw e-mail | index | archive | help
>Bala PERIASAMY (bala@cst.com.au) wrote (in the newsgroup) :
>: FreeBSD 2.1.0
>: gcc 2.7.2 (with repo patch)
>: GNU assembler version 1.92.3, FreeBSD $Revision: 1.4 $
>: I have got gcc 2.7.2 installed with the repo patch.
>: I tried to get libg++2.7.1 install.
> You will find that at a minimum that lseek() and
> stat() do not work correctly in the lib after
> you have fixed the .weak problem.
yup ! this is a FreeBSD only problem !!!! lseek works on LINUX
(what a shame for FreeBSD ;-) )
> stat() writes beyond the end of its buffer.
> lseek() reports EINVAL for good values of the 3rd
> parameter.
(the same as above)
> Not to mention that G++ 2.7.2 SEGV's on a lot of
> C++ code that compiles under 2.7.2. on HPUX.
> try this
class MyException
{
public:
MyException();
virtual ~MyException();
};
extern int dbg_flags;
void error(void);
void execute(void)
{
try {
}
catch( MyException e )
{
}
if( dbg_flags )
error();
}
> BArry
this was taken form the newsgroup by me and it shows very clearly the
need of an updated gas/ld with '.weak' support .
What about asking the guys at CYGNUS ??
Martin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m0tmn9q-0000YIC>
