mirror_frr/staticd
Donald Sharp 6b131b55e0 staticd: Fix make check failures
Recent commit:
abc246e193

Has broken `make check` with recently new compilers:

/usr/bin/ld: staticd/libstatic.a(static_nb_config.o): warning: relocation against `zebra_ecmp_count' in read-only section `.text'
  CCLD     tests/bgpd/test_peer_attr
  CCLD     tests/bgpd/test_packet
/usr/bin/ld: staticd/libstatic.a(static_zebra.o): in function `static_zebra_capabilities':
/home/sharpd/frr5/staticd/static_zebra.c:208: undefined reference to `zebra_ecmp_count'
/usr/bin/ld: staticd/libstatic.a(static_zebra.o): in function `static_zebra_route_add':
/home/sharpd/frr5/staticd/static_zebra.c:418: undefined reference to `zebra_ecmp_count'
/usr/bin/ld: staticd/libstatic.a(static_nb_config.o): in function `static_nexthop_create':
/home/sharpd/frr5/staticd/static_nb_config.c:174: undefined reference to `zebra_ecmp_count'
/usr/bin/ld: /home/sharpd/frr5/staticd/static_nb_config.c:175: undefined reference to `zebra_ecmp_count'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status
make: *** [Makefile:8679: tests/lib/test_grpc] Error 1
make: *** Waiting for unfinished jobs....

Essentially the newly introduced variable zebra_ecmp_count is not available in the
libstatic.a compiled and make check has code that compiles against it.

The fix is to just move the variable to the library.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
(cherry picked from commit 7c1e76aa8d)
2022-02-28 15:40:54 +00:00
..
.gitignore staticd: Start the addition of a staticd 2018-07-29 12:37:24 -04:00
Makefile staticd: Start the addition of a staticd 2018-07-29 12:37:24 -04:00
static_debug.c staticd : Added the warning log for route when VRF is not ready. 2020-08-31 21:12:21 -07:00
static_debug.h tests: add grpc unit test 2021-06-06 18:03:17 +00:00
static_main.c staticd: Fix make check failures 2022-02-28 15:40:54 +00:00
static_nb_config.c staticd: reject route config with too many nexthops 2022-02-18 00:52:51 +00:00
static_nb.c staticd: output config using NB callbacks instead of operational data 2021-08-31 17:59:44 +03:00
static_nb.h tests: add grpc unit test 2021-06-06 18:03:17 +00:00
static_nht.c staticd: simplify the northbound code 2021-07-09 22:58:45 +03:00
static_nht.h tests: add grpc unit test 2021-06-06 18:03:17 +00:00
static_routes.c *: cleanup ifp->vrf_id 2021-11-22 20:47:23 +03:00
static_routes.h staticd: capture zebra's advertised ECMP limit 2022-02-18 00:52:51 +00:00
static_vrf.c *: rework renaming the default VRF 2021-12-21 22:09:29 +03:00
static_vrf.h *: cleanup ifp->vrf_id 2021-11-22 20:47:23 +03:00
static_vty.c lib: northbound cli show/cmd functions must not modify data nodes 2021-10-13 20:12:35 +03:00
static_vty.h lib: northbound cli show/cmd functions must not modify data nodes 2021-10-13 20:12:35 +03:00
static_zebra.c staticd: Fix make check failures 2022-02-28 15:40:54 +00:00
static_zebra.h staticd: simplify the northbound code 2021-07-09 22:58:45 +03:00
subdir.am *: remove *.conf.sample files 2021-04-09 13:14:30 -04:00