[Tinyos-help] make fails with error regarding libtoscomm.jnilib

Urs Hunkeler urs.hunkeler at epfl.ch
Fri Nov 5 23:36:49 PDT 2010

Hi Seamus,

I don't know what the error is for your particular problem. A potential 
solution would be to use the tinyos.jar from the SVN repository. It 
contains the native library compiled for Mac OS X 64-bit (actually, the 
Mac OS X binary there is compiled for three platforms: PPC, Intel-32 and 
Intel-64), so you don't need to compile anything.


On 11/5/10 3:11 PM, Seamus Rooney wrote:
> Hi All,
> I am trying to install TinyOS on a new mac book pro with Snow Leopard
> 10.6.4.
> I am following these instructions
> http://research-machine.blogspot.com/2010/01/how-to-install-tinyos-2-on-macosx-106.html
> and I have also tried these
> http://docs.tinyos.net/index.php/Installing_TinyOS-2.x_on_Mac_OS_X_(Snow_Leopard)
> But both seem to fail at this hurdle.
> So when I try to install the tinyow2.x toolset I bootstrap and configure
> it with no warnings but then when I make it I get the following when it
> gets to serial:
> 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:88: error: 'strerror' was not declared in this scope
> NativeSerial_darwin.cpp: In static member function 'static std::string
> NativeSerial::getTOSCommMap()':
> NativeSerial_darwin.cpp:515: 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
> Does anyone know the solution to this please? I am starting to think one
> of these has been compiled for 32-bit while snow leopard is 64 bit but
> im not sure when to try next.
> Any ideas or help would be great,
> Regards,
> Seamus

More information about the Tinyos-help mailing list