Skip to content

Compile error Debian-9 4.9.0-12-amd64 # 4.9.210-1 #228

Open
@SmartHome2021

Description

The problem is still the same.
wk_cpu = __smp_processor_id();
^~~~~~~~~~~~~~~~~~

Full bulid log:
`

./gen_compat_def > compat_def.h-
Test function xt_family linux/netfilter_ipv4/ip_tables.h undeclared
Test struct timeval linux/ktime.h declared
Test struct proc_ops linux/proc_fs.h undeclared
Test function synchronize_sched linux/rcupdate.h declared
Test function nf_bridge_info_get linux/netfilter_bridge.h undeclared
Test struct vlan_dev_priv linux/if_vlan.h declared
Test function put_unaligned_be24 asm/unaligned.h undeclared
Test function totalram_pages linux/mm.h undeclared
Test symbol totalram_pages linux/mm.h declared
Test member nf_ct_event_notifier.ct_event net/netfilter/nf_conntrack_ecache.h undeclared
Test function register_sysctl_paths linux/sysctl.h declared
mv compat_def.h- compat_def.h
Compiling 2.6-17-g0eb2092 for kernel 4.9.210
make -C /lib/modules/4.9.0-12-amd64/build M=/home/airmaster/ipt-netflow modules
make[1]: вход в каталог «/usr/src/linux-headers-4.9.0-12-amd64»
CC [M] /home/airmaster/ipt-netflow/ipt_NETFLOW.o
/home/airmaster/ipt-netflow/ipt_NETFLOW.c: In function ‘netflow_work_fn’:
/home/airmaster/ipt-netflow/ipt_NETFLOW.c:4506:11: error: implicit declaration of function ‘__smp_processor_id’ [-Werror=implicit-function-declaration]
wk_cpu = __smp_processor_id();
^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
/usr/src/linux-headers-4.9.0-12-common/scripts/Makefile.build:318: ошибка выполнения рецепта для цели «/home/airmaster/ipt-netflow/ipt_NETFLOW.o»
make[4]: *** [/home/airmaster/ipt-netflow/ipt_NETFLOW.o] Ошибка 1
/usr/src/linux-headers-4.9.0-12-common/Makefile:1552: ошибка выполнения рецепта для цели «module/home/airmaster/ipt-netflow»
make[3]: *** [module/home/airmaster/ipt-netflow] Ошибка 2
Makefile:152: ошибка выполнения рецепта для цели «sub-make»
make[2]: *** [sub-make] Ошибка 2
Makefile:8: ошибка выполнения рецепта для цели «all»
make[1]: *** [all] Ошибка 2
make[1]: выход из каталога «/usr/src/linux-headers-4.9.0-12-amd64»
Makefile:26: ошибка выполнения рецепта для цели «ipt_NETFLOW.ko»
make: *** [ipt_NETFLOW.ko] Ошибка 2

`
As far as I understood, this problem has already been fixed, but for me it did not bring any result, or I misunderstood what needed to be done.
Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions