You are not logged in.
I'm getting this error for the second time when I do full upgrade > pacman -Syyu
dkms install --no-depmod -m pfring -v 2855.2ba454aa -k 5.9.2-arch1-1
Error! Bad return status for module build on kernel: 5.9.2-arch1-1 (x86_64)
Consult /var/lib/dkms/pfring/2855.2ba454aa/build/make.log for more information.
==> Warning, `dkms install --no-depmod -m pfring -v 2855.2ba454aa -k 5.9.2-arch1-1' returned 10
and this is the content of the make.log file
DKMS make.log for pfring-2855.2ba454aa for kernel 5.9.2-arch1-1 (x86_64)
Sun Nov 1 02:20:15 PM +03 2020
make -C /lib/modules/5.9.2-arch1-1/build M=/var/lib/dkms/pfring/2855.2ba454aa/build EXTRA_CFLAGS='-I/var/lib/dkms/pfring/2855.2ba454aa/
build -no-pie -fno-pie -Wno-implicit-fallthrough' modules
make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
make[1]: Entering directory '/usr/lib/modules/5.9.2-arch1-1/build'
CC [M] /var/lib/dkms/pfring/2855.2ba454aa/build/pf_ring.o
/var/lib/dkms/pfring/2855.2ba454aa/build/pf_ring.c: In function ‘ring_setsockopt’:
/var/lib/dkms/pfring/2855.2ba454aa/build/pf_ring.c:7554:48: error: incompatible type for argument 4 of ‘sock_setsockopt’
7554 | return(sock_setsockopt(sock, level, optname, optval, optlen));
| ^~~~~~
| |
| char *
In file included from ./include/linux/tcp.h:19,
from ./include/linux/ipv6.h:88,
from /var/lib/dkms/pfring/2855.2ba454aa/build/pf_ring.c:91:
./include/net/sock.h:1677:17: note: expected ‘sockptr_t’ but argument is of type ‘char *’
1677 | sockptr_t optval, unsigned int optlen);
| ~~~~~~~~~~^~~~~~
/var/lib/dkms/pfring/2855.2ba454aa/build/pf_ring.c: At top level:
/var/lib/dkms/pfring/2855.2ba454aa/build/pf_ring.c:8179:17: error: initialization of ‘int (*)(struct socket *, int, int, sockptr_t, unsigned int)’ from incompatible pointer type ‘int (*)(struct socket *, int, int, char *, unsigned int)’ [-Werror=incompatible-pointer-types]
8179 | .setsockopt = ring_setsockopt,
| ^~~~~~~~~~~~~~~
/var/lib/dkms/pfring/2855.2ba454aa/build/pf_ring.c:8179:17: note: (near initialization for ‘ring_ops.setsockopt’)
/var/lib/dkms/pfring/2855.2ba454aa/build/pf_ring.c: In function ‘ring_setsockopt’:
/var/lib/dkms/pfring/2855.2ba454aa/build/pf_ring.c:7555:1: warning: control reaches end of non-void function [-Wreturn-type]
7555 | }
| ^
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:283: /var/lib/dkms/pfring/2855.2ba454aa/build/pf_ring.o] Error 1
make[1]: *** [Makefile:1784: /var/lib/dkms/pfring/2855.2ba454aa/build] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.9.2-arch1-1/build'
make: *** [Makefile:67: all] Error 2
although everything seems to be working correctly after the upgrade is done, I'd appreciate if someone can explain to me what is the problem in pf_ring.c file?
once upon a time, I was young and innocent
Offline
It would help if we could see the source .
neither pfring nor pf_ring are found in repos. aur has 3 pfring and 2 pf_ring packages, but they all look obsolete and don't use dkms.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
(A works at time B) && (time C > time B ) ≠ (A works at time C)
Offline
It would help if we could see the source .
neither pfring nor pf_ring are found in repos. aur has 3 pfring and 2 pf_ring packages, but they all look obsolete and don't use dkms.
I'm not sure if this is the right place to report this issue , I checked the package info
[sam@archsam ~]$ pacman -Qt|grep pfring
libpfring 2:7.6.0.r48.gb5d63335-1
[sam@archsam ~]$ pacman -Q --info pfring
error: package 'pfring' was not found
[sam@archsam ~]$ pacman -Q --info libpfring
Name : libpfring
Version : 2:7.6.0.r48.gb5d63335-1
Description : Library to interface with the PF_RING kernel module.
Architecture : x86_64
URL : https://github.com/ntop/PF_RING
Licenses : LGPL
Groups : None
Provides : None
Depends On : numactl pfring-dkms
Optional Deps : None
Required By : None
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 1733.08 KiB
Packager : Levon Kayan <noptrix@nullsecurity.net>
Build Date : Mon 26 Oct 2020 04:53:11 AM +03
Install Date : Mon 26 Oct 2020 10:52:29 PM +03
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature
so I will report this problem to the developer's repo on github
once upon a time, I was young and innocent
Offline