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

Debian 10, kernel 4.19.0-18, implicit declaration of function ‘ref_module’; did you mean ‘use_module’ #190

Open
streamthing opened this issue Jan 7, 2022 · 9 comments
Assignees

Comments

@streamthing
Copy link

I can't compile from apt with dkms on 4.19.0-18-amd64 #1 SMP Debian 4.19.208-1 (2021-09-29)
same issue as #177
Could you help me?

Loading new ipt-netflow-2.3 DKMS files...
Building for 4.19.0-18-amd64
Building initial module for 4.19.0-18-amd64
Error! Bad return status for module build on kernel: 4.19.0-18-amd64 (x86_64)
Consult /var/lib/dkms/ipt-netflow/2.3/build/make.log for more information.
/var/lib/dkms/ipt-netflow/2.3/build/ipt_NETFLOW.c: In function ‘nf_seq_show’:
/var/lib/dkms/ipt-netflow/2.3/build/ipt_NETFLOW.c:749:39: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘s64’ {aka ‘long long int’} [-Wformat=]
    seq_printf(seq, " Flows selected %lu, discarded %lu.",
                                     ~~^
                                     %llu
        atomic64_read(&flows_selected),
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/ipt-netflow/2.3/build/ipt_NETFLOW.c:749:54: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘s64’ {aka ‘long long int’} [-Wformat=]
    seq_printf(seq, " Flows selected %lu, discarded %lu.",
                                                    ~~^
                                                    %llu
/var/lib/dkms/ipt-netflow/2.3/build/ipt_NETFLOW.c:751:8:
        atomic64_read(&flows_observed) - atomic64_read(&flows_selected));
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/ipt-netflow/2.3/build/ipt_NETFLOW.c:753:39: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘s64’ {aka ‘long long int’} [-Wformat=]
    seq_printf(seq, " Flows selected %lu.", atomic64_read(&flows_selected));
                                     ~~^    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                     %llu
In file included from /var/lib/dkms/ipt-netflow/2.3/build/ipt_NETFLOW.c:75:
/var/lib/dkms/ipt-netflow/2.3/build/ipt_NETFLOW.c: In function ‘register_ct_events’:
/var/lib/dkms/ipt-netflow/2.3/build/compat.h:173:21: error: implicit declaration of function ‘ref_module’; did you mean ‘use_module’? [-Werror=implicit-function-declaration]
 # define use_module ref_module
                     ^~~~~~~~~~
/var/lib/dkms/ipt-netflow/2.3/build/ipt_NETFLOW.c:5399:3: note: in expansion of macro ‘use_module’
   use_module(THIS_MODULE, netlink_m);
   ^~~~~~~~~~
cc1: some warnings being treated as errors
@streamthing
Copy link
Author

But works on 4.19.0-14-amd64

@xtaran
Copy link
Contributor

xtaran commented Jan 7, 2022

This is not an upstream issue but a Debian package issue. See https://bugs.debian.org/990123.

If you are able to build Debian packages yourself, please try the package in the buster branch in https://salsa.debian.org/debian/iptables-netflow/-/commits/buster as mentioned in https://bugs.debian.org/990739

@xtaran
Copy link
Contributor

xtaran commented Jan 7, 2022

I asked the Debian release team in July for the OK to go forward with the fix for buster, but only got a reply in December — which I admittedly noticed only very recently. See https://bugs.debian.org/990739 for the history of and for following the buster update.

@xtaran
Copy link
Contributor

xtaran commented Jan 7, 2022

@aabc: Feel free to add me as Assignee for this issue.

@streamthing
Copy link
Author

buster doesn't have version newer than 2.3-5 :(
https://packages.debian.org/buster/iptables-netflow-dkms

@xtaran
Copy link
Contributor

xtaran commented Jan 7, 2022

buster doesn't have version newer than 2.3-5 :( https://packages.debian.org/buster/iptables-netflow-dkms

That's my point. That's why I wrote "If you are able to build Debian packages yourself".

@streamthing
Copy link
Author

@xtaran Could you send fixed package to Debian? Or send information to Debian about update.

@streamthing
Copy link
Author

Temporaly solved by downgrade to 4.19.0-14-amd64

@streamthing
Copy link
Author

Any updates?

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