Actions
Bug #3089
closedFedora rawhide af-packet compilation err
Affected Versions:
Effort:
Difficulty:
Label:
Needs backport
Description
using latest git ( 7ccf14bc60e9d35032c8347a9f337ba5406ca593 ) I only see this warning on Fedora Rawhide
git clone https://github.com/OISF/suricata.git && cd suricata && git clone https://github.com/OISF/libhtp.git -b 0.5.x && \
./autogen.sh && \
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
CC=clang CFLAGS="-ggdb3 -Werror -Wchar-subscripts -fno-strict-aliasing -fstack-protector-all -fsanitize=address -fno-omit-frame-pointer -Wno-unused-parameter -Wno-unused-function" ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes \
--enable-unittests --enable-debug --enable-profiling \
--enable-nfqueue --enable-nflog \
--enable-lua --disable-gccmarch-native --enable-hiredis \
&& make
..
..
CC runmode-unittests.o
CC runmode-unix-socket.o
CC runmode-windivert.o
CC runmodes.o
CC source-af-packet.o
source-af-packet.c: In function ‘AFPRead’:
source-af-packet.c:650:28: error: ‘SIOCGSTAMP’ undeclared (first use in this function); did you mean ‘SIOCGARP’?
650 | if (ioctl(ptv->socket, SIOCGSTAMP, &p->ts) == -1) {
| ^~~~~~~~~~
| SIOCGARP
source-af-packet.c:650:28: note: each undeclared identifier is reported only once for each function it appears in
source-af-packet.c: In function ‘AFPReadAndDiscard’:
source-af-packet.c:1316:28: error: ‘SIOCGSTAMP’ undeclared (first use in this function); did you mean ‘SIOCGARP’?
1316 | if (ioctl(ptv->socket, SIOCGSTAMP, &ts) == -1) {
| ^~~~~~~~~~
| SIOCGARP
make[2]: *** [Makefile:2110: source-af-packet.o] Error 1
make[2]: Leaving directory '/opt/QA/suricata/src'
make[1]: *** [Makefile:497: all-recursive] Error 1
make[1]: Leaving directory '/opt/QA/suricata'
make: *** [Makefile:423: all] Error 2
Actions