memflow / memflow-kvm

Linux kernel module for memflow's KVM connector
MIT License
40 stars 8 forks source link

Can't nake kernel module on proxmox, kallsyms/kallsyms.h: No such file or directory #4

Closed SyRaza closed 3 years ago

SyRaza commented 3 years ago

Trying to build this on proxmox and I'm issues. This is the error I get. Googling isn't yielding much.

root@sy:~/memflow-kvm# make
mkdir -p "/root/memflow-kvm/build"
touch "/root/memflow-kvm/build/Makefile"
/root/memflow-kvm/build
make -C /lib/modules/5.4.114-1-pve/build M=/root/memflow-kvm/build src=/root/memflow-kvm/memflow-kmod modules
make[1]: Entering directory '/usr/src/linux-headers-5.4.114-1-pve'
  CC [M]  /root/memflow-kvm/build/main.o
/root/memflow-kvm/memflow-kmod/main.c:9:10: fatal error: kallsyms/kallsyms.h: No such file or directory
 #include "kallsyms/kallsyms.h"
          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:271: /root/memflow-kvm/build/main.o] Error 1
make[1]: *** [Makefile:1762: /root/memflow-kvm/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.4.114-1-pve'
make: *** [Makefile:18: all] Error 2
emesare commented 3 years ago

You need to pull the submodule kallsyms. git submodule update --init should do the trick

SyRaza commented 3 years ago

git submodule update --init

that did it. thanks!