[Olsr-users] ifnet.c chk_if_up() tos undeclared
Michael Rack
(spam-protected)
Mon Jun 21 18:55:20 CEST 2010
Also the current GIT-Repository results in this error message!
# git clone git://olsr.org/olsrd.git
# make
In the current GIT-Version "uint16_t tos" is defined on line 182 at
olsr_cfg.h. Im not familiar with C, but unix/ifnet.c includes ifnet.h
and ifnet.h includes olsr_cfg.h where struct olsr_config is defined with
TOS as unsigned int16. But the gcc compiler returns an error.
After removing the "#ifdef linux" part, the source compile just fine.
That line covers the error-message: "int data =
IPTOS_PREC(olsr_cnf->tos);" in file unix/ifnet.c
Liebe Grüße aus Freilassing,
Michael Rack
RSM Freilassing
--
RSM Freilassing Tel.: +49 8654 607110
Nocksteinstr. 13 Fax.: +49 8654 670438
D-83395 Freilassing www.rsm-freilassing.de
Am 20.06.2010 22:30, schrieb Henning Rogge:
> Am Sonntag 20 Juni 2010, 22:08:17 schrieb Michael Rack:
>> Dear developers,
>>
>> i have a probleme while do
>>
>> # make
>> 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 once
>> src/unix/ifnet.c:551: error: for each function it appears in.)
>> make: *** [src/unix/ifnet.o] Error 1
> olsr_cnf->tos is defined in olsr_cfg.h, line 226.
>
> please try to reproduce the error with a fresh download from the repository.
>
> Henning Rogge
>
More information about the Olsr-users
mailing list