aabc/ipt-netflow

wk_cpu = __smp_processor_id();

prometheus84 opened this issue · 4 comments

Not able to compile due to "wk_cpu = __smp_processor_id();", pls suggest, Kernel version: 4.15.0-200-generic (uname)

Compiling 2.6-12-g40fefb2 for kernel 4.15.0-200-generic
make -C /lib/modules/4.15.0-200-generic/build M=/root/ipt-netflow modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-200-generic'
CC [M] /root/ipt-netflow/ipt_NETFLOW.o
/root/ipt-netflow/ipt_NETFLOW.c: In function ‘netflow_work_fn’:
/root/ipt-netflow/ipt_NETFLOW.c:4504:11: error: implicit declaration of function ‘__smp_processor_id’; did you mean ‘smp_processor_id’? [-Werror=implicit-function-declaration]
wk_cpu = __smp_processor_id();
^~~~~~~~~~~~~~~~~~
smp_processor_id
cc1: some warnings being treated as errors
scripts/Makefile.build:340: recipe for target '/root/ipt-netflow/ipt_NETFLOW.o' failed
make[2]: *** [/root/ipt-netflow/ipt_NETFLOW.o] Error 1
Makefile:1594: recipe for target 'module/root/ipt-netflow' failed
make[1]: *** [module/root/ipt-netflow] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-200-generic'
Makefile:26: recipe for target 'ipt_NETFLOW.ko' failed
make: *** [ipt_NETFLOW.ko] Error 2

please move to previous version by:
git checkout tags/v2.5.1 and it will work fine

error: pathspec 'tags/v2.5.1' did not match any file(s) known to git

git clone https://github.com/aabc/ipt-netflow.git
cd ipt-netflow
git checkout tags/v2.5.1

This works fine

Thank you it worked,