Problems with compiling bird 2.7 on Debian Squeeze

Maria Matějka maria.matejka at nic.cz
Tue Nov 19 12:26:04 CET 2019


Hello!

It may be GCC; I have just compiled BIRD on GCC 4.7.2 on Debian Wheezy.

If you have an older GCC, it may happen that it doesn't support flattened
struct initializers (which produces this kind of compile errors).

I remember seeing some similar compile error on older GCC's some time ago
but we disregarded these as unimportant. If anybody feels that this shall
be checked in the configure script, please send us a patch.

Maria

On 11/18/19 9:49 PM, Alex D. wrote:
> Hi,
> 
> i tried to compile bird 2.7 on an quite ancient Debian Squeeze.
> Unfortunately, 'make' throws an error  (see below). Yes, I know that i
> should update the system quite soon...
> But does anybody know which packages i have to update to compile
> successfully ?
> 
> alex at rs:/src/bird-2.0.7# make
> fatal: Not a git repository (or any of the parent directories): .git
> MKDIR -p obj/client obj/conf obj/doc obj/filter obj/lib obj/nest
> obj/test obj/proto/bfd obj/proto/babel obj/proto/bgp obj/proto/mrt
> obj/proto/ospf obj/proto/perf obj/proto/pipe obj/proto/radv
> obj/proto/rip obj/proto/static obj/sysdep/linux obj/sysdep/unix obj/doc
> m4  -P conf/gen_parser.m4 conf/confbase.Y conf/flowspec.Y client/cmds.Y
> filter/config.Y nest/config.Y proto/bfd/config.Y proto/babel/config.Y
> proto/bgp/config.Y proto/mrt/config.Y proto/ospf/config.Y
> proto/perf/config.Y proto/pipe/config.Y proto/radv/config.Y
> proto/rip/config.Y proto/static/config.Y sysdep/linux/netlink.Y
> sysdep/unix/config.Y sysdep/unix/krt.Y >obj/conf/cf-parse.y
> bison   -dv -pcf_ -b obj/conf/cf-parse obj/conf/cf-parse.y
> obj/conf/cf-parse.y: conflicts: 2 shift/reduce
> m4  -P conf/gen_keywords.m4 conf/confbase.Y conf/flowspec.Y
> client/cmds.Y filter/config.Y nest/config.Y proto/bfd/config.Y
> proto/babel/config.Y proto/bgp/config.Y proto/mrt/config.Y
> proto/ospf/config.Y proto/perf/config.Y proto/pipe/config.Y
> proto/radv/config.Y proto/rip/config.Y proto/static/config.Y
> sysdep/linux/netlink.Y sysdep/unix/config.Y sysdep/unix/krt.Y
>  >obj/conf/keywords.h
> m4  -P conf/gen_commands.m4 conf/confbase.Y conf/flowspec.Y
> client/cmds.Y filter/config.Y nest/config.Y proto/bfd/config.Y
> proto/babel/config.Y proto/bgp/config.Y proto/mrt/config.Y
> proto/ospf/config.Y proto/perf/config.Y proto/pipe/config.Y
> proto/radv/config.Y proto/rip/config.Y proto/static/config.Y
> sysdep/linux/netlink.Y sysdep/unix/config.Y sysdep/unix/krt.Y
>  >obj/conf/commands.h
> m4  -DTARGET=I -P filter/decl.m4 filter/f-inst.c obj/.dir-stamp
>  >obj/filter/inst-interpret.c
> m4  -DTARGET=H -P filter/decl.m4 filter/f-inst.c obj/.dir-stamp
>  >obj/filter/inst-gen.h
> echo >obj/sysdep/paths.h "/* Generated by Makefile, don't edit manually! */"
> echo >>obj/sysdep/paths.h "#define PATH_CONFIG_FILE
> \"/opt/bird-2.0.7/etc/bird.conf\""
> echo >>obj/sysdep/paths.h "#define PATH_CONTROL_SOCKET
> \"/opt/bird-2.0.7/var/run/bird.ctl\""
> if test -n "/etc/iproute2" ; then echo >>obj/sysdep/paths.h "#define
> PATH_IPROUTE_DIR \"/etc/iproute2\"" ; fi
> CC -o obj/conf/cf-parse.tab.o -c obj/conf/cf-parse.tab.c
> obj/conf/cf-parse.y: In function 'cf_parse':
> obj/conf/cf-parse.y:1926: error: unknown field 'asn' specified in
> initializer
> obj/conf/cf-parse.y:1926: warning: missing braces around initializer
> obj/conf/cf-parse.y:1926: warning: (near initialization for
> '(anonymous).val.pmi.<anonymous>')
> obj/conf/cf-parse.y:1927: error: unknown field 'from' specified in
> initializer
> obj/conf/cf-parse.y:1927: warning: missing braces around initializer
> obj/conf/cf-parse.y:1927: warning: (near initialization for
> '(anonymous).val.pmi.<anonymous>')
> obj/conf/cf-parse.y:1927: error: unknown field 'to' specified in initializer
> obj/conf/cf-parse.y:1927: warning: initialized field overwritten
> obj/conf/cf-parse.y:1927: warning: (near initialization for
> '(anonymous).val.pmi.kind')
> obj/conf/cf-parse.y:1930: error: unknown field 'set' specified in
> initializer
> obj/conf/cf-parse.y:1930: warning: missing braces around initializer
> obj/conf/cf-parse.y:1930: warning: (near initialization for
> '(anonymous).val.pmi.<anonymous>')
> obj/conf/cf-parse.y:1930: warning: initialization makes integer from
> pointer without a cast
> obj/conf/cf-parse.y:2184: error: unknown field 'sym' specified in
> initializer
> obj/conf/cf-parse.y:2184: warning: missing braces around initializer
> obj/conf/cf-parse.y:2184: warning: (near initialization for
> '(anonymous).<anonymous>')
> obj/conf/cf-parse.y:2186: error: unknown field 'sa' specified in initializer
> obj/conf/cf-parse.y:2186: warning: missing braces around initializer
> obj/conf/cf-parse.y:2186: warning: (near initialization for
> '(anonymous).<anonymous>')
> obj/conf/cf-parse.y:2186: error: incompatible types when initializing
> type 'struct symbol *' using type 'struct f_static_attr'
> obj/conf/cf-parse.y:2187: error: unknown field 'da' specified in initializer
> obj/conf/cf-parse.y:2187: warning: missing braces around initializer
> obj/conf/cf-parse.y:2187: warning: (near initialization for
> '(anonymous).<anonymous>')
> obj/conf/cf-parse.y:2187: error: incompatible types when initializing
> type 'struct symbol *' using type 'struct f_dynamic_attr'
> make: *** [obj/conf/cf-parse.tab.o] Error 1
> 
> Thanks in advance.
> Regards,
> Alex
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3028 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20191119/3bb365ca/attachment.p7s>


More information about the Bird-users mailing list