make all install
Compiling 2.6-21-gd46ef26 for kernel 6.8.0-106-generic
make -C /lib/modules/6.8.0-106-generic/build M=/home/zdv/ipt-netflow modules
make[1]: Entering directory '/usr/src/linux-headers-6.8.0-106-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.3.0-6ubuntu224.04.1) 13.3.0
You are using: gcc-13 (Ubuntu 13.3.0-6ubuntu224.04.1) 13.3.0
CC [M] /home/zdv/ipt-netflow/ipt_NETFLOW.o
In file included from /home/zdv/ipt-netflow/ipt_NETFLOW.c:77:
/home/zdv/ipt-netflow/compat.h:219:15: warning: no previous prototype for ‘timeval_to_jiffies’ [-Wmissing-prototypes]
219 | unsigned long timeval_to_jiffies(const struct timeval *tv)
| ^~~~~~~~~~~~~~~~~~
/home/zdv/ipt-netflow/compat.h:384:20: warning: no previous prototype for ‘compat_hex_to_bin’ [-Wmissing-prototypes]
384 | #define hex_to_bin compat_hex_to_bin
| ^~~~~~~~~~~~~~~~~
/home/zdv/ipt-netflow/compat.h:386:5: note: in expansion of macro ‘hex_to_bin’
386 | int hex_to_bin(char ch)
| ^~~~~~~~~~
/home/zdv/ipt-netflow/compat.h:716:20: warning: no previous prototype for ‘strtoul’ [-Wmissing-prototypes]
716 | unsigned long long strtoul(const char *cp, char **endp, unsigned int base)
| ^~~~~~~
/home/zdv/ipt-netflow/ipt_NETFLOW.c: In function ‘ethtool_drvinfo’:
/home/zdv/ipt-netflow/ipt_NETFLOW.c:4090:17: error: implicit declaration of function ‘strlcpy’; did you mean ‘strscpy’? [-Werror=implicit-function-declaration]
4090 | strlcpy(info.driver, dev->dev.parent->driver->name, sizeof(info.driver));
| ^~~~~~~
| strscpy
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:243: /home/zdv/ipt-netflow/ipt_NETFLOW.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.8.0-106-generic/Makefile:1936: /home/zdv/ipt-netflow] Error 2
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-106-generic'
make: *** [Makefile:27: ipt_NETFLOW.ko] Error 2
make all install
Compiling 2.6-21-gd46ef26 for kernel 6.8.0-106-generic
make -C /lib/modules/6.8.0-106-generic/build M=/home/zdv/ipt-netflow modules
make[1]: Entering directory '/usr/src/linux-headers-6.8.0-106-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.3.0-6ubuntu2
24.04.1) 13.3.024.04.1) 13.3.0You are using: gcc-13 (Ubuntu 13.3.0-6ubuntu2
CC [M] /home/zdv/ipt-netflow/ipt_NETFLOW.o
In file included from /home/zdv/ipt-netflow/ipt_NETFLOW.c:77:
/home/zdv/ipt-netflow/compat.h:219:15: warning: no previous prototype for ‘timeval_to_jiffies’ [-Wmissing-prototypes]
219 | unsigned long timeval_to_jiffies(const struct timeval *tv)
| ^~~~~~~~~~~~~~~~~~
/home/zdv/ipt-netflow/compat.h:384:20: warning: no previous prototype for ‘compat_hex_to_bin’ [-Wmissing-prototypes]
384 | #define hex_to_bin compat_hex_to_bin
| ^~~~~~~~~~~~~~~~~
/home/zdv/ipt-netflow/compat.h:386:5: note: in expansion of macro ‘hex_to_bin’
386 | int hex_to_bin(char ch)
| ^~~~~~~~~~
/home/zdv/ipt-netflow/compat.h:716:20: warning: no previous prototype for ‘strtoul’ [-Wmissing-prototypes]
716 | unsigned long long strtoul(const char *cp, char **endp, unsigned int base)
| ^~~~~~~
/home/zdv/ipt-netflow/ipt_NETFLOW.c: In function ‘ethtool_drvinfo’:
/home/zdv/ipt-netflow/ipt_NETFLOW.c:4090:17: error: implicit declaration of function ‘strlcpy’; did you mean ‘strscpy’? [-Werror=implicit-function-declaration]
4090 | strlcpy(info.driver, dev->dev.parent->driver->name, sizeof(info.driver));
| ^~~~~~~
| strscpy
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:243: /home/zdv/ipt-netflow/ipt_NETFLOW.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.8.0-106-generic/Makefile:1936: /home/zdv/ipt-netflow] Error 2
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-106-generic'
make: *** [Makefile:27: ipt_NETFLOW.ko] Error 2