guys,
the new _WIN32 support in serialsource.* doesn't compile for me under
cygwin (see the attched log). could you add a compile time flag which
would make using the _WIN32 optional?
the old version of serialsource* compiles and works fine (ie. when i
comment out the _WIN32 stuff).
brano
----------------------------------------------------------------------
$ ./bootstrap
configure.ac:5: installing `config-aux/install-sh'
configure.ac:5: installing `config-aux/missing'
Makefile.am: installing `config-aux/depcomp'
----------------------------------------------------------------------
$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for ranlib... ranlib
configure: creating ./config.status
config.status: creating Makefile
config.status: creating autoconf.h
config.status: autoconf.h is unchanged
config.status: executing depfiles commands
----------------------------------------------------------------------
$ make
mig -o serialpacket.h -c-prefix=spacket c
/opt/tinyos-2.x/tos/lib/serial/Serial.h serial_packet
warning: Cannot determine AM type for serial_packet
(Looking for definition of AM_SERIAL_PACKET)
ncg -o serialprotocol.h -c-prefix=SERIAL c
/opt/tinyos-2.x/tos/lib/serial/Serial.h Serial.h
make all-am
make[1]: Entering directory `/opt/tinyos-2.x/support/sdk/c/sf'
gcc -DHAVE_CONFIG_H -I. -g -O2 -MT message.o -MD -MP -MF
.deps/message.Tpo -c -o message.o
message.c
mv -f .deps/message.Tpo .deps/message.Po
gcc -DHAVE_CONFIG_H -I. -g -O2 -MT serialpacket.o -MD -MP -MF
.deps/serialpacket.Tpo -c -o
serialpacket.o serialpacket.c
mv -f .deps/serialpacket.Tpo .deps/serialpacket.Po
gcc -DHAVE_CONFIG_H -I. -g -O2 -MT serialsource.o -MD -MP -MF
.deps/serialsource.Tpo -c -o
serialsource.o serialsource.c
serialsource.c: In function `serial_read':
serialsource.c:248: warning: passing arg 4 of `ReadFile' from
incompatible pointer type
serialsource.c:260: warning: passing arg 4 of `ReadFile' from
incompatible pointer type
serialsource.c: In function `source_write':
serialsource.c:511: warning: passing arg 4 of `WriteFile' from
incompatible pointer type
mv -f .deps/serialsource.Tpo .deps/serialsource.Po
gcc -DHAVE_CONFIG_H -I. -g -O2 -MT sfsource.o -MD -MP -MF
.deps/sfsource.Tpo -c -o sfsource
.o sfsource.c
mv -f .deps/sfsource.Tpo .deps/sfsource.Po
rm -f libmote.a
ar cru libmote.a message.o serialpacket.o serialsource.o sfsource.o
ranlib libmote.a
gcc -DHAVE_CONFIG_H -I. -g -O2 -MT sf.o -MD -MP -MF .deps/sf.Tpo -c
-o sf.o sf.c
mv -f .deps/sf.Tpo .deps/sf.Po
gcc -g -O2 -o sf.exe sf.o libmote.a
sf.o: In function `main':
/opt/tinyos-2.x/support/sdk/c/sf/sf.c:260: undefined reference to
`_serial_source_fd'
collect2: ld returned 1 exit status
make[1]: *** [sf.exe] Error 1
make[1]: Leaving directory `/opt/tinyos-2.x/support/sdk/c/sf'
make: *** [all] Error 2
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help