[Olsr-users] OLSR 0.6 Make Error
Eng. Sherif Hassan
Tue Apr 19 10:33:01 CEST 2011
I am a newbie to Ubuntu.
I would like to build and make a clean install of latest version of OLSR
I followed the readme file to install it. I started by installing all
necessary packages (gcc, make, glibc, and makedep).
However when I run the command make, I get the following error message:
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
src/unix/ifnet.c: In function ‘chk_if_up’:
src/unix/ifnet.c:551: error: ‘tos’ undeclared (first use in this function)
src/unix/ifnet.c:551: error: (Each undeclared identifier is reported only
src/unix/ifnet.c:551: error: for each function it appears in.)
make: *** [src/unix/ifnet.o] Error 1
It seems that variable/identifier 'tos' is being used in function
'chk_if_up' before being declared before.
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.
Does anyone else face the same problem ? did someone succeed in
building/installing on Ubuntu 10.10 ?
Should I go for another operating system ? Debian ?
I am running Ubuntu 10.10 on mini-ITX.
Sherif AbdelWahed, *M.Sc.*
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Olsr-users