Skip to content
This repository has been archived by the owner on Nov 14, 2021. It is now read-only.

ERROR: modpost: "__module_address" [/home/blackarch/tyton/tyton.ko] undefined! #33

Open
net-wayfarer opened this issue Feb 8, 2021 · 2 comments

Comments

@net-wayfarer
Copy link

Environment:
Distro name and version: Black Arch (rolling release)
Kernel version: 5.10.13-arch1-2
Reproducibility Rate: Always. Even if building the package from AUR it fails.

Steps to reproduce:

  1. git clone https://github.com/nbulischeck/tyton.git
  2. make
  3. Errors on ERROR: modpost: "__module_address" [/home/blackarch/tyton/tyton.ko] undefined!. Please refer to "Actual result" section.

Expected result:
Kernel module should be built.

Actual result:

make -C /lib/modules/5.10.13-arch1-2/build M=/home/blackarch/tyton modules
make[1]: Entering directory '/usr/lib/modules/5.10.13-arch1-2/build'
  CC [M]  /home/blackarch/tyton/src/core.o
  CC [M]  /home/blackarch/tyton/src/util.o
  CC [M]  /home/blackarch/tyton/src/proc.o
  CC [M]  /home/blackarch/tyton/src/module_list.o
  CC [M]  /home/blackarch/tyton/src/syscall_hooks.o
  CC [M]  /home/blackarch/tyton/src/network_hooks.o
  CC [M]  /home/blackarch/tyton/src/netfilter_hooks.o
  CC [M]  /home/blackarch/tyton/src/interrupt_hooks.o
  LD [M]  /home/blackarch/tyton/tyton.o
  MODPOST /home/blackarch/tyton/Module.symvers
ERROR: modpost: "__module_address" [/home/blackarch/tyton/tyton.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:111: /home/blackarch/tyton/Module.symvers] Error 1
make[2]: *** Deleting file '/home/blackarch/tyton/Module.symvers'
make[1]: *** [Makefile:1709: modules] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.10.13-arch1-2/build'
make: *** [Makefile:19: module] Error 2

Severity/Priority
Critical.

Notes
This link from linux-kernel mailing-list might be related.

@nbulischeck
Copy link
Owner

Thanks for your issue and reference to the mailing list. I'll have to move the module iteration code from https://github.com/nbulischeck/tyton/blob/master/src/module_list.c#L21 to grab module addresses manually now that __module_address is unexported.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants