Many thanks Vigneswaran. I modified the line and it is installed successfully now :) <br><br>
<div class="gmail_quote">On Tue, Apr 19, 2011 at 11:54 AM, Vigneswaran R <span dir="ltr"><<a href="mailto:vignesh@atc.tcs.com">vignesh@atc.tcs.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="im">On 04/19/2011 02:03 PM, Eng. Sherif Hassan wrote:<br>> Dear All,<br>><br>> I am a newbie to Ubuntu.<br>> I would like to build and make a clean install of latest version of OLSR<br>> (0.6).<br>
> I followed the readme file to install it. I started by installing all<br>> necessary packages (gcc, make, glibc, and makedep).<br>> However when I run the command make, I get the following error message:<br>><br>
> gcc -Wall -Wextra -Wold-style-definition -Wdeclaration-after-statement<br>> -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations<br>> -Wsign-compare -Waggregate-return -Wmissing-noreturn<br>> -Wmissing-format-attribute -Wno-multichar -Wno-deprecated-declarations<br>
> -Wendif-labels -Wwrite-strings -Wbad-function-cast -Wpointer-arith<br>> -Wcast-qual -Wshadow -Wsequence-point -Wpointer-arith -Wcast-align<br>> -Wnested-externs -Winline -Wdisabled-optimization<br>> -finline-functions-called-once -funit-at-a-time -fearly-inlining<br>
> -finline-limit=350 -ggdb -Isrc -pthread -DUSE_FPM -Dlinux<br>> -DLINUX_NETLINK_ROUTING -DDEBUG -c -o src/unix/ifnet.o src/unix/ifnet.c<br>> src/unix/ifnet.c: In function ‘chk_if_up’:<br>> src/unix/ifnet.c:551: error: ‘tos’ undeclared (first use in this function)<br>
> src/unix/ifnet.c:551: error: (Each undeclared identifier is reported<br>> only once<br>> src/unix/ifnet.c:551: error: for each function it appears in.)<br>> make: *** [src/unix/ifnet.o] Error 1<br></div>> <mailto:<a href="mailto:olsr-users@lists.olsr.org">olsr-users@lists.olsr.org</a>><br>
<div class="im">> It seems that variable/identifier 'tos' is being used in function<br>> 'chk_if_up' before being declared before.<br>> I am wondering if there is a typo in the code (a line that needs to be<br>
> uncommented for instance) or do I need to define 'tos' earlier in code.<br>> Does anyone else face the same problem ? did someone succeed in<br>> building/installing on Ubuntu 10.10 ?<br>> Should I go for another operating system ? Debian ?<br>
><br>> I am running Ubuntu 10.10 on mini-ITX.<br><br></div>Please see,<br><br><<a href="http://lists.olsr.org/pipermail/olsr-users/2010-June/004072.html" target="_blank">http://lists.olsr.org/pipermail/olsr-users/2010-June/004072.html</a>><br>
<br>I also faced the same problem. After changing the following line in the<br>file /usr/include/netinet/ip.h (line 197),<br><br>#define IPTOS_CLASS(class) ((tos) & IPTOS_CLASS_MASK)<br><br>into<br><br>#define IPTOS_CLASS(class) ((class) & IPTOS_CLASS_MASK)<br>
<br>it worked.<br><br>Regards,<br>Vignesh<br><font color="#888888"><br>--<br></font>
<div>
<div></div>
<div class="h5">Olsr-users mailing list<br><a href="mailto:Olsr-users@lists.olsr.org">Olsr-users@lists.olsr.org</a><br><a href="http://lists.olsr.org/mailman/listinfo/olsr-users" target="_blank">http://lists.olsr.org/mailman/listinfo/olsr-users</a><br>
</div></div></blockquote></div><br>