owl icon indicating copy to clipboard operation
owl copied to clipboard

compilation error

Open filip2cz opened this issue 2 years ago • 0 comments

I tried to compile it, but I have this error:

[ 59%] Building C object daemon/CMakeFiles/owl.dir/netutils.c.o
In file included from /usr/include/libnl3/netlink/msg.h:17,
                 from /usr/include/libnl3/netlink/genl/genl.h:16,
                 from /home/orangepi/owl/daemon/netutils.c:32:
/home/orangepi/owl/daemon/netutils.c: In function 'set_monitor_mode':
/home/orangepi/owl/daemon/netutils.c:225:22: error: 'NL80211_MNTR_FLAG_ACTIVE' undeclared (first use in this function); did you mean 'NL80211_MPATH_FLAG_ACTIVE'?
  225 |  NLA_PUT_FLAG(flags, NL80211_MNTR_FLAG_ACTIVE);
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/libnl3/netlink/attr.h:166:20: note: in definition of macro 'NLA_PUT'
  166 |   if (nla_put(msg, attrtype, attrlen, data) < 0) \
      |                    ^~~~~~~~
/home/orangepi/owl/daemon/netutils.c:225:2: note: in expansion of macro 'NLA_PUT_FLAG'
  225 |  NLA_PUT_FLAG(flags, NL80211_MNTR_FLAG_ACTIVE);
      |  ^~~~~~~~~~~~
/home/orangepi/owl/daemon/netutils.c:225:22: note: each undeclared identifier is reported only once for each function it appears in
  225 |  NLA_PUT_FLAG(flags, NL80211_MNTR_FLAG_ACTIVE);
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/libnl3/netlink/attr.h:166:20: note: in definition of macro 'NLA_PUT'
  166 |   if (nla_put(msg, attrtype, attrlen, data) < 0) \
      |                    ^~~~~~~~
/home/orangepi/owl/daemon/netutils.c:225:2: note: in expansion of macro 'NLA_PUT_FLAG'
  225 |  NLA_PUT_FLAG(flags, NL80211_MNTR_FLAG_ACTIVE);
      |  ^~~~~~~~~~~~
/home/orangepi/owl/daemon/netutils.c: In function 'parse_freq_support':
/home/orangepi/owl/daemon/netutils.c:310:62: error: 'NL80211_FREQUENCY_ATTR_NO_IR' undeclared (first use in this function); did you mean 'NL80211_FREQUENCY_ATTR_NO_IBSS'?
  310 |      if (tb_freq[NL80211_FREQUENCY_ATTR_DISABLED] || tb_freq[NL80211_FREQUENCY_ATTR_NO_IR]) {
      |                                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                              NL80211_FREQUENCY_ATTR_NO_IBSS
make[2]: *** [daemon/CMakeFiles/owl.dir/build.make:108: daemon/CMakeFiles/owl.dir/netutils.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:275: daemon/CMakeFiles/owl.dir/all] Error 2
make: *** [Makefile:149: all] Error 2

Device info:

Orange Pi i96 OS: Debian GNU/Linux 11 (bullseye) armv7l kernel: 3.10.62-rel5.0.2-legendary-v1.34 arch: armv7l CPU: ARMv7 Processor rev 1 - rda8810 (1) @ 988MHz

filip2cz avatar Jan 24 '23 12:01 filip2cz