<div dir="ltr">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 (0.6).<br>I followed the readme file to install it. I started by installing all necessary packages (gcc, make, glibc, and makedep). <br>
However when I run the command make, I get the following error message:<br><br><a href="mailto:olsr-users@lists.olsr.org">gcc -Wall -Wextra -Wold-style-definition -Wdeclaration-after-statement -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wsign-compare -Waggregate-return -Wmissing-noreturn -Wmissing-format-attribute -Wno-multichar -Wno-deprecated-declarations -Wendif-labels -Wwrite-strings -Wbad-function-cast -Wpointer-arith -Wcast-qual -Wshadow -Wsequence-point -Wpointer-arith -Wcast-align -Wnested-externs -Winline -Wdisabled-optimization -finline-functions-called-once -funit-at-a-time -fearly-inlining -finline-limit=350   -ggdb -Isrc -pthread  -DUSE_FPM -Dlinux -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 only once<br>src/unix/ifnet.c:551: error: for each function it appears in.)<br>
make: *** [src/unix/ifnet.o] Error 1<br></a><br>It seems that variable/identifier 'tos' is being used in function '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 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 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>Best Regards,<br>
<br>Sherif AbdelWahed, <i>M.Sc.</i><br></div>