[OLSR-users] Support for OpenBSD?

Andreas Tønnesen (spam-protected)
Sun May 15 15:00:42 CEST 2005


Holger,

Attatched is a patch that will fix the types problem. I have
committed it to cvs, but it takes som time before the changes
becomes available.

- Andreas

Holger Mauermann wrote:

>Andreas Tønnesen wrote:
>  
>
>>Yes, we definetly intend to support OpenBSD. It's just that none of
>>us has had access to any OpenBSD boxes lately
>>    
>>
>
>Is there any progress on getting olsr to run on OpenBSD? I tried to
>compile it with OS=nbsd and OS=fbsd, but after I figured out that I
>first have to install gmake and X (makedepend is only included in xbase,
>haven't found any other source yet...) I get lots of errors:
>
>makedepend: warning:  src/bsd/net.c, line 52: cannot find include file
>"net/if_var.h"
>        not in src/net/if_var.h
>        not in
>/usr/lib/gcc-lib/i386-unknown-openbsd3.7/3.3.5/include/net/if_var.h
>        not in /usr/include/net/if_var.h
>makedepend: warning:  src/bsd/net.c, line 53: cannot find include file
>"net/ethernet.h"
>        not in src/net/ethernet.h
>        not in
>/usr/lib/gcc-lib/i386-unknown-openbsd3.7/3.3.5/include/net/ethernet.h
>        not in /usr/include/net/ethernet.h
>makedepend: warning:  src/bsd/net.c, line 339: #warning implement
>IPV6_ADD_MEMBERSHIP
>gmake -C src/cfgparser
>gmake[1]: Entering directory `/home/holger/olsrd-current/src/cfgparser'
>makedepend -f .depend  -D__NetBSD__ -I.. olsrd_conf.c  oparse.c  oscan.c
>cfgfile_gen.c
>makedepend: warning:  oscan.c:  non-portable whitespace encountered at
>line 48
>makedepend: warning:  oscan.c:  non-portable whitespace encountered at
>line 49
>gmake[1]: Leaving directory `/home/holger/olsrd-current/src/cfgparser'
>gmake[1]: Entering directory `/home/holger/olsrd-current/src/cfgparser'
>cc -Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations
>-Wsign-compare -O2 -g -Isrc  -I.. -fPIC   -c -o olsrd_conf.o olsrd_conf.c
>In file included from ../olsr_protocol.h:50,
>                 from olsrd_conf.h:46,
>                 from olsrd_conf.c:52:
>../olsr_types.h:87:9: #error "Unsupported system"
>In file included from ../olsr_protocol.h:50,
>                 from olsrd_conf.h:46,
>                 from olsrd_conf.c:52:
>../olsr_types.h:95: error: syntax error before "olsr_u32_t"
>../olsr_types.h:101: error: syntax error before "olsr_u32_t"
>In file included from olsrd_conf.h:46,
>                 from olsrd_conf.c:52:
>../olsr_protocol.h:209: error: syntax error before "olsr_u8_t"
>../olsr_protocol.h:217: error: syntax error before "olsr_u16_t"
>../olsr_protocol.h:229: error: syntax error before "olsr_u8_t"
>../olsr_protocol.h:237: error: syntax error before "olsr_u16_t"
>../olsr_protocol.h:249: error: syntax error before "olsr_u32_t"
>../olsr_protocol.h:255: error: syntax error before "olsr_u16_t"
>../olsr_protocol.h:274: error: syntax error before "olsr_u16_t"
>../olsr_protocol.h:294: error: syntax error before "olsr_u32_t"
>../olsr_protocol.h:328: error: syntax error before "olsr_u32_t"
>../olsr_protocol.h:362: error: syntax error before "olsr_u8_t"
>../olsr_protocol.h:386: error: syntax error before "olsr_u8_t"
>../olsr_protocol.h:390: error: syntax error before "olsr_u8_t"
>../olsr_protocol.h:412: error: syntax error before "olsr_u16_t"
>../olsr_protocol.h:420: error: syntax error before "olsr_u16_t"
>In file included from ../olsr_cfg.h:87,
>                 from olsrd_conf.h:47,
>                 from olsrd_conf.c:52:
>../interfaces.h:96: error: syntax error before "olsr_u32_t"
>../interfaces.h:103: error: syntax error before "olsr_u8_t"
>../interfaces.h:132: error: syntax error before "olsr_u16_t"
>../interfaces.h:164: error: syntax error before "get_if_property_id"
>../interfaces.h:164: warning: type defaults to `int' in declaration of
>`get_if_property_id'
>../interfaces.h:164: warning: data definition has no type or storage class
>../interfaces.h:167: error: syntax error before "olsr_u32_t"
>../interfaces.h:167: warning: function declaration isn't a prototype
>../interfaces.h:170: error: syntax error before "olsr_u32_t"
>../interfaces.h:170: warning: function declaration isn't a prototype
>../interfaces.h:173: error: syntax error before "olsr_u32_t"
>../interfaces.h:173: warning: function declaration isn't a prototype
>In file included from olsrd_conf.h:47,
>                 from olsrd_conf.c:52:
>../olsr_cfg.h:145: error: syntax error before "olsr_u16_t"
>../olsr_cfg.h:193: error: syntax error before "olsr_u16_t"
>../olsr_cfg.h:195: error: syntax error before "olsr_u8_t"
>../olsr_cfg.h:201: error: syntax error before "olsr_u8_t"
>../olsr_cfg.h:204: error: syntax error before "olsr_u8_t"
>../olsr_cfg.h:212: error: syntax error before "olsr_u16_t"
>../olsr_cfg.h:239: error: syntax error before "olsr_u32_t"
>../olsr_cfg.h:239: warning: function declaration isn't a prototype
>In file included from olsrd_conf.c:52:
>olsrd_conf.h:58: error: syntax error before "olsr_u32_t"
>olsrd_conf.c: In function `olsrd_parse_cnf':
>olsrd_conf.c:197: error: structure has no member named `ifcnt'
>olsrd_conf.c: In function `olsrd_sanity_check_cnf':
>olsrd_conf.c:232: error: structure has no member named `tos'
>olsrd_conf.c:234: error: structure has no member named `tos'
>olsrd_conf.c:239: error: structure has no member named `willingness'
>olsrd_conf.c:241: error: structure has no member named `willingness'
>olsrd_conf.c:288: error: structure has no member named `tc_redundancy'
>olsrd_conf.c:290: error: structure has no member named `tc_redundancy'
>olsrd_conf.c:295: error: structure has no member named `mpr_coverage'
>olsrd_conf.c:296: error: structure has no member named `mpr_coverage'
>olsrd_conf.c:298: error: structure has no member named `mpr_coverage'
>olsrd_conf.c:303: error: structure has no member named `lq_level'
>olsrd_conf.c:311: error: structure has no member named `lq_level'
>olsrd_conf.c:313: error: structure has no member named `lq_level'
>olsrd_conf.c:318: error: structure has no member named `lq_level'
>olsrd_conf.c:318: error: structure has no member named `lq_wsize'
>olsrd_conf.c:318: error: structure has no member named `lq_wsize'
>olsrd_conf.c:320: error: structure has no member named `lq_wsize'
>olsrd_conf.c: In function `set_default_cnf':
>olsrd_conf.c:465: error: structure has no member named `tos'
>olsrd_conf.c:477: error: structure has no member named `tc_redundancy'
>olsrd_conf.c:478: error: structure has no member named `mpr_coverage'
>olsrd_conf.c:479: error: structure has no member named `lq_level'
>olsrd_conf.c:480: error: structure has no member named `lq_wsize'
>olsrd_conf.c: In function `olsrd_print_cnf':
>olsrd_conf.c:555: error: structure has no member named `tos'
>olsrd_conf.c:559: error: structure has no member named `willingness'
>olsrd_conf.c:565: error: union has no member named `v4'
>olsrd_conf.c:572: error: union has no member named `v4'
>olsrd_conf.c:574: error: union has no member named `v4'
>olsrd_conf.c:582: error: structure has no member named `tc_redundancy'
>olsrd_conf.c:584: error: structure has no member named `mpr_coverage'
>olsrd_conf.c:586: error: structure has no member named `lq_level'
>olsrd_conf.c:588: error: structure has no member named `lq_wsize'
>olsrd_conf.c:600: error: union has no member named `v4'
>olsrd_conf.c:602: error: union has no member named `v4'
>olsrd_conf.c:668: error: union has no member named `v4'
>olsrd_conf.c:670: error: union has no member named `v4'
>olsrd_conf.c:683: error: structure has no member named `prefix_len'
>gmake[1]: *** [olsrd_conf.o] Error 1
>gmake[1]: Leaving directory `/home/holger/olsrd-current/src/cfgparser'
>gmake: *** [cfgparser] Error 2
>
>
>
>  
>


-- 
Andreas Tønnesen
http://www.olsr.org

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: openbsd_types_patch.diff
URL: <http://lists.olsr.org/pipermail/olsr-users/attachments/20050515/407bef71/attachment.ksh>


More information about the Olsr-users mailing list