openwrt / packages

Community maintained packages for OpenWrt. Documentation for submitting pull requests is in CONTRIBUTING.md
GNU General Public License v2.0
4.01k stars 3.49k forks source link

Error build v17.01.7 kmod-jool #22304

Closed EvgeniyBlinov closed 1 year ago

EvgeniyBlinov commented 1 year ago

Same error https://github.com/openwrt/packages/issues/10590#issuecomment-555783856

Build env https://github.com/mwarning/docker-openwrt-build-env

git status |head -1
HEAD detached at v17.01.7
grep jool ./.config
CONFIG_PACKAGE_kmod-jool=m
62cf3bb8b86cc7756ce9d586bd55638a  ./net/jool/patches/010-Add-support-for-kernel-4.17.patch

diff current config with https://archive.openwrt.org/releases/17.01.7/targets/ar71xx/generic/config.seed

https://pastebin.com/raw/hguSP406

Error

make -C "/home/user/openwrt/build_dir/target-mips_24kc_musl-1.1.16/linux-ar71xx_generic/linux-4.4.182" KERNEL_DIR="/home/user/openwrt/build_dir/target-mips_24kc_musl-1.1.16/linux-ar71xx_generic/linux-4.4.182" ARCH="mips" CROSS_COMPILE="mips-openwrt-linux-musl-" SUBDIRS="/home/user/openwrt/build_dir/target-mips_24kc_musl-1.1.16/linux-ar71xx_generic/jool-66a791c90751d7941b08c142babe1deec73d0996/mod/stateful" V="s" modules
make[4]: Entering directory '/home/user/openwrt/build_dir/target-mips_24kc_musl-1.1.16/linux-ar71xx_generic/linux-4.4.182'
  CC [M]  /home/user/openwrt/build_dir/target-mips_24kc_musl-1.1.16/linux-ar71xx_generic/jool-66a791c90751d7941b08c142babe1deec73d0996/mod/stateful/fragment_db.o
/home/user/openwrt/build_dir/target-mips_24kc_musl-1.1.16/linux-ar71xx_generic/jool-66a791c90751d7941b08c142babe1deec73d0996/mod/stateful/fragment_db.c: In function 'inet6_hash_frag':
/home/user/openwrt/build_dir/target-mips_24kc_musl-1.1.16/linux-ar71xx_generic/jool-66a791c90751d7941b08c142babe1deec73d0996/mod/stateful/fragment_db.c:96:14: error: 'INETFRAGS_HASHSZ' undeclared (first use in this function)
  return c & (INETFRAGS_HASHSZ - 1);
              ^
/home/user/openwrt/build_dir/target-mips_24kc_musl-1.1.16/linux-ar71xx_generic/jool-66a791c90751d7941b08c142babe1deec73d0996/mod/stateful/fragment_db.c:96:14: note: each undeclared identifier is reported only once for each function it appears in
/home/user/openwrt/build_dir/target-mips_24kc_musl-1.1.16/linux-ar71xx_generic/jool-66a791c90751d7941b08c142babe1deec73d0996/mod/stateful/fragment_db.c:97:1: warning: control reaches end of non-void function [-Wreturn-type]
BKPepe commented 1 year ago

I am so sorry, but LEDE 17.01 is really old and already end-of-life for 4 years. You should not be using that. Switch to the latest stable release, which is OpenWrt 22.03.

EvgeniyBlinov commented 1 year ago

I am so sorry, but LEDE 17.01 is really old and already end-of-life for 4 years. You should not be using that. Switch to the latest stable release, which is OpenWrt 22.03. Is there some manual how to build OpenWrt 22.03 for tp-wr841n?

BKPepe commented 1 year ago

https://openwrt.org/toh/tp-link/tl-wr841nd