[olsr-dev] Fw: olsrd-current unter FreeBSD 6.2 RELEASE
John Hay
(spam-protected)
Wed Feb 14 08:54:47 CET 2007
On Wed, Feb 14, 2007 at 07:53:29AM +0100, Sven-Ola Tuecke wrote:
> Hi,
>
> forwarding the following BSD compile error note. I'am sure, goetz has
> checked out from current CVS.
...
> >
> >cc -Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations
> >-Wsign-compare -O2 -g -DOLSRD_GLOBAL_CONF_FILE=\"/etc/olsrd.conf\" -MD
> > -Isrc -I./src -c -o src/bsd/kernel_routes.o src/bsd/kernel_routes.c
> >src/bsd/kernel_routes.c: In function `add_del_route6':
> >src/bsd/kernel_routes.c:257: error: `rts' undeclared (first use in this
> >function)
> >src/bsd/kernel_routes.c:257: error: (Each undeclared identifier is
> >reported only once
> >src/bsd/kernel_routes.c:257: error: for each function it appears in.)
> >gmake: *** [src/bsd/kernel_routes.o] Error 1
I did send a patch for that to olsr-users in December, but I guess it
got lost somewhere. rts has moved into olsr_cnf, so it is a one line
fix. Attached at the end.
John
--
John Hay -- (spam-protected) / (spam-protected)
--- /home/jhay/fbsd/olsr/olsrd-current/src/bsd/kernel_routes.c Tue Dec 12 13:20:53 2006
+++ src/bsd/kernel_routes.c Thu Dec 14 08:09:10 2006
@@ -253,7 +253,7 @@
rtm->rtm_msglen = (unsigned short)(walker - buff);
- len = write(rts, buff, rtm->rtm_msglen);
+ len = write(olsr_cnf->rts, buff, rtm->rtm_msglen);
if (len < rtm->rtm_msglen)
fprintf(stderr, "cannot write to routing socket: %s\n", strerror(errno));
More information about the Olsr-dev
mailing list