[Olsr-dev] MID refactoring
Bernd Petrovitsch
(spam-protected)
Sun Sep 7 22:34:01 CEST 2008
On Son, 2008-09-07 at 18:33 +0200, Bernd Petrovitsch wrote:
> On Fre, 2008-09-05 at 17:27 +0200, Hannes Gredler wrote:
> [....]
> >asking for review & testing,
>
> make build_all yields hereover (Fedora-9)
> ---- snip ----
> /usr/bin/ccache 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 -Wnested-externs -Winline -Wdisabled-optimization -Werror -finline-functions-called-once -funit-at-a-time -fearly-inlining -fomit-frame-pointer -finline-limit=350 -fPIC -Isrc -I../../src -pthread -DOLSR_PLUGIN -DUSE_FPM -Dlinux -DNDEBUG -c -o src/Bmf.o src/Bmf.c
> cc1: warnings being treated as errors
> src/Bmf.c: In function ‘MainAddressOf’:
> src/Bmf.c:135: error: implicit declaration of function ‘mid_lookup_main_addr’
> src/Bmf.c:135: error: nested extern declaration of ‘mid_lookup_main_addr’
> src/Bmf.c:135: error: assignment makes pointer from integer without a cast
> make[1]: *** [src/Bmf.o] Error 1
> make[1]: Leaving directory `/home/bernd/src/olsrd/hg/hg-gredler/lib/bmf'
> make: *** [libs] Error 2
> ---- snip ----
Using olsr_lookup_main_addr_by_alias() instead of mid_lookup_main_addr()
solved the compile problem. But I have no idea if that's an even
remotely useful fix.
Bernd
--
Firmix Software GmbH http://www.firmix.at/
mobil: +43 664 4416156 fax: +43 1 7890849-55
Embedded Linux Development and Services
More information about the Olsr-dev
mailing list