[Olsr-dev] olsrd on debian/kfreebsdG

Patrick McCarty (spam-protected)
Tue Nov 27 18:39:20 CET 2007


Bernd and others,

I did a quick compile check under OpenBSD 4.2.

Didn't compile. Below are two small patches that get it a bit further
in compilation. The next error I didn't attempt to tackle is:

src/bsd/net.c: In function `calculate_if_metric':
src/bsd/net.c:880: error: `WEIGHT_ETHERNET_DEFAULT' undeclared (first
use in this function)
src/bsd/net.c:880: error: (Each undeclared identifier is reported only once
src/bsd/net.c:880: error: for each function it appears in.)
gmake: *** [src/bsd/net.o] Error 1

Because that whole struct is #ifdef 0'd out in interfaces.h (Tried
bringing it back in, but then the tags were wrong)

--- olsrd-current/src/bsd/kernel_routes.c       Tue Nov 27 05:39:22 2007
+++ olsrd-current.pwm/src/bsd/kernel_routes.c   Tue Nov 27 01:32:10 2007
@@ -111,7 +111,7 @@
   nexthop = olsr_get_nh(rt);
   if ((flags & RTF_GATEWAY) != 0)
   {
-    sin.sin_addr.s_addr = nexthop->gateway.v4;
+    sin.sin_addr.s_addr = nexthop->gateway.v4.s_addr;

     memcpy(walker, &sin, sizeof (sin));
     walker += step;

Need the following header file for the NGROUPS define.

--- olsrd-current/src/bsd/net.h Fri Apr 20 06:46:05 2007
+++ olsrd-current.pwm/src/bsd/net.h     Tue Nov 27 01:32:30 2007
@@ -43,6 +43,7 @@
 #ifndef _OLSR_NET_LINUX
 #define _OLSR_NET_LINUX

+#include <sys/param.h>
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <stdio.h>


Cheers,

-- patrick

On Nov 27, 2007 5:44 AM, Bernd Petrovitsch <(spam-protected)> wrote:
> On Fre, 2007-11-23 at 14:04 +0100, Holger Levsen wrote:
> [...]
>
> > On Tuesday 20 November 2007 10:47, Bernd Petrovitsch wrote:
> > > Hmm, machine/ansi.h is included by the stddef.h file which was included
> > > by stdio.h.
> > > Since I assume that there are some programs (e.g. the typical "hello
> > > world" program) using stdio.h it's IHO a Debian bug/problem.
> >
> > Hm. I'm currently offline, otherwise I'd look into this now...
> >
> > > We probably miss something simple and basic.
> > > Just some magic include director
> >
> > OTOH, I've read that the olsrd freebsd port is currently also broken, so I
> > rather wait for this to be fixed before bothering with debian/kfreebsd :-)
> >
> > Or is it fixed in CVS now?
>
> BTW I just fixed a few trivial things in src/bsd/*.c but didn't compile.
> Does anyone has simple Vmware installation docs somewhere?
>
> So if anyone has compile problems on *BSD and/or MacOSX, I need at least
> the compiler errors/warnings. Or you just fix it yourself;-)
>
>         Bernd
> --
> Firmix Software GmbH                   http://www.firmix.at/
> mobil: +43 664 4416156                 fax: +43 1 7890849-55
>           Embedded Linux Development and Services
>
>
>
> --
> Olsr-dev mailing list
> (spam-protected)
> http://lists.olsr.org/mailman/listinfo/olsr-dev
>




More information about the Olsr-dev mailing list