找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 841|回复: 2

求问batman-adv导致编译失败的具体解决方法!

[复制链接]
用P3TERX大佬的编译库,lean大佬的lede源云编译的openwrt。几个月前编译成功的配置,现在编译会跳bataman-adv错误。请问有到来有解决步骤么?纯小白,一步步摸索到自己编译配置不容易,太复制的问题不会解决。错误代码如下:

SHELL= flock /workdir/openwrt/tmp/.batman-adv-2022.0.tar.gz.flock -c '          /workdir/openwrt/scripts/download.pl "/workdir/openwrt/dl" "batman-adv-2022.0.tar.gz" "49338705bc207709ac84d766688e702571009c827c0a320788ea51fb887714aa" "" "https://downloads.open-mesh.org/batman/releases/batman-adv-2022.0"    '
rm -f /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/batman-adv-2022.0/.built
touch /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/batman-adv-2022.0/.built_check
make  -C "/workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.190" KCFLAGS="-fmacro-prefix-map=/workdir/openwrt/build_dir/target-mipsel_24kc_musl=target-mipsel_24kc_musl" HOSTCFLAGS="-O2 -I/workdir/openwrt/staging_dir/host/include -I/workdir/openwrt/staging_dir/hostpkg/include -I/workdir/openwrt/staging_dir/target-mipsel_24kc_musl/host/include -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="mipsel-openwrt-linux-musl-" ARCH="mips" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="" KBUILD_BUILD_HOST="" KBUILD_BUILD_TIMESTAMP="Mon Apr 25 11:18:22 2022" KBUILD_BUILD_VERSION="0" HOST_LOADLIBES="-L/workdir/openwrt/staging_dir/host/lib" KBUILD_HOSTLDLIBS="-L/workdir/openwrt/staging_dir/host/lib" CONFIG_SHELL="bash" V=''  cmd_syscalls= KBUILD_EXTRA_SYMBOLS="/workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/symvers/cryptodev-linux.symvers /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/symvers/gpio-button-hotplug.symvers /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/symvers/shortcut-fe.symvers /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/symvers/mtk-eip93.symvers /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/symvers/mac80211.symvers /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/symvers/mt76.symvers" KERNELRELEASE=5.4.190 M="/workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/batman-adv-2022.0/net/batman-adv" CONFIG_BATMAN_ADV=m CONFIG_BATMAN_ADV_DEBUG=n CONFIG_BATMAN_ADV_BLA=y CONFIG_BATMAN_ADV_DAT=y CONFIG_BATMAN_ADV_MCAST=y CONFIG_BATMAN_ADV_NC=n CONFIG_BATMAN_ADV_BATMAN_V=y CONFIG_BATMAN_ADV_TRACING=n  EXTRA_CFLAGS=" -DCONFIG_BATMAN_ADV=1  -DCONFIG_BATMAN_ADV_BLA=1  -DCONFIG_BATMAN_ADV_DAT=1  -DCONFIG_BATMAN_ADV_MCAST=1  -DCONFIG_BATMAN_ADV_BATMAN_V=1 " NOSTDINC_FLAGS="-nostdinc  -isystem /workdir/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-8.4.0_musl/lib/gcc/mipsel-openwrt-linux-musl/8.4.0/include -I/workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/batman-adv-2022.0/net/batman-adv -I/workdir/openwrt/staging_dir/target-mipsel_24kc_musl/usr/include/mac80211-backport -I/workdir/openwrt/staging_dir/target-mipsel_24kc_musl/usr/include/mac80211-backport/uapi -I/workdir/openwrt/staging_dir/target-mipsel_24kc_musl/usr/include/mac80211 -I/workdir/openwrt/staging_dir/target-mipsel_24kc_musl/usr/include/mac80211/uapi -I/workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/batman-adv-2022.0/include/ -include backport/autoconf.h -include backport/backport.h -include /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/batman-adv-2022.0/compat-hacks.h -DBATADV_SOURCE_VERSION=\\\"2022.0-openwrt-1\\\"" modules
make[4]: Entering directory '/workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.190'
  CC [M]  /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/batman-adv-2022.0/net/batman-adv/bat_algo.o
In file included from <command-line>:
/workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/batman-adv-2022.0/compat-hacks.h: In function 'br_multicast_has_router_adjacent':
/workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/batman-adv-2022.0/compat-hacks.h:32:53: error: 'struct br_ip' has no member named 'dst'
       ipv6_addr_is_ll_all_routers(&br_ip_entry->addr.dst.ip6))
                                                     ^
make[5]: *** [scripts/Makefile.build:262: /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/batman-adv-2022.0/net/batman-adv/bat_algo.o] Error 1
make[4]: *** [Makefile:1734: /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/batman-adv-2022.0/net/batman-adv] Error 2
make[4]: Leaving directory '/workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.190'
make[3]: *** [Makefile:95: /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/batman-adv-2022.0/.built] Error 2
make[3]: Leaving directory '/workdir/openwrt/feeds/routing/batman-adv'
time: package/feeds/routing/batman-adv/compile#1.19#0.29#1.31
    ERROR: package/feeds/routing/batman-adv failed to build.
make[2]: *** [package/Makefile:116: package/feeds/routing/batman-adv/compile] Error 1
make[2]: Leaving directory '/workdir/openwrt'
make[1]: *** [package/Makefile:110: /workdir/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/workdir/openwrt'
make: *** [/workdir/openwrt/include/toplevel.mk:230: world] Error 2
feeds.conf.default中src-git routing https://git.openwrt.org/feed/routing.git结尾加上;openwrt-21.02
或者用>=5.10版本的内核
回复

使用道具 举报

 楼主| | 显示全部楼层
RTX10086 发表于 2022-4-28 11:02
feeds.conf.default中src-git routing https://git.openwrt.org/feed/routing.git结尾加上;openwrt-21.02
...

谢谢大佬,我去试试!!!
回复

使用道具 举报

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

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-5-11 10:08

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

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