This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Re: compilation error in configtool fixed
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Gary Thomas <gary at mlbassoc dot com>
- Cc: eCos patches <ecos-patches at ecos dot sourceware dot org>
- Date: Fri, 29 Jul 2005 16:55:20 +0200
- Subject: Re: compilation error in configtool fixed
- References: <42EA374D.70500@microplex.de> <1122647718.27647.296.camel@hermes>
On Fri, Jul 29, 2005 at 08:35:17AM -0600, Gary Thomas wrote:
> On Fri, 2005-07-29 at 16:03 +0200, knud.woehler@microplex.de wrote:
> > The attached patch fixes a compilation arror in
> > configtool/standalone/common/cdl_exec.cxx
> >
> > Knud
> >
> >
> > plain text document attachment (configtool.patch)
> > diff -Naur ecos.orig/host/tools/configtool/ChangeLog ecos/host/tools/configtool/ChangeLog
> > --- ecos.orig/host/tools/configtool/ChangeLog 2005-07-29 13:57:16.338808500 +0200
> > +++ ecos/host/tools/configtool/ChangeLog 2005-07-29 15:49:22.018404700 +0200
> > @@ -1,3 +1,8 @@
> > +2005-07-29 Knud Woehler <knud.woehler@microplex.de>
> > +
> > + * configtool/standalone/common/cdl_exec.cxx: Compile error fixed.
> > + 'interface' is a keyword.
>
> What compiler? Is this in ISO-C?
lunn@donkey:~$ c++ -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --enable-nls --without-included-gettext --enable-threads=posix --program-suffix=-4.0 --enable-__cxa_atexit --enable-libstdcxx-allocator=mt --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-gc=boehm --enable-java-awt=gtk --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr --disable-werror --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.0.1 (Debian 4.0.1-2)
c++ -DPACKAGE=\"ecosconfig\" -DVERSION=\"0.1\" -I. -I../../../../../../eCos/anoncvs-clean/host/tools/configtool/standalone/common -I/home/lunn/eCos/anoncvs-clean/host/libcdl -I/home/lunn/eCos/host/infra -I/usr/include/tcl8.3/tcl-private/generic -I../../../../../../eCos/anoncvs-clean/host/tools/configtool/standalone/common/../../common/common -pipe -Wall -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Woverloaded-virtual -O0 -c ../../../../../../eCos/anoncvs-clean/host/tools/configtool/standalone/common/cdl_exec.cxx
cc1plus: warning: command line option "-Wbad-function-cast" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
cc1plus: warning: command line option "-Wmissing-prototypes" is valid for Ada/C/ObjC but not for C++
cc1plus: warning: command line option "-Wnested-externs" is valid for C/ObjC but not for C++
/home/lunn/eCos/anoncvs-clean/host/libcdl/cdlcore.hxx:3470: warning: 'virtual void CdlNodeBody::save(CdlInterpreterBody*, Tcl_Channel_*, int, bool)' was hidden
/home/lunn/eCos/anoncvs-clean/host/libcdl/cdlcore.hxx:4279: warning: by 'void CdlValuableBody::save(CdlInterpreterBody*, Tcl_Channel_*, int, bool, bool)'
So it compiles with a reasonably recent version of gcc. However it
would be nice to fix some of the warnings before everybody starts
moving towards gcc 4.x
Andrew