Getting 'modpost: "cc_mkenc" [...] undefined!' when compiling out of tree kernel module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi everyone,

I'm new here so I'm sorry if this is not the right place to ask about this.

I'm trying to build a kernel module based on this repo https://github.com/stackrox/falcosecurity-libs/tree/master/driver using the kernel header files for:
- 5.18.2-201.fc36.x86_64
- 5.18.2-200.fc36.x86_64
- 5.18.1-200.fc36.x86_64
- 5.18.0-60.fc37.x86_64

In all of them I'm getting an error like this:
ERROR: modpost: "cc_mkenc" [/scratch/module-src/1.1.0/collector.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:134: /scratch/module-src/1.1.0/Module.symvers] Error 1
make[2]: *** Deleting file '/scratch/module-src/1.1.0/Module.symvers'
make[1]: *** [Makefile:1753: modules] Error 2
make: *** [Makefile:16: all] Error 2

I think I've narrowed it down to the cc_mkenc function being defined in the kernel files but not exported: https://github.com/torvalds/linux/blob/6bfb56e93bcef41859c2d5ab234ffd80b691be35/arch/x86/coco/core.c#L99-L116

Does anyone know if this is something I'm only getting? Is there a work around to get these builds working again?
_______________________________________________
kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux