What you have posted show only warning message. These aren't so important.
These warnings generally mean that you have a variable declared as a global
variable and compiler doesn't know which one to use.

I suppose that failed to compile for other reasons. 
1) you're under cygwin and so you must run: make micaz sim-cygwin
2) I believe that you've an error related python (I've had it too) because
doesn't exist the path or the right python's version.

first of all:
a) cygwin 2.510.2.2
b) python 2.4
c) tinyos-2.x from CVS (devel-branch)

You can do a workaround modifying $TOSSIM/support/make/sim-cygwin.extra in
this way:

BUILDDIR   = simbuild/$(PLATFORM)
CFILE    = $(BUILDDIR)/sim.c
OBJFILE    = $(BUILDDIR)/sim.o
CXXFILE    = $(TOSDIR)/lib/tossim/tossim.c
CXXOBJFILE = $(BUILDDIR)/tossim.o
PYFILE     = $(TOSDIR)/lib/tossim/tossim_wrap.cxx
PYOBJFILE  = $(BUILDDIR)/pytossim.o
PYDIR      =/usr/include/python2.4/
SIMDIR     =$(TOSDIR)/lib/tossim
XML        = app.xml
DUMPTYPES = -fnesc-dump=components -fnesc-dump=variables
-fnesc-dump=constants -fnesc-dump=typedefs -fnesc-dump=interfacedefs
-fnesc-dump=tags
BUILD_DEPS = sim-exe

# lib/tossim has to come at the end in order to ensure basic TOSSIM
# implementations are the last resort, so put it directly in the call

sim-exe: builddir $(BUILD_EXTRA_DEPS) FORCE
        @echo "  placing object files in $(BUILDDIR)"
        @echo "  writing XML schema to $(XML)"
        @echo "  compiling $(COMPONENT) to object file sim.o"
        $(NCC) -c -DUSE_DL_IMPORT -fpic -o $(OBJFILE) $(OPTFLAGS) $(PFLAGS)
$(CFLAGS) $(WFLAGS) $(COMPONENT).nc $(LDFLAGS)  $(DUMPTYPES)
-fnesc-dumpfile=$(XML)

        @echo "  compiling Python support into pytossim.o and tossim.o"
        $(GPP) -c -DUSE_DL_IMPORT -shared -fpic -o $(PYOBJFILE) $(OPTFLAGS)
$(CFLAGS) $(PYFILE) -I$(PYDIR) -I$(SIMDIR) -DHAVE_CONFIG_H 
        $(GPP) -c -DUSE_DL_IMPORT -shared -fpic -o $(CXXOBJFILE) $(OPTFLAGS)
$(CFLAGS) $(CXXFILE) -I$(PYDIR) -I$(SIMDIR)
        @echo "  linking into shared object ./_TOSSIM.dll"
        $(GPP) -fpic -shared -W1,--enable-auto-image-base  $(PYOBJFILE)
$(OBJFILE) $(CXXOBJFILE) -L/usr/lib/python2.4/config -lpython2.4 -lstdc++ -o
_TOSSIM.dll
        @echo "  copying Python script interface TOSSIM.py from lib/tossim
to local directory"
        @cp $(TOSDIR)/lib/tossim/TOSSIM.py .
        @echo " "
        @echo "*** Successfully built $(PLATFORM) TOSSIM library. "

I don't know if this is the right way but it seems working :-)

--
Alessandro Reina

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to