SolanaNetworks / Rmirror

Rmirror implements a Linux kernel module that mirrors traffic received and transmitted by the host to a GRE tunnel.
GNU General Public License v2.0
2 stars 1 forks source link

cannot build as module #4

Open sergey-safarov opened 3 years ago

sergey-safarov commented 3 years ago
[root@dns-b0 umod]# make libxt_RMIRROR.so
gcc -O2 -Wall -D_INIT=libxt_RMIRROR_init -fPIC -c -o libxt_RMIRROR.o libxt_RMIRROR.c;
libxt_RMIRROR.c:19:10: fatal error: xtables.h: No such file or directory
 #include <xtables.h>
          ^~~~~~~~~~~
compilation terminated.
make: *** [Makefile:5: libxt_RMIRROR.o] Error 1

Kernel devel package is present

[root@dns-b0 umod]# ls -l /usr/src/kernels/*/include/config/netfilter/xtables.h
-rw-r--r--. 1 root root 0 Apr  8 19:08 /usr/src/kernels/4.18.0-240.22.1.el8_3.aarch64/include/config/netfilter/xtables.h
[root@dns-b0 umod]# rpm -qf /usr/src/kernels/4.18.0-240.22.1.el8_3.aarch64/include/config/netfilter/xtables.h
kernel-devel-4.18.0-240.22.1.el8_3.aarch64

Dist information

[root@dns-b0 umod]# cat /etc/os-release 
NAME="CentOS Linux"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Linux 8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-8"
CENTOS_MANTISBT_PROJECT_VERSION="8"

Kernel information

[root@dns-b0 umod]# uname -a
Linux dns-b0.nga911.com 4.18.0-240.22.1.el8_3.aarch64 #1 SMP Thu Apr 8 19:01:45 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux
sergey-safarov commented 3 years ago

Error fixed by installing iptables-devel package. Please update documentation about iptables-devel package. requirements