libnl1.1-6 /netlink/genl/genl.h no such directory

I'm trying to compile hostapd, and for that it needs the headerfile genl.h which is supposed to be a part of the libnl1 library (I searched around, the best I got was a recommendation to update libnl1.1)

Somehow that headerfile is not available on the system anywhere, I checked some include folders and used

locate genl.h

but got no result.

share improve this question
 
feedback

1 Answer

The /usr/include/netlink/genl/genl.h header file is contained in the libnl-dev package. The latest version in the repositories is 1.1-7.

sudo apt-get install libnl-dev will also install the libnl1 library as a dependency.

share improve this answer
[OHOS ERROR] [GN] ERROR at //third_party/libnl/BUILD.gn:13:1: Script returned non-zero exit code. [OHOS ERROR] [GN] exec_script("install.sh", [ "$libnl_path" ]) [OHOS ERROR] [GN] ^---------- [OHOS ERROR] [GN] Current dir: /home/cshuang/openharmony/6.0/out/rk3568/ [OHOS ERROR] [GN] Command: /usr/bin/env /home/cshuang/openharmony/6.0/third_party/libnl/install.sh /home/cshuang/openharmony/6.0/third_party/libnl [OHOS ERROR] [GN] Returned 100 and printed out: [OHOS ERROR] [GN] [OHOS ERROR] [GN] libnl-libnl3_11_0/ [OHOS ERROR] [GN] libnl-libnl3_11_0/.clang-format [OHOS ERROR] [GN] libnl-libnl3_11_0/.flake8 [OHOS ERROR] [GN] libnl-libnl3_11_0/.git-blame-ignore-revs [OHOS ERROR] [GN] libnl-libnl3_11_0/.github/ [OHOS ERROR] [GN] libnl-libnl3_11_0/.github/workflows/ [OHOS ERROR] [GN] libnl-libnl3_11_0/.github/workflows/ci.yml [OHOS ERROR] [GN] libnl-libnl3_11_0/.gitignore [OHOS ERROR] [GN] libnl-libnl3_11_0/.indent.pro [OHOS ERROR] [GN] libnl-libnl3_11_0/COPYING [OHOS ERROR] [GN] libnl-libnl3_11_0/ChangeLog [OHOS ERROR] [GN] libnl-libnl3_11_0/Makefile.am [OHOS ERROR] [GN] libnl-libnl3_11_0/autogen.sh [OHOS ERROR] [GN] libnl-libnl3_11_0/configure.ac [OHOS ERROR] [GN] libnl-libnl3_11_0/doc/ [OHOS ERROR] [GN] libnl-libnl3_11_0/doc/AUTHORS [OHOS ERROR] [GN] libnl-libnl3_11_0/doc/COPYING [OHOS ERROR] [GN] libnl-libnl3_11_0/doc/Doxyfile.in [OHOS ERROR] [GN] libnl-libnl3_11_0/doc/DoxygenLayout.xml [OHOS ERROR] [GN] libnl-libnl3_11_0/doc/Makefile.am [OHOS ERROR] [GN] libnl-libnl3_11_0/doc/README [OHOS ERROR] [GN] libnl-libnl3_11_0/doc/api/ [OHOS ERROR] [GN] libnl-libnl3_11_0/doc/api/.gitignore [OHOS ERROR] [GN] libnl-libnl3_11_0/doc/autogen.sh [OHOS ERROR] [GN] libnl-libnl3_11_0/doc/configure.ac [OHOS ERROR] [GN] libnl-libnl3_11_0/doc/core.txt [OHOS ERROR] [GN] libnl-libnl3_11_0/doc/doxygen-link.py [OHOS ERROR] [GN] libnl-libnl3_11_0/doc/gen-tags.sh [OHOS ERROR] [GN] libnl-libnl3_11_0/doc/images/ [OHOS ERROR] [GN] libnl-libnl3_11_0/doc/images/addressing.png [OHOS ERROR] [GN] libnl-libnl3_11_0/doc/images/attribute_hdr.png [OHOS ERROR] [GN] libnl-libnl3_11_0/doc/images/classful_qdisc.png [OHOS ERROR] [GN] libnl-libnl3_11_0/doc/images/classless_qdisc.png [OHOS ERROR] [GN] libnl-libnl3_11_0/doc/images/classless_qdisc_nbands.png [OHOS ERROR] [GN] libnl-libnl3_11_0/doc/images/icons/ [OHOS ERROR] [GN] libnl-libnl3_11_0/doc/images/icons/README [OHOS ERROR] [GN] libnl-libnl3_11_0/doc/images/icons/callouts/ [OHOS ERROR] [GN] libnl-libnl3_11_0/doc/images/icons/callouts/1.png [OHOS ERROR] [GN] libnl-libnl3_11_0/doc/images/icons/callouts/10.png [OHOS ERROR] [GN] libnl-libnl3_11_0/doc/images/icons/callouts/11.png [OHOS ERROR] [GN] libnl-libnl3_11_0/doc/images/icons/callouts/12.png [OHOS ERROR] [GN] libnl-libnl3_11_0/doc/images/icons/callouts/13.png [OHOS ERROR] [GN] libnl-libnl3_11_0/doc/images/icons/callouts/14.png [OHOS ERROR] [GN] Traceback (most recent call last): [OHOS ERROR] [GN] File "/home/cshuang/openharmony/6.0/build/hb/containers/status.py", line 47, in wrapper [OHOS ERROR] [GN] return func(*args, **kwargs) [OHOS ERROR] [GN] ^^^^^^^^^^^^^^^^^^^^^ [OHOS ERROR] [GN] File "/home/cshuang/openharmony/6.0/build/hb/services/gn.py", line 133, in _execute_gn_gen_cmd [OHOS ERROR] [GN] SystemUtil.exec_command(gn_gen_cmd, self.config.log_path) [OHOS ERROR] [GN] File "/home/cshuang/openharmony/6.0/build/hb/util/system_util.py", line 129, in exec_command [OHOS ERROR] [GN] LogUtil.get_failed_log(log_path) [OHOS ERROR] [GN] File "/home/cshuang/openharmony/6.0/build/hb/util/log_util.py", line 207, in get_failed_log [OHOS ERROR] [GN] LogUtil.get_gn_failed_log(log_path) [OHOS ERROR] [GN] File "/home/cshuang/openharmony/6.0/build/hb/util/log_util.py", line 153, in get_gn_failed_log [OHOS ERROR] [GN] raise OHOSException( [OHOS ERROR] [GN] exceptions.ohos_exception.OHOSException: GN Failed! Please check error in /home/cshuang/openharmony/6.0/out/rk3568/error.log, and for more build information in /home/cshuang/openharmony/6.0/out/rk3568/build.log [OHOS ERROR] [GN] [OHOS ERROR] [GN] Code: 3000 [OHOS ERROR] [GN] [OHOS ERROR] [GN] Reason: GN Failed! Please check error in /home/cshuang/openharmony/6.0/out/rk3568/error.log, and for more build information in /home/cshuang/openharmony/6.0/out/rk3568/build.log [OHOS ERROR] [GN] [OHOS ERROR] [GN] Error Type: UNKNOWN [OHOS ERROR] [GN] [OHOS ERROR] [GN] Description: An unknown error occurred while executing 'gn gen'. [OHOS ERROR] [GN] [OHOS ERROR] [GN] Solution: There is no solution available. You can check the 'gn_error.log' in the output directory for more information [OHOS ERROR] [GN] =====build error===== cshuang@ubuntu:~/openharmony/6.0$
09-30
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值