I got the below error while trying to configure keealived with Net-SNMP on Ubuntu box. Just when I was searched on Google got some information to be install or update some packages.

libipvs.c:1099:5: note: each undeclared identifier is reported only once for each function it appears in

make[2]: *** [libipvs.o] Error 1
make[2]: Leaving directory `/root/keepalived/keepalived/libipvs-2.6'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/root/keepalived/keepalived'
make: *** 3800 lines (3393 sloc)  100 KB
-- ----------------------------------------------------------------------
-- MIB file for keepalived (http://www.keepalived.org)
-- ----------------------------------------------------------------------
-- There are two sections in this MIB: vrrp and check.
[all] Error 2

You can run the below commands,

# apt-get update

# apt-get install linux-generic

# apt-get install libnl-route-3-dev 

# apt-get install libnl-genl-3-dev

# apt-get install  libnfnetlink-dev