FRRouting / frr

The FRRouting Protocol Suite
https://frrouting.org/
Other
3.35k stars 1.25k forks source link

frr 4.0: make: vtysh: warning _FORTIFY_SOURCE requires compiling with optimization (-O) #1879

Closed k0ste closed 6 years ago

k0ste commented 6 years ago
make[2]: Entering directory '/home/k0ste/sandbox/AUR/frr/src/frr-frr-4.0/vtysh'
  CC       vtysh_main.o
  CC       vtysh.o
  CC       vtysh_user.o
  CC       vtysh_config.o
./extract.pl ../pimd/pim_cmd.c ../bgpd/bgp_bfd.c ../bgpd/bgp_debug.c ../bgpd/bgp_dump.c ../bgpd/bgp_evpn_vty.c ../bgpd/bgp_filter.c ../bgpd/bgp_mplsvpn.c ../bgpd/bgp_nexthop.c ../bgpd/bgp_route.c ../bgpd/bgp_routemap.c ../bgpd/bgp_vty.c ../bgpd/bgp_rpki.c ../isisd/isis_redist.c ../isisd/isis_spf.c ../isisd/isis_te.c ../isisd/isis_vty.c ../isisd/isisd.c ../ospfd/ospf_bfd.c ../ospfd/ospf_dump.c ../ospfd/ospf_opaque.c ../ospfd/ospf_ri.c ../ospfd/ospf_routemap.c ../ospfd/ospf_te.c ../ospfd/ospf_sr.c ../ospfd/ospf_vty.c ../ospf6d/ospf6_abr.c ../ospf6d/ospf6_asbr.c ../ospf6d/ospf6_area.c ../ospf6d/ospf6_bfd.c ../ospf6d/ospf6_flood.c ../ospf6d/ospf6_interface.c ../ospf6d/ospf6_intra.c ../ospf6d/ospf6_lsa.c ../ospf6d/ospf6_message.c ../ospf6d/ospf6_neighbor.c ../ospf6d/ospf6_route.c ../ospf6d/ospf6_spf.c ../ospf6d/ospf6_top.c ../ospf6d/ospf6_zebra.c ../ospf6d/ospf6d.c ../ripd/rip_debug.c ../ripd/rip_interface.c ../ripd/rip_offset.c ../ripd/rip_zebra.c ../ripd/ripd.c ../ripngd/ripng_debug.c ../ripngd/ripng_interface.c ../ripngd/ripng_offset.c ../ripngd/ripng_zebra.c ../ripngd/ripngd.c ../ldpd/ldp_vty_cmds.c ../nhrpd/nhrp_vty.c ../eigrpd/eigrp_dump.c ../eigrpd/eigrp_vty.c ../babeld/babel_interface.c ../babeld/babel_zebra.c ../babeld/babeld.c  ../lib/agentx.c ../lib/keychain.c ../lib/routemap.c ../lib/filter.c ../lib/plist.c ../lib/distribute.c ../lib/if_rmap.c ../lib/vrf.c ../lib/vty.c ../zebra/debug.c ../lib/ns.c ../zebra/interface.c ../zebra/irdp_interface.c ../zebra/rtadv.c ../zebra/zebra_vty.c ../zebra/zserv.c ../zebra/router-id.c ../zebra/zebra_routemap.c ../zebra/zebra_fpm.c ../zebra/zebra_ptm.c ../zebra/zebra_mpls_vty.c ../zebra/zebra_pw.c ../watchfrr/watchfrr_vty.c ../bgpd/rfapi/*.c ../bgpd/rfp-example/librfp/*.c > vtysh_cmd.c
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../pimd/pim_cmd.c:20:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../bgpd/bgp_bfd.c:23:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../bgpd/bgp_debug.c:21:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../bgpd/bgp_dump.c:21:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../bgpd/bgp_evpn_vty.c:21:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../bgpd/bgp_filter.c:21:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../bgpd/bgp_mplsvpn.c:21:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../bgpd/bgp_nexthop.c:21:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../bgpd/bgp_route.c:22:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../bgpd/bgp_routemap.c:21:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../bgpd/bgp_vty.c:21:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../bgpd/bgp_rpki.c:25:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../isisd/isis_redist.c:21:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../isisd/isis_spf.c:25:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../isisd/isis_te.c:26:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../isisd/isis_vty.c:24:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../isisd/isisd.c:23:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../ospfd/ospf_bfd.c:23:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../ospfd/ospf_dump.c:22:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../ospfd/ospf_opaque.c:23:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../ospfd/ospf_ri.c:26:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../ospfd/ospf_routemap.c:24:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../ospfd/ospf_te.c:29:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33:0,
                 from /usr/include/math.h:27,
                 from ../ospfd/ospf_sr.c:27:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../ospfd/ospf_vty.c:22:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../ospf6d/ospf6_abr.c:22:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../ospf6d/ospf6_asbr.c:21:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../ospf6d/ospf6_area.c:21:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../ospf6d/ospf6_bfd.c:23:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../ospf6d/ospf6_flood.c:21:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../ospf6d/ospf6_interface.c:21:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../ospf6d/ospf6_intra.c:21:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../ospf6d/ospf6_lsa.c:21:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../ospf6d/ospf6_message.c:21:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../ospf6d/ospf6_neighbor.c:21:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../ospf6d/ospf6_route.c:21:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../ospf6d/ospf6_spf.c:23:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../ospf6d/ospf6_top.c:21:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../ospf6d/ospf6_zebra.c:21:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../ospf6d/ospf6d.c:21:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../ripd/rip_debug.c:21:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../ripd/rip_interface.c:21:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../ripd/rip_offset.c:21:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../ripd/rip_zebra.c:21:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../ripd/ripd.c:22:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../ripngd/ripng_debug.c:22:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../ripngd/ripng_interface.c:22:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../ripngd/ripng_offset.c:25:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../ripngd/ripng_zebra.c:22:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../ripngd/ripngd.c:21:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../ldpd/ldp_vty_cmds.c:20:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../nhrpd/nhrp_vty.c:10:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../eigrpd/eigrp_dump.c:28:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../eigrpd/eigrp_vty.c:32:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../babeld/babel_interface.c:23:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../babeld/babel_zebra.c:24:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../babeld/babeld.c:23:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../lib/agentx.c:21:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../lib/keychain.c:21:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../lib/routemap.c:21:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../lib/filter.c:21:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../lib/plist.c:21:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../lib/distribute.c:21:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../lib/if_rmap.c:21:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../lib/vrf.c:22:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../lib/vty.c:22:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../zebra/debug.c:22:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../lib/ns.c:22:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../zebra/interface.c:22:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../zebra/irdp_interface.c:36:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../zebra/rtadv.c:23:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../zebra/zebra_vty.c:21:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../zebra/zserv.c:21:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../zebra/router-id.c:23:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../zebra/zebra_routemap.c:21:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../zebra/zebra_fpm.c:24:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../zebra/zebra_ptm.c:21:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../zebra/zebra_mpls_vty.c:21:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../zebra/zebra_pw.c:20:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../watchfrr/watchfrr_vty.c:21:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../bgpd/rfapi/bgp_rfapi_cfg.c:20:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/errno.h:25:0,
                 from ../bgpd/rfapi/rfapi_ap.c:21:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/errno.h:25:0,
                 from ../bgpd/rfapi/rfapi.c:22:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/errno.h:25:0,
                 from ../bgpd/rfapi/rfapi_descriptor_rfp_utils.c:22:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../bgpd/rfapi/rfapi_encap_tlv.c:19:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/errno.h:25:0,
                 from ../bgpd/rfapi/rfapi_import.c:26:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/errno.h:25:0,
                 from ../bgpd/rfapi/rfapi_monitor.c:27:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../bgpd/rfapi/rfapi_nve_addr.c:22:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/errno.h:25:0,
                 from ../bgpd/rfapi/rfapi_rib.c:26:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/errno.h:25:0,
                 from ../bgpd/rfapi/rfapi_vty.c:22:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../bgpd/rfapi/vnc_debug.c:20:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../bgpd/rfapi/vnc_export_bgp.c:26:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../bgpd/rfapi/vnc_export_table.c:22:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../bgpd/rfapi/vnc_import_bgp.c:26:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../bgpd/rfapi/vnc_zebra.c:26:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /usr/include/unistd.h:25:0,
                 from ../lib/zebra.h:35,
                 from ../bgpd/rfp-example/librfp/rfp_internal.h:24,
                 from ../bgpd/rfp-example/librfp/rfp_example.c:22:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
  CC       vtysh_cmd.o
  CCLD     vtysh
make[2]: Leaving directory '/home/k0ste/sandbox/AUR/frr/src/frr-frr-4.0/vtysh'
qlyoung commented 6 years ago

@k0ste this could show up under a variety of circumstances, some of them being our problem, others not. What were your compiler flags for this?

k0ste commented 6 years ago
  ./configure \
    --prefix="/usr" \
    --sbindir="/usr/bin" \
    --sysconfdir="/etc/${pkgname}" \
    --localstatedir="/run/${pkgname}" \
    --enable-exampledir="/etc/${pkgname}" \
    --enable-ldpd \
    --disable-watchfrr \
    --enable-snmp="agentx" \
    --enable-multipath=256 \
    --enable-user="${pkgname}" \
    --enable-group="${pkgname}" \
    --enable-vty-group="${pkgname}vty" \
    --enable-configfile-mask="0640" \
    --enable-logfile-mask="0640" \
    --enable-shell-access \
    --enable-realms \
    --enable-pcreposix \
    --enable-systemd \
    --enable-poll="yes" \
    --enable-shared \
    --enable-irdp \
    --enable-rpki
qlyoung commented 6 years ago

@k0ste Those are configure flags, not compiler flags. Helpful, but since compilers (which one btw? gcc? clang?) don't build with -D_FORTIFY_SOURCE by default, I would like to know what specific options you passed to your compiler, and what version your compiler is.

I don't see this show up with the following flags to gcc:

-g -O0 -D_FORTIFY_SOURCE=2

which should cause the issue as I understand it. My version:

vagrant@frrdev ~/frr> gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
k0ste commented 6 years ago

Those are configure flags, not compiler flags.

I'm just mean I was don't change anything, only standard build from stable release.

[k0ste@WorkStation ~]$ gcc --version
gcc (GCC) 7.3.1 20180312
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

And kernel:

[k0ste@WorkStation ~]$ cat /proc/config.gz | gunzip -c | grep -i fort
CONFIG_ARCH_HAS_FORTIFY_SOURCE=y
CONFIG_FORTIFY_SOURCE=y
qlyoung commented 6 years ago

@k0ste okay, thanks for the info. I'll take a look.

qlyoung commented 6 years ago

@k0ste -- I tried building on my Ubuntu 16.04 vm with -D_FORTIFY_SOURCE under GCC 5.4.0 and am unable to reproduce this.

compiler                : gcc -std=gnu11
compiler flags          : -g -D_FORTIFY_SOURCE=2 -fno-omit-frame-pointer -funwind-tables -Wall -Wextra -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -pthread

I am closing this but will keep an eye out if I see the problem in the future.