Hello
   I am currently ****** off, so I'll try to be as gentle as possible, as I
humbly ask of you to help me.
    Recently, I started trying to get mote to serial communication to work.
It happens that Java is not working (and let me say I hate Java because it
always causes me trouble). I tried 'make' in $TOSROOT/tools/tinyos/java/,
and this is the output:

Making all in env
make[1]: Entrando no diretório `/opt/tinyos-2.x/tools/tinyos/java/env'
gcc "-I/usr/include/linux" "-I/usr/include" -shared -fpic -m32
net_tinyos_util_Env.c -olibgetenv.so
In file included from /usr/include/_G_config.h:44,
                from /usr/include/libio.h:32,
                from /usr/include/stdio.h:72,
                from /usr/lib/gcc/i386-redhat-linux/4.1.1/include/jni.h:48,
                from net_tinyos_util_Env.h:4,
                from net_tinyos_util_Env.c:3:
/usr/include/gconv.h:72: error: expected declaration specifiers or '...'
before 'size_t'
/usr/include/gconv.h:88: error: expected declaration specifiers or '...'
before 'size_t'
/usr/include/gconv.h:97: error: expected declaration specifiers or '...'
before 'size_t'
/usr/include/gconv.h:174: error: expected specifier-qualifier-list before
'size_t'
In file included from /usr/include/stdio.h:72,
                from /usr/lib/gcc/i386-redhat-linux/4.1.1/include/jni.h:48,
                from net_tinyos_util_Env.h:4,
                from net_tinyos_util_Env.c:3:
/usr/include/libio.h:329: error: expected specifier-qualifier-list before
'size_t'
/usr/include/libio.h:361: error: expected declaration specifiers or '...'
before 'size_t'
/usr/include/libio.h:370: error: expected declaration specifiers or '...'
before 'size_t'
/usr/include/libio.h:486: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '_IO_sgetn'
In file included from /usr/lib/gcc/i386-redhat-linux/4.1.1/include/jni.h:48,
                from net_tinyos_util_Env.h:4,
                from net_tinyos_util_Env.c:3:
/usr/include/stdio.h:308: error: expected declaration specifiers or '...'
before 'size_t'
/usr/include/stdio.h:315: error: expected declaration specifiers or '...'
before 'size_t'
/usr/include/stdio.h:357: error: expected declaration specifiers or '...'
before 'size_t'
/usr/include/stdio.h:359: error: format string argument not a string type
/usr/include/stdio.h:361: error: expected declaration specifiers or '...'
before 'size_t'
/usr/include/stdio.h:610: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'fread'
/usr/include/stdio.h:616: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'fwrite'
/usr/include/stdio.h:638: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'fread_unlocked'
/usr/include/stdio.h:640: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'fwrite_unlocked'
In file included from net_tinyos_util_Env.c:4:
/usr/include/stdlib.h:140: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__ctype_get_mb_cur_max'
In file included from /usr/include/sys/types.h:133,
                from /usr/include/stdlib.h:438,
                from net_tinyos_util_Env.c:4:
/usr/include/linux/time.h:10: error: expected specifier-qualifier-list
before 'time_t'
/usr/include/linux/time.h:16: error: expected specifier-qualifier-list
before 'time_t'
In file included from /usr/include/sys/select.h:46,
                from /usr/include/sys/types.h:220,
                from /usr/include/stdlib.h:438,
                from net_tinyos_util_Env.c:4:
/usr/include/bits/time.h:70: error: redefinition of 'struct timeval'
In file included from net_tinyos_util_Env.c:4:
/usr/include/stdlib.h:455: error: expected declaration specifiers or '...'
before 'size_t'
/usr/include/stdlib.h:485: error: expected declaration specifiers or '...'
before 'size_t'
/usr/include/stdlib.h:487: error: nonnull argument with out-of-range operand
number (argument 1, operand 4)
/usr/include/stdlib.h:589: error: expected ')' before '__size'
/usr/include/stdlib.h:591: error: expected ')' before '__nmemb'
/usr/include/stdlib.h:600: error: expected declaration specifiers or '...'
before 'size_t'
In file included from /usr/include/stdlib.h:612,
                from net_tinyos_util_Env.c:4:
/usr/include/alloca.h:33: error: expected ')' before '__size'
In file included from net_tinyos_util_Env.c:4:
/usr/include/stdlib.h:617: error: expected ')' before '__size'
/usr/include/stdlib.h:622: error: expected declaration specifiers or '...'
before 'size_t'
/usr/include/stdlib.h:622: error: expected declaration specifiers or '...'
before 'size_t'
/usr/include/stdlib.h:776: error: expected declaration specifiers or '...'
before 'size_t'
/usr/include/stdlib.h:776: error: expected declaration specifiers or '...'
before 'size_t'
/usr/include/stdlib.h:777: error: nonnull argument with out-of-range operand
number (argument 1, operand 5)
/usr/include/stdlib.h:781: error: expected declaration specifiers or '...'
before 'size_t'
/usr/include/stdlib.h:781: error: expected declaration specifiers or '...'
before 'size_t'
/usr/include/stdlib.h:782: error: nonnull argument with out-of-range operand
number (argument 1, operand 4)
/usr/include/stdlib.h:854: error: expected declaration specifiers or '...'
before 'size_t'
/usr/include/stdlib.h:857: error: expected declaration specifiers or '...'
before 'size_t'
/usr/include/stdlib.h:861: error: expected declaration specifiers or '...'
before 'size_t'
/usr/include/stdlib.h:865: error: expected declaration specifiers or '...'
before 'size_t'
/usr/include/stdlib.h:874: error: expected declaration specifiers or '...'
before 'size_t'
/usr/include/stdlib.h:877: error: expected ')' before '*' token
/usr/include/stdlib.h:881: error: expected declaration specifiers or '...'
before 'wchar_t'
/usr/include/stdlib.h:885: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'mbstowcs'
/usr/include/stdlib.h:888: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'wcstombs'
make[1]: ** [libgetenv.so] Erro 1
make[1]: Saindo do diretório `/opt/tinyos-2.x/tools/tinyos/java/env'
make: ** [all-recursive] Erro 1

The text in Portuguese is just 'entering directory' and 'leaving directory'.

In the TinyOS-2.x tutorial it is said that first one should install ibm's
(I'm in linux) Java SDK. I am not acquainted with these screwed up Java
names, so I downloaded and installed jre and j2se.

What should I do? I found nothing in the archives for tinyos-2.x (only for
1.x). I have absolutely no idea of what is happenning.

I thank you in advance.
    Regards,
                Bernardo

--
"The truth shall set you free"
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to