Problem building latest for cygwin

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem building latest for cygwin

Steve West
I am upgrading from eCos 1.0 to the latest release. I have followed the
recipe for buiulding the release. Here are the errors I get building.

In file included from /home/ecos/host/libcdl/cdl.hxx:58,
                 from
../../../../../../ecos/host/tools/configtool/standalone/co
mmon/../../common/common/build.hxx:25,
                 from
../../../../../../ecos/host/tools/configtool/standalone/co
mmon/cdl_exec.cxx:53:
/home/ecos/host/libcdl/cdlcore.hxx:3470: warning: `virtual void
CdlNodeBody::sav
e(CdlInterpreterBody*, Tcl_Channel_*, int, bool)' was hidden
/home/ecos/host/libcdl/cdlcore.hxx:4279: warning:   by `void
CdlValuableBody::sa
ve(CdlInterpreterBody*, Tcl_Channel_*, int, bool, bool)'
../../../../../../ecos/host/tools/configtool/standalone/common/cdl_exec.cxx:
In
member function `bool cdl_exec::cmd_remove(std::vector<std::string,
std::allocat
or<std::string> >)':
../../../../../../ecos/host/tools/configtool/standalone/common/cdl_exec.cxx:385:
 error: expected primary-expression before "struct"
../../../../../../ecos/host/tools/configtool/standalone/common/cdl_exec.cxx:385:
 error: expected `;' before "struct"
../../../../../../ecos/host/tools/configtool/standalone/common/cdl_exec.cxx:390:
 error: expected primary-expression before "struct"
../../../../../../ecos/host/tools/configtool/standalone/common/cdl_exec.cxx:390:
 error: expected `)' before "struct"
make[3]: *** [cdl_exec.o] Error 1
make[3]: Leaving directory
`/home/ecos_build/host/tools/configtool/standalone/co
mmon'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/ecos_build/host/tools/configtool/standalone/co
mmon'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ecos_build/host'
make: *** [all-recursive] Error 1



--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

Reply | Threaded
Open this post in threaded view
|

Re: Problem building latest for cygwin

Bart Veer
>>>>> "Steve" == Steve West <[hidden email]> writes:

    Steve> I am upgrading from eCos 1.0 to the latest release. I have
    Steve> followed the recipe for buiulding the release. Here are the
    Steve> errors I get building.

By the "latest release" I assume you mean anoncvs. Currently I do not
have the latest cygwin installed but I suspect it is a problem with
Windows headers defining "interface". Could you try the patch below
and let me know if it fixes things.

Bart

Index: cdl_exec.cxx
===================================================================
RCS file: /cvs/ecos/ecos/host/tools/configtool/standalone/common/cdl_exec.cxx,v
retrieving revision 1.14
diff -u -r1.14 cdl_exec.cxx
--- cdl_exec.cxx 5 Apr 2005 09:39:54 -0000 1.14
+++ cdl_exec.cxx 16 Dec 2005 14:53:57 -0000
@@ -382,12 +382,12 @@
                 std::string     owner_name  = owner ? owner->get_name() : "<unknown>";
                 CdlOption       option      = dynamic_cast<CdlOption>(base);
                 CdlComponent    component   = dynamic_cast<CdlComponent>(base);
-                CdlInterface    interface   = dynamic_cast<CdlInterface>(base);
+                CdlInterface    iface       = dynamic_cast<CdlInterface>(base);
                 if (0 != option) {
                     throw CdlStringException (cdl_packages [n] + " is an option within " + owner_name + ", not a loadable package");
                 } else if (0 != component) {
                     throw CdlStringException (cdl_packages [n] + " is a component of " + owner_name + ", not a loadable package");
-                } else if (0 != interface) {
+                } else if (0 != iface) {
                     throw CdlStringException (cdl_packages [n] + " is an interface within " + owner_name + ", not a loadable package");
                 } else {
                     throw CdlStringException (cdl_packages [n] + " is not a loadable package");

--
Bart Veer                       eCos Configuration Architect
http://www.ecoscentric.com/     The eCos and RedBoot experts


--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

Reply | Threaded
Open this post in threaded view
|

Re: Problem building latest for cygwin

Steve West
> By the "latest release" I assume you mean anoncvs. Currently I do not
> have the latest cygwin installed but I suspect it is a problem with
> Windows headers defining "interface". Could you try the patch below
> and let me know if it fixes things.
>
>
    The patch works fine. By latest release I meant latest snapshot.

Steve


--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss