Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SmartHome2021 opened this issue May 27, 2024 · 1 comment
Open

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

SmartHome2021 opened this issue May 27, 2024 · 1 comment

Comments

@SmartHome2021
Copy link

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

@SmartHome2021 SmartHome2021 changed the title Compile error Debian 4.9.0-12-amd64 # 4.9.210-1 Compile error Debian-9 4.9.0-12-amd64 # 4.9.210-1 May 27, 2024
@kalamlacki
Copy link

Hi,

I have just installed Debian 9 from archives and successfully cloned ipt-netflow to VM and then I did:
git checkout tags/v2.5.1
...
and everything worked as a charm

Did you consider updating you distribution as Debian 9 does not have support and is only as an archive.
Current stable Debian in bookworm version 12 and you still use 9. Don't you worry about security of this machine?

Best regards,
Łukasz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants