forum.gl-inet.cn

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 9217|回复: 4

[编译问题] 【求助】GL-AX1800开源代码编译luci-app-turboacc 错误

[复制链接]

17

主题

372

帖子

2629

积分

金牌会员

Rank: 6Rank: 6

积分
2629
发表于 2022-2-15 11:32:19 | 显示全部楼层 |阅读模式
本帖最后由 不望月的狼人 于 2022-2-15 11:37 编辑

使用GL-AX1800官方仓库的开源代码编译luci-app-turboacc错误,具体错误为:
  1. make[4]: Entering directory '/home/shi/gl-infra-builder_new/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/linux-ipq807x_ipq60xx/linux-4.4.60-qsdk-11f09717303ecd83c3a64e9efe23f25921dc1016'
  2.   CC [M]  /home/shi/gl-infra-builder_new/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/linux-ipq807x_ipq60xx/shortcut-fe/sfe_cm.o
  3. /home/shi/gl-infra-builder_new/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/linux-ipq807x_ipq60xx/shortcut-fe/sfe_cm.c: In function 'sfe_cm_init':
  4. /home/shi/gl-infra-builder_new/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/linux-ipq807x_ipq60xx/shortcut-fe/sfe_cm.c:1089:11: error: implicit declaration of function 'nf_conntrack_register_chain_notifier' [-Werror=implicit-function-declaration]
  5.   result = nf_conntrack_register_chain_notifier(&init_net, &sfe_cm_conntrack_notifier);
  6.            ^
  7. /home/shi/gl-infra-builder_new/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/linux-ipq807x_ipq60xx/shortcut-fe/sfe_cm.c: In function 'sfe_cm_exit':
  8. /home/shi/gl-infra-builder_new/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/linux-ipq807x_ipq60xx/shortcut-fe/sfe_cm.c:1177:2: error: implicit declaration of function 'nf_conntrack_unregister_chain_notifier' [-Werror=implicit-function-declaration]
  9.   nf_conntrack_unregister_chain_notifier(&init_net, &sfe_cm_conntrack_notifier);
  10.   ^
  11. cc1: all warnings being treated as errors
  12. make[5]: *** [scripts/Makefile.build:338: /home/shi/gl-infra-builder_new/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/linux-ipq807x_ipq60xx/shortcut-fe/sfe_cm.o] Error 1
  13. make[4]: *** [Makefile:1412: _module_/home/shi/gl-infra-builder_new/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/linux-ipq807x_ipq60xx/shortcut-fe] Error 2
  14. make[4]: Leaving directory '/home/shi/gl-infra-builder_new/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/linux-ipq807x_ipq60xx/linux-4.4.60-qsdk-11f09717303ecd83c3a64e9efe23f25921dc1016'
  15. make[3]: *** [Makefile:92: /home/shi/gl-infra-builder_new/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/linux-ipq807x_ipq60xx/shortcut-fe/.built] Error 2
  16. make[3]: Leaving directory '/home/shi/gl-infra-builder_new/wlan-ap/openwrt/package/custom/luci-app-turboacc/shortcut-fe/shortcut-fe'
  17. time: package/custom/luci-app-turboacc/shortcut-fe/shortcut-fe/compile#1.91#0.49#2.36
  18.     ERROR: package/custom/luci-app-turboacc/shortcut-fe/shortcut-fe failed to build.
  19. make[2]: *** [package/Makefile:114: package/custom/luci-app-turboacc/shortcut-fe/shortcut-fe/compile] Error 1
  20. make[2]: Leaving directory '/home/shi/gl-infra-builder_new/wlan-ap/openwrt'
  21. make[1]: *** [package/Makefile:108: /home/shi/gl-infra-builder_new/wlan-ap/openwrt/staging_dir/target-arm_cortex-a7_musl_eabi/stamp/.package_compile] Error 2
  22. make[1]: Leaving directory '/home/shi/gl-infra-builder_new/wlan-ap/openwrt'
  23. make: *** [/home/shi/gl-infra-builder_new/wlan-ap/openwrt/include/toplevel.mk:230: world] Error 2
复制代码
查了了一下,好像是内核缺少一个补丁?不太确定。@萝卜大侠  求解,谢谢。备注:使用的luci-app-turboacc源码仓库为:https://github.com/imy7/luci-app-turboacc/tree/main/Lean
回复

使用道具 举报

77

主题

2144

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
10312

官方人员

发表于 2022-2-15 11:55:50 | 显示全部楼层
这个确实是没加netfilter的补丁导致的报错,处理起来会很麻烦。
AX1800我觉得没必要用这个加速,因为CPU本身处理能力是足够的,如果要加,offload才是正解
回复

使用道具 举报

77

主题

2144

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
10312

官方人员

发表于 2022-2-15 12:02:30 | 显示全部楼层
之前我在19.07上加过的相关补丁,可以参考
https://github.com/gl-inet/gl-in ... -fast-forward.patch

我个人觉得AX1800上没必要有这个补丁,所以不会移植这个补丁到AX1800的开源代码,这个补丁本身也不好用,既然使用开源方案,还是使用linux的offload最好
回复

使用道具 举报

17

主题

372

帖子

2629

积分

金牌会员

Rank: 6Rank: 6

积分
2629
 楼主| 发表于 2022-2-15 12:24:24 | 显示全部楼层
萝卜大侠 发表于 2022-2-15 12:02
之前我在19.07上加过的相关补丁,可以参考
https://github.com/gl-inet/gl-infra-builder/blob/main/patche ...

好的了解,感谢解惑!
回复

使用道具 举报

0

主题

833

帖子

1684

积分

禁止发言

积分
1684
发表于 2023-1-14 06:04:05 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|gl-inet.cn ( 粤ICP备18130956号 )

GMT+8, 2026-1-28 05:24 , Processed in 0.022126 second(s), 24 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表