*BSD News Article 62299


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!news.sprintlink.net!helena.MT.net!nate
From: nate@trout.sri.MT.net (Nate Williams)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Help Installing libg++-2.7.1 on FreeBsd 2.1.0
Date: 15 Feb 1996 15:12:30 GMT
Organization: SRI Intl. - Montana Operations
Lines: 47
Message-ID: <4fvigu$p2e@helena.MT.net>
References: <310F0B6E.41C67EA6@cst.com.au> <4fpvrf$1sv@bmdhh222.bnr.ca>
Reply-To: "Nate Williams" <nate@sneezy.sri.com>
NNTP-Posting-Host: trout.sri.mt.net

In article <4fpvrf$1sv@bmdhh222.bnr.ca>, Barry Scott <tsbarry@bnr.ca> wrote:
>Bala PERIASAMY (bala@cst.com.au) wrote:
>: 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.

This is unrelated to the .weak problem, but it probably due to you not
picking up the correct prototype for the function.

You *are* including <unistd.h>, <sys/types.h>, and <sys/stat.h> aren't
you?

>	stat() writes beyond the end of its buffer.

Huh?  This can't happen unless you don't have the correct buffer size set.


>	lseek() reports EINVAL for good values of the 3rd
>	parameter.

The 2nd parameter has changed, did you pick up the correct prototype so
that your program would warn you of this change (which is required to
support files > 2GB).  'off_t' is now a 'long long'.

>	Not to mention that G++ 2.7.2 SEGV's on a lot of
>	C++ code that compiles under 2.7.2. on HPUX.

When a program SEGV's, it's almost always a hardware problem.  Don't blame
FreeBSD for programmatic errors.


Nate
-- 
nate@sneezy.sri.com    | Research Engineer, SRI Intl. - Montana Operations
nate@trout.sri.MT.net  | Loving life in God's country, the great state of
work #: (406) 449-7662 | Montana.
home #: (406) 443-7063 | A fly pole and a 4x4 Chevy truck = Heaven on Earth