Patch files are applied thusly: patch -p0 < tinyos.patch
You need to be in the top level directory and it assumes the patch was made there. Otherwise you might need to alter the -p option. I seem to recall that patch was a -p1 but I don't recall. But you might be able to use a newer version of nesc which doesn't need the patch. The latest and greatest works for me for my TinyOS 1.x work. But I can't comment on 1.1.10. Chad On 9/26/06, Jason Hemann <[EMAIL PROTECTED]> wrote:
Dear TinyOSers, I am trying to compile TinyOS 1.1.0 on Fedora Core 4, and ran into a problem that many others have had relating to offsetof(). When I try to compile, I get 4 error messages of the sort /opt/tinyos-1.x/tos/types/AM.h:157: parse error before `struct' As I understand the problem, the offsetof() macro has been changed since Linux kernel 2.6.9. Instead of using a generic method, it is now replaced by a compiler specific function __builtin_offsetof() which is not recognitized by nesc. I have found the patch located in the message http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2005-September/012275.html But do not know how or where to install the patch. If someone could give further instructions for installing this patch, replacing my old version of gcc, or any other way to solve this problem, I would be ever so appreciative. Thank you, Jason Hemann Jason Hemann One Trinity Place # 663 San Antonio, Texas 78212 713 702 7524 ________________________________ How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call rates. _______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
-- Chad @ Home _______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
