bird-1.0.9 can't be compiled on FreeBSD

Ondrej Filip feela at network.cz
Tue Aug 10 20:16:42 CEST 2004


On Tue, 10 Aug 2004, Artem Bokhan wrote:

> bird-1.0.9 can't be compiled on FreeBSD, with version 1.0.8 everything was 
> fine 

OK, this patch should fix it:

diff -u -r1.42 config.Y
--- proto/ospf/config.Y 16 Jul 2004 08:27:11 -0000      1.42
+++ proto/ospf/config.Y 10 Aug 2004 17:46:57 -0000
@@ -127,7 +127,7 @@
  | POLL expr { OSPF_PATT->pollint = $2 ; if ($2<=0) cf_error("Poll int must be greater than zero"); }
  | RETRANSMIT expr { OSPF_PATT->rxmtint = $2 ; if ($2<=0) cf_error("Retransmit int must be greater than zero"); }
  | TRANSMIT DELAY expr { OSPF_PATT->inftransdelay = $3 ; if (($3<=0) || ($3>65535)) cf_error("Transmit delay must be in range 1-65535"); }
- | PRIORITY expr { OSPF_PATT->priority = $2 ; if (($2<0) || ($2>255)) cf_error("Priority must be in range 0-255")}
+ | PRIORITY expr { OSPF_PATT->priority = $2 ; if (($2<0) || ($2>255)) cf_error("Priority must be in range 0-255"); }
  | WAIT expr { OSPF_PATT->waitint = $2 ; }
  | DEAD COUNT expr { OSPF_PATT->deadc = $3 ; if ($3<=1) cf_error("Dead count must be greater than one"); }
  | TYPE BROADCAST { OSPF_PATT->type = OSPF_IT_BCAST ; }


> 
> 
> 
> gmake[2]: Entering directory `/home/art/bird/bird-1.0.9/obj/conf'
> gcc -I../ -I../..  -g -O2 -Wall -W -Wstrict-prototypes -Wno-parentheses 
> -Wno-unused -o cf-parse.tab.o -c cf-parse.tab.c
> cf-parse.y: In function `cf_parse':
> cf-parse.y:622: warning: assignment from incompatible pointer type
> cf-parse.y:638: warning: assignment from incompatible pointer type
> cf-parse.y:1416: warning: assignment from incompatible pointer type
> cf-parse.y:1443: error: parse error before '}' token
> cf-parse.y:1443: warning: empty body in an if-statement
> cf-parse.y:1455: warning: assignment from incompatible pointer type
> cf-parse.y:1605: warning: assignment from incompatible pointer type
> gmake[2]: *** [cf-parse.tab.o] ďŰÉÂËÁ 1
> gmake[2]: Leaving directory `/home/art/bird/bird-1.0.9/obj/conf'
> gmake[1]: *** [subdir] ďŰÉÂËÁ 2
> gmake[1]: Leaving directory `/home/art/bird/bird-1.0.9/obj'
> gmake: *** [all] ďŰÉÂËÁ 2
> 




More information about the Bird-users mailing list