imq / linuximq

Pseudo-driver for the intermediate queue device.
https://imq.github.io/
GNU General Public License v2.0
99 stars 51 forks source link

Linux 6.11.5: undefined reference to `nf_reinject' #98

Open k0ste opened 3 weeks ago

k0ste commented 3 weeks ago
  LD [M]  drivers/iio/pressure/st_pressure.o
  LD [M]  drivers/iio/industrialio.o
  CC [M]  drivers/iio/temperature/mlx90635.o
  CC [M]  drivers/iio/temperature/tmp006.o
  CC [M]  drivers/iio/temperature/tmp007.o
  CC [M]  drivers/iio/temperature/tmp117.o
  CC [M]  drivers/iio/temperature/tsys01.o
  CC [M]  drivers/iio/temperature/tsys02d.o
  AR      built-in.a
  AR      vmlinux.a
  LD      vmlinux.o
  OBJCOPY modules.builtin.modinfo
  GEN     modules.builtin
  MODPOST Module.symvers
  CC      .vmlinux.export.o
  UPD     include/generated/utsversion.h
  CC      init/version-timestamp.o
  KSYMS   .tmp_vmlinux0.kallsyms.S
  AS      .tmp_vmlinux0.kallsyms.o
  LD      .tmp_vmlinux1
ld: vmlinux.o: in function `imq_dev_xmit':
/home/k0ste/build/src/linux-6.11.5/drivers/net/imq.c:359:(.text+0xa3479c): undefined reference to `nf_reinject'
make[2]: *** [scripts/Makefile.vmlinux:34: vmlinux] Error 1
make[1]: *** [/home/k0ste/build/src/linux-6.11.5/Makefile:1157: vmlinux] Error 2
make: *** [Makefile:224: __sub-make] Error 2
imq commented 2 weeks ago
[dev@imq linux-6.11.6]# make
  SYNC    include/config/auto.conf.cmd
  CALL    scripts/checksyscalls.sh
  DESCEND objtool
  INSTALL libsubcmd_headers
  CHK     kernel/kheaders_data.tar.xz
  CC [M]  drivers/net/imq.o
  MODPOST Module.symvers
  TEST    posttest
arch/x86/tools/insn_decoder_test: success: Decoded and checked 7483346 instructions
  TEST    posttest
arch/x86/tools/insn_sanity: Success: decoded and checked 1000000 random instructions with 0 errors (seed:0x54e22b3f)
Kernel: arch/x86/boot/bzImage is ready  (#3)
  LD [M]  drivers/net/imq.ko
[dev@imq linux-6.11.6]#
k0ste commented 2 weeks ago

Without patch - kernel builds fine on this host. With IMQ patch - ld eats all memory

[Wed Nov  6 12:12:14 2024] Out of memory: Killed process 756269 (ld) total-vm:7164372kB, anon-rss:6102620kB, file-rss:0kB, shmem-rss:0kB, UID:1153 pgtables:12724kB oom_score_adj:0

Seems need to try host with more RAM