Hi Urs,

Yes, I have removed the '-n' in line 109 of the configure.ac file.

These are the outputs of the command execution:

1. ./Bootstrap
--------------------------
+ aclocal
+ autoconf
+ '[' -d config-aux ']'
+ automake -a -c
+ set -x
+ cd platforms/mica/uisp
+ ./bootstrap
+ rm -f config.cache src/config.cache


2. ./configure --prefix=/stow/repository/tinyos-2.x-tools
-----------------------
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... config-aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-apple-darwin10.7.3
checking host system type... x86_64-apple-darwin10.7.3
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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 g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for ranlib... ranlib
checking for perl... /opt/local/bin/perl
checking for python... /usr/bin/python
checking for nescc... /stow/bin/nescc
configure: Default ncc build target is mica
configure: ...but using a tos/.default-platform file is a better choice
configure: TinyOS directory is /Users/yusnaidi/tinyos-2.x/tos
checking for cygwin... no
checking for JDK location...
/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK
configure: creating ./config.status
config.status: creating Makefile
config.status: creating platforms/Makefile
config.status: creating platforms/mica/Makefile
config.status: creating platforms/mica/cc1000-channelgen/Makefile
config.status: creating platforms/msp430/Makefile
config.status: creating platforms/msp430/motelist/Makefile
config.status: creating platforms/msp430/pybsl/Makefile
config.status: creating platforms/msp430/pybsl/tos-bsl.1
config.status: creating platforms/msp430/pybsl/serial/Makefile
config.status: creating tinyos/Makefile
config.status: creating tinyos/java/Makefile
config.status: creating tinyos/java/env/Makefile
config.status: creating tinyos/java/serial/Makefile
config.status: creating tinyos/misc/tos-ident-flags
config.status: creating tinyos/misc/tos-install-jni
config.status: creating tinyos/misc/tos-set-symbols
config.status: creating tinyos/misc/tos-write-buildinfo
config.status: creating tinyos/misc/tos-write-image
config.status: creating tinyos/misc/tos-storage-at45db
config.status: creating tinyos/misc/tos-storage-stm25p
config.status: creating tinyos/misc/tos-storage-pxa27xp30
config.status: creating tinyos/misc/Makefile
config.status: creating tinyos/ncc/Makefile
config.status: creating tinyos/ncc/mig
config.status: creating tinyos/ncc/ncc
config.status: creating tinyos/ncc/ncg
config.status: creating tinyos/ncc/nesdoc
config.status: creating tinyos/ncc/nesdoc-py/Makefile
config.status: creating tinyos/tosthreads/Makefile
config.status: creating tinyos/safe/Makefile
config.status: executing depfiles commands
=== configuring in platforms/mica/uisp
(/Users/yusnaidi/tinyos-2.x/tools/platforms/mica/uisp)
configure: running /bin/sh ./configure --disable-option-checking
'--prefix=/stow/repository/tinyos-2.x-tools'  --cache-file=/dev/null
--srcdir=.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... config/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-apple-darwin10.7.3
checking host system type... x86_64-apple-darwin10.7.3
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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 g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for working memcmp... yes
checking for vprintf... yes
checking for _doprnt... no
checking for gettimeofday... yes
checking for select... yes
checking for strstr... yes
checking for strtol... yes
checking for strtod... yes
checking for cygwin... no
configure: creating ./config.status
config.status: creating src/Makefile
config.status: creating kernel/Makefile
config.status: creating kernel/win32/Makefile
config.status: creating uisp.1
config.status: creating uisp.spec
config.status: creating Makefile
config.status: creating src/config.h
config.status: src/config.h is unchanged
config.status: executing depfiles commands


3. make
----------------------
Making all in platforms
Making all in mica
Making all in cc1000-channelgen
make[3]: Nothing to be done for `all'.
Making all in uisp
Making all in src
make  all-am
make[4]: Nothing to be done for `all-am'.
make[3]: Nothing to be done for `all-am'.
Making all in msp430
Making all in motelist
make[3]: Nothing to be done for `all'.
Making all in pybsl
Making all in serial
make[4]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all-am'.
make[3]: Nothing to be done for `all-am'.
make[2]: Nothing to be done for `all-am'.
Making all in tinyos
Making all in java
Making all in env
make[3]: Nothing to be done for `all'.
Making all in serial
g++ -O2 -bundle
"-I/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Headers"
\
     -o libtoscomm.jnilib NativeSerial_darwin.cpp
NativeSerial_darwin.cpp: In member function 'void
NativeSerial::errno_wrap(bool, const char*)':
NativeSerial_darwin.cpp:77: error: 'strerror' was not declared in this scope
NativeSerial_darwin.cpp: In static member function 'static std::string
NativeSerial::getTOSCommMap()':
NativeSerial_darwin.cpp:504: error: 'getenv' was not declared in this scope
make[3]: *** [libtoscomm.jnilib] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1


4. sudo make install
--------------------
Making install in platforms
Making install in mica
Making install in cc1000-channelgen
test -z "/stow/repository/tinyos-2.x-tools/bin" ||
../../../config-aux/install-sh -c -d "/stow/repository/tinyos-2.x-tools/bin"
  /usr/bin/install -c tos-channelgen '/stow/repository/tinyos-2.x-tools/bin'
test -z "/stow/repository/tinyos-2.x-tools/share/man/man1" ||
../../../config-aux/install-sh -c -d
"/stow/repository/tinyos-2.x-tools/share/man/man1"
 /usr/bin/install -c -m 644 tos-channelgen.1
'/stow/repository/tinyos-2.x-tools/share/man/man1'
Making install in uisp
Making install in src
test -z "/stow/repository/tinyos-2.x-tools/bin" || ../config/install-sh -c
-d "/stow/repository/tinyos-2.x-tools/bin"
  /usr/bin/install -c uisp '/stow/repository/tinyos-2.x-tools/bin'
make[5]: Nothing to be done for `install-data-am'.
make[5]: Nothing to be done for `install-exec-am'.
/bin/sh
/Users/yusnaidi/tinyos-2.x/tools/platforms/mica/uisp/config/install-sh -d
/stow/repository/tinyos-2.x-tools/share/doc/uisp-20050519tinyos
for file in AUTHORS ChangeLog COPYING INSTALL CHANGES CHANGES.old TODO ; do
\
      echo " /usr/bin/install -c -m 644 $file
/stow/repository/tinyos-2.x-tools/share/doc/uisp-20050519tinyos/$file"; \
      /usr/bin/install -c -m 644 ./$file
/stow/repository/tinyos-2.x-tools/share/doc/uisp-20050519tinyos/$file; \
    done
 /usr/bin/install -c -m 644 AUTHORS
/stow/repository/tinyos-2.x-tools/share/doc/uisp-20050519tinyos/AUTHORS
 /usr/bin/install -c -m 644 ChangeLog
/stow/repository/tinyos-2.x-tools/share/doc/uisp-20050519tinyos/ChangeLog
 /usr/bin/install -c -m 644 COPYING
/stow/repository/tinyos-2.x-tools/share/doc/uisp-20050519tinyos/COPYING
 /usr/bin/install -c -m 644 INSTALL
/stow/repository/tinyos-2.x-tools/share/doc/uisp-20050519tinyos/INSTALL
 /usr/bin/install -c -m 644 CHANGES
/stow/repository/tinyos-2.x-tools/share/doc/uisp-20050519tinyos/CHANGES
 /usr/bin/install -c -m 644 CHANGES.old
/stow/repository/tinyos-2.x-tools/share/doc/uisp-20050519tinyos/CHANGES.old
install: ./CHANGES.old: No such file or directory
 /usr/bin/install -c -m 644 TODO
/stow/repository/tinyos-2.x-tools/share/doc/uisp-20050519tinyos/TODO
test -z "/stow/repository/tinyos-2.x-tools/share/man/man1" ||
config/install-sh -c -d "/stow/repository/tinyos-2.x-tools/share/man/man1"
 /usr/bin/install -c -m 644 uisp.1
'/stow/repository/tinyos-2.x-tools/share/man/man1'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
Making install in msp430
Making install in motelist
test -z "/stow/repository/tinyos-2.x-tools/bin" ||
../../../config-aux/install-sh -c -d "/stow/repository/tinyos-2.x-tools/bin"
 /usr/bin/install -c motelist '/stow/repository/tinyos-2.x-tools/bin'
test -z "/stow/repository/tinyos-2.x-tools/share/man/man1" ||
../../../config-aux/install-sh -c -d
"/stow/repository/tinyos-2.x-tools/share/man/man1"
 /usr/bin/install -c -m 644 motelist.1
'/stow/repository/tinyos-2.x-tools/share/man/man1'
Making install in pybsl
Making install in serial
make[5]: Nothing to be done for `install-exec-am'.
test -z "/stow/repository/tinyos-2.x-tools/lib/tinyos/serial" ||
../../../../config-aux/install-sh -c -d
"/stow/repository/tinyos-2.x-tools/lib/tinyos/serial"
 /usr/bin/install -c -m 644 __init__.py serialjava.py serialposix.py
serialutil.py serialwin32.py
'/stow/repository/tinyos-2.x-tools/lib/tinyos/serial'
test -z "/stow/repository/tinyos-2.x-tools/bin" ||
../../../config-aux/install-sh -c -d "/stow/repository/tinyos-2.x-tools/bin"
 /usr/bin/install -c tos-bsl '/stow/repository/tinyos-2.x-tools/bin'
test -z "/stow/repository/tinyos-2.x-tools/share/man/man1" ||
../../../config-aux/install-sh -c -d
"/stow/repository/tinyos-2.x-tools/share/man/man1"
 /usr/bin/install -c -m 644 tos-bsl.1
'/stow/repository/tinyos-2.x-tools/share/man/man1'
test -z "/stow/repository/tinyos-2.x-tools/share/doc/tinyos-tools-1.2.4" ||
../../../config-aux/install-sh -c -d
"/stow/repository/tinyos-2.x-tools/share/doc/tinyos-tools-1.2.4"
 /usr/bin/install -c -m 644 tos-bsl.txt tos-bsl-license.txt
'/stow/repository/tinyos-2.x-tools/share/doc/tinyos-tools-1.2.4'
test -z "/stow/repository/tinyos-2.x-tools/lib/tinyos" ||
../../../config-aux/install-sh -c -d
"/stow/repository/tinyos-2.x-tools/lib/tinyos"
 /usr/bin/install -c -m 644 elf.py
'/stow/repository/tinyos-2.x-tools/lib/tinyos'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
Making install in tinyos
Making install in java
Making install in env
make[4]: Nothing to be done for `install-exec-am'.
test -z "/stow/repository/tinyos-2.x-tools/lib/tinyos" ||
../../../config-aux/install-sh -c -d
"/stow/repository/tinyos-2.x-tools/lib/tinyos"
  /usr/bin/install -c libgetenv.jnilib
'/stow/repository/tinyos-2.x-tools/lib/tinyos'
Making install in serial
g++ -O2 -bundle
"-I/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Headers"
\
     -o libtoscomm.jnilib NativeSerial_darwin.cpp
NativeSerial_darwin.cpp: In member function 'void
NativeSerial::errno_wrap(bool, const char*)':
NativeSerial_darwin.cpp:77: error: 'strerror' was not declared in this scope
NativeSerial_darwin.cpp: In static member function 'static std::string
NativeSerial::getTOSCommMap()':
NativeSerial_darwin.cpp:504: error: 'getenv' was not declared in this scope
make[3]: *** [libtoscomm.jnilib] Error 1
make[2]: *** [install-recursive] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1


I guess, the errors are the 'make' tasks. I see the error with the
NativeSerial_darwin.cpp, but I don't have any idea what it is about..the
'getenv' error, the libtoscomm.jnilib error...did I miss any environment
settings or is it the .jnilib file is missing?

thanks

Yusnaidi



On 25/03/2011 19:00, Urs Hunkeler wrote:

Hi Yusnaidi,

Ok, the original error message that you showed is caused by the part
compiling the Java native libraries. However, in this step you should also
have compiled and installed other TinyOS tools, e.g., ncc. Maybe we can go
over this part of the installation (installing the tinyos-2.x tool set)
again?

Did you change the line in configure.ac (something with "-n")?

Can you give me the full output of the following sequence of commands in the
tools directory?

./Bootstrap
./configure --prefix=/stow/repository/tinyos-2.x-tools
make
sudo make install

This will most likely try to compile the Java native libraries, which seems
to fail on your system. If this is the only problem, maybe we can find a way
to not compile them (as you don't need them). (make backups before this)
Maybe you can delete the folder tinyos/java (in the tools directory) and try
again.

Cheers,
Urs


On 3/25/11 5:41 PM, Yusnaidi Md Yusof wrote:

Hi Urs,

Thanks for the advice. It makes me clearer, esp on this stow stuffs..I
really new to the Mac world!

Right, I checked in the /stow/bin, and this is what I got:
lrwxr-xr-x   1 root  admin    34 24 Mar 20:37 nescc ->
../repository/nesc-1.3.2/bin/nescc

I guess I got the ncc in /stow/bin right? Is nescc means ncc?

Then, I followed the softlink and check in
/stow/repository/nesc-1.3.2/bin/nescc, and this is what I got:
-rwxr-xr-x   1 root  admin  5317 25 Mar 16:16 nescc.

While in the /stow/bin and in the  /stow/repository/nesc-1.3.2/bin/nescc, I
issue command:  '$nescc'   and I got:
gcc: no input files

I guess that confirm I got the nesc compilation success and the nesc
compiler is running in my machine. Is it?

Then, I checked the PATH by issuing 'echo $PATH', and this is what I got:
/opt/local/bin:/opt/local/sbin:/stow/bin:/stow/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/texbin:/usr/X11/bin


..here I guess I can access nescc from any path because the /stow/bin is
included in the PATH. Is it?

What I have done so far, is just changing the .profile file and setting the
PATH. Is there any other files or system wide files I need to change so the
environment variables takes effect?

thank you...

Yusnaidi





On Fri, Mar 25, 2011 at 4:00 PM, Urs Hunkeler <urs.hunke...@epfl.ch
<mailto:urs.hunke...@epfl.ch> <urs.hunke...@epfl.ch>> wrote:

    Hi Yusnaidi,

    Yes, you should have nesc installed. And yes, this probably means
    there is a problem with the installation somewhere.

    On my Mac the ncc binary is in /stow/bin. If it's not there, check
    whether the compiled version is in
    /stow/repository/nesc-1.3.0/bin. If it's not there, then "make
    install" (or the configure script) did not work properly. If it's
    in the /stow/repository subfolder, but not in /stow/bin, then the
    installation with "sudo stow ..." did somehow not work. If it's in
    /stow/bin, then for some reason the PATH variable is not properly
    set (even though your .profile looks ok); check "echo $PATH".

    Cheers,
    Urs



    On 03/25/2011 04:37 PM, Yusnaidi Md Yusof wrote:

        Hi Urs,

        Yes, I did. I have followed the same link to do the
        installation. This
        is what is did:

        1. I have installed the developer tools.
        2. I have installed the Macports/Darwin Ports.
        3. I have installed the Stow.
        4. I have installed the Tinyos-2.x source from the git.
        5. I have installed the nesc as outlined in the 'Installing nesc'
        section of the link...which is I have done all these steps:

           * Download the nesc-1.3.0 tarball

<http://superb-east.dl.sourceforge.net/sourceforge/nescc/nesc-1.3.0.tar.gz><http://superb-east.dl.sourceforge.net/sourceforge/nescc/nesc-1.3.0.tar.gz>


             from sourceforge (or whichever is the newest)
           * Install nesc using the standard configure/make/make
        install procedure
                 o cd nesc-1.3.0
                 o ./configure --prefix=/stow/repository/nesc-1.3.0
                 o make
                 o sudo make install

           * Run stow to install nesc into standard installation
        directories
                 o cd /stow/repository
                 o sudo stow nesc-1.3.0


        Does this means I have installed the nesc compiler?

        6. I have installed the avr tools.
        7. I have installed the msp430 tools as well.
        8. I have installed the FTDI drivers.
        9. Then, here comes the problem while accomplishing the section
        'Installing the Tinyos-2.x toolset', where you help me on the
        tinyos.jar
        stuff...I guess, I have successfully solved the problem in
        this section
        by following your suggestions.

        So, the problem might be in step 5. Do you think after I
        completing all
        the steps in section 5 above, mean that I have installed the nesc
        compiler? If so, how can I check the nesc has been successfully
        installed in the Mac? Because I tried to run ncc in terminal,
        but I got
        error messages says: 'command not found'. I suggest the nesc
        in still
        not installed, right? Please help me...


        Thank you...

        Yusnaidi
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to