不望月的狼人 发表于 2022-2-15 11:32:19

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

本帖最后由 不望月的狼人 于 2022-2-15 11:37 编辑

使用GL-AX1800官方仓库的开源代码编译luci-app-turboacc错误,具体错误为:
make: 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'
CC /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
/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':
/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]
result = nf_conntrack_register_chain_notifier(&init_net, &sfe_cm_conntrack_notifier);
         ^
/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':
/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]
nf_conntrack_unregister_chain_notifier(&init_net, &sfe_cm_conntrack_notifier);
^
cc1: all warnings being treated as errors
make: *** Error 1
make: *** Error 2
make: 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'
make: *** Error 2
make: Leaving directory '/home/shi/gl-infra-builder_new/wlan-ap/openwrt/package/custom/luci-app-turboacc/shortcut-fe/shortcut-fe'
time: package/custom/luci-app-turboacc/shortcut-fe/shortcut-fe/compile#1.91#0.49#2.36
    ERROR: package/custom/luci-app-turboacc/shortcut-fe/shortcut-fe failed to build.
make: *** Error 1
make: Leaving directory '/home/shi/gl-infra-builder_new/wlan-ap/openwrt'
make: *** Error 2
make: Leaving directory '/home/shi/gl-infra-builder_new/wlan-ap/openwrt'
make: *** Error 2查了了一下,好像是内核缺少一个补丁?不太确定。@萝卜大侠求解,谢谢。备注:使用的luci-app-turboacc源码仓库为:https://github.com/imy7/luci-app-turboacc/tree/main/Lean

萝卜大侠 发表于 2022-2-15 11:55:50

这个确实是没加netfilter的补丁导致的报错,处理起来会很麻烦。
AX1800我觉得没必要用这个加速,因为CPU本身处理能力是足够的,如果要加,offload才是正解

萝卜大侠 发表于 2022-2-15 12:02:30

之前我在19.07上加过的相关补丁,可以参考
https://github.com/gl-inet/gl-infra-builder/blob/main/patches-19.x/0009-kernel-support-fast-forward.patch

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

不望月的狼人 发表于 2022-2-15 12:24:24

萝卜大侠 发表于 2022-2-15 12:02
之前我在19.07上加过的相关补丁,可以参考
https://github.com/gl-inet/gl-infra-builder/blob/main/patche ...

好的了解,感谢解惑!

nihaolai 发表于 2023-1-14 06:04:05

页: [1]
查看完整版本: 【求助】GL-AX1800开源代码编译luci-app-turboacc 错误