Compile latest net-snmp

Hello,

I tried to compile the latest net-snmp 5.7.3 because it looks like that the snmpd 5.4.4 gives incorrect values. I used the latest source from net-snmp from OpenWRT. I also compiled before the library libnl-tiny without problems which net-snmp also depends of.

When I compile the package then I get this errors:

ibs/ieee802dot11.o
In file included from ieee802dot11.c:28:0:
ieee802dot11.h:109:1: warning: useless storage class specifier in empty declaration [enabled by default]
};
^
In file included from ieee802dot11.c:29:0:
iwlib.h: In function ‘iw_set_ext’:
iwlib.h:442:15: error: ‘struct iwreq’ has no member named 'ifr_name’
strncpy(pwrq->ifr_name, ifname, IFNAMSIZ);
^
iwlib.h: In function ‘iw_get_ext’:
iwlib.h:458:15: error: ‘struct iwreq’ has no member named 'ifr_name’
strncpy(pwrq->ifr_name, ifname, IFNAMSIZ);
^
ieee802dot11.c: In function ‘loadTables’:
ieee802dot11.c:3907:16: error: storage size of ‘ifr’ isn’t known
struct ifreq ifr;
^
ieee802dot11.c:3941:22: error: ‘struct iwreq’ has no member named 'ifr_name’
strncpy ( wrq.ifr_name, ifName, IFNAMSIZ );
^
ieee802dot11.c: In function ‘load80211Structs’:
ieee802dot11.c:3966:16: error: storage size of ‘ifr’ isn’t known
struct ifreq ifr;
^
ieee802dot11.c: In function ‘loadWiExt’:
ieee802dot11.c:4293:16: error: ‘struct iwreq’ has no member named 'ifr_name’
strncpy ( wrq.ifr_name, ifname, IFNAMSIZ );
^
ieee802dot11.c: In function ‘addList’:
ieee802dot11.c:4705:8: warning: assignment from incompatible pointer type [enabled by default]
list = ( LIST_HEAD ( , avNode ) * ) l; // NOTE: don’t know how to get
^
ieee802dot11.c: In function ‘flushList’:
ieee802dot11.c:4789:8: warning: assignment from incompatible pointer type [enabled by default]
list = ( LIST_HEAD ( , avNode ) * ) l; // NOTE: don’t know how to get
^
Makefile:99: recipe for target ‘ieee802dot11.lo’ failed

Maybe someone can help me with that?

Thank you.