Coda File System

Re: Problems compiling Coda

From: Jan Harkes <jaharkes_at_cs.cmu.edu>
Date: Mon, 10 Jun 2002 11:43:01 -0400
On Fri, Jun 07, 2002 at 03:40:49PM -0400, Chris Snyder wrote:
> I'm currently trying to compile Coda, but am getting the following errors:
> 
> make[2]: Entering directory `/usr/src/coda-5.3.19/coda-src/asr'
> c++ -fno-exceptions -fno-operator-names -x c++ -MD -DHAVE_CONFIG_H -I. 
> -I/usr/src/coda-5.3.19/include -I/usr/src/coda-5.3.19 -g -O2 -c 
> resolver_parser.c

Hmm, yeah this is a nasty file, it 'looks' like a C file, because it was
generated by yacc (or bison), but it contains a mixture of C and C++
code. GCC 3.0X doesn't really like that at all.

The earlier GCC 3.0 compilers turned up some seriously bad stuff. The
layout of structs and classes (as well as similar classes that are
derived from the same baseclass) do not not necessarily match between C
and C++. In many places, Coda is simply casting things around, 'because
it always worked that way', hiding warnings and leading to unexpected
RVM corruption and random crashes.

i.e. Don't use gcc 3.0 unless you know what you are doing.

Jan
Received on 2002-06-10 11:44:09