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

Can't make on 4.9 kernel. #85

Closed
GizmoV opened this issue Dec 1, 2017 · 8 comments
Closed

Can't make on 4.9 kernel. #85

GizmoV opened this issue Dec 1, 2017 · 8 comments
Assignees

Comments

@GizmoV
Copy link

@GizmoV GizmoV commented Dec 1, 2017

/usr/src/ipt-netflow-2.2# make all
Compiling for kernel 4.9.51-v-ndpi+imq
make -C /lib/modules/4.9.51-v-ndpi+imq/build M=/usr/src/ipt-netflow-2.2 modules CONFIG_DEBUG_INFO=y
make[1]: Entering directory '/usr/src/linux-source-4.9'
CC [M] /usr/src/ipt-netflow-2.2/ipt_NETFLOW.o
/usr/src/ipt-netflow-2.2/ipt_NETFLOW.c: In function ‘ethtool_drvinfo’:
/usr/src/ipt-netflow-2.2/ipt_NETFLOW.c:3936:7: error: implicit declaration of function ‘__ethtool_get_settings’ [-Werror=implicit-function-declaration]
!__ethtool_get_settings(dev, &ecmd)) {
^~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
scripts/Makefile.build:304: recipe for target '/usr/src/ipt-netflow-2.2/ipt_NETFLOW.o' failed
make[2]: *** [/usr/src/ipt-netflow-2.2/ipt_NETFLOW.o] Error 1
Makefile:1510: recipe for target 'module/usr/src/ipt-netflow-2.2' failed
make[1]: *** [module/usr/src/ipt-netflow-2.2] Error 2
make[1]: Leaving directory '/usr/src/linux-source-4.9'
Makefile:24: recipe for target 'ipt_NETFLOW.ko' failed
make: *** [ipt_NETFLOW.ko] Error 2

@GizmoV
Copy link
Author

@GizmoV GizmoV commented Dec 1, 2017

But all work's fine grom GIT.

@aabc
Copy link
Owner

@aabc aabc commented Dec 1, 2017

4.9 wasn't existed when 2.2 was released, so kindly use git.

@k0ste
Copy link

@k0ste k0ste commented Dec 6, 2017

4.6, 4.10 and 4.13. So may be new release and close this issues?

@aabc
Copy link
Owner

@aabc aabc commented Dec 6, 2017

What '4.6, 4.10 and 4.13'?

@k0ste
Copy link

@k0ste k0ste commented Dec 6, 2017

Unable to make release (v2.2) on this kernel versions.

@tylerjl
Copy link

@tylerjl tylerjl commented Dec 8, 2017

Howdy; I'm not sure whether you'd prefer a new issue for this or not, but here's the dkms install error message when attempting to install the module on kernel 4.14.4:

In file included from /var/lib/dkms/ipt-netflow/r330.7f25426/build/ipt_NETFLOW.c:76:0:
/var/lib/dkms/ipt-netflow/r330.7f25426/build/ipt_NETFLOW.h:197:2: error: redeclaration of enumerator 'SCOPE_SYSTEM'
  SCOPE_SYSTEM = 1,
  ^~~~~~~~~~~~
In file included from ./arch/arm64/include/asm/hw_breakpoint.h:20:0,
                 from ./arch/arm64/include/asm/processor.h:34,
                 from ./arch/arm64/include/asm/spinlock.h:21,
                 from ./include/linux/spinlock.h:88,
                 from ./include/linux/seqlock.h:36,
                 from ./include/linux/time.h:6,
                 from ./include/linux/stat.h:19,
                 from ./include/linux/module.h:10,
                 from /var/lib/dkms/ipt-netflow/r330.7f25426/build/ipt_NETFLOW.c:21:
./arch/arm64/include/asm/cpufeature.h:89:2: note: previous definition of 'SCOPE_SYSTEM' was here
  SCOPE_SYSTEM,
  ^~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:321: /var/lib/dkms/ipt-netflow/r330.7f25426/build/ipt_NETFLOW.o] Error 1
make[1]: *** [Makefile:1503: _module_/var/lib/dkms/ipt-netflow/r330.7f25426/build] Error 2

I'd love to be able to use this module, it really looks great! Thanks for still working to maintain compatibility with the latest kernels.

@aabc aabc self-assigned this Dec 8, 2017
aabc added a commit that referenced this issue Dec 9, 2017
Thanks to tylerjl@github for the report. (Issue #85.)
@tylerjl
Copy link

@tylerjl tylerjl commented Dec 15, 2017

@aabc I built a new module from 0565def and can confirm the module works flawlessly on arm64 (specifically I'm on an espressobin). Thank you so much for resolving it so quickly, I really appreciate it!

@aabc
Copy link
Owner

@aabc aabc commented Dec 15, 2017

Thanks.

@aabc aabc closed this Dec 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants