Project

General

Profile

Actions

Bug #3089

closed

Fedora rawhide af-packet compilation err

Added by Peter Manev almost 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
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

Related issues 1 (0 open1 closed)

Copied to Bug #3094: Fedora rawhide af-packet compilation err (4.1.x)ClosedEric LeblondActions
Actions #2

Updated by Victor Julien almost 4 years ago

  • Status changed from New to Assigned
  • Assignee set to Eric Leblond
Actions #3

Updated by Eric Leblond almost 4 years ago

It seems we are suffering from that: https://github.com/linux-can/can-utils/pull/147

Actions #4

Updated by Andreas Herz almost 4 years ago

  • Target version set to TBD
Actions #5

Updated by Victor Julien almost 4 years ago

  • Label Needs backport added

Needs backport to 4.1.x

Actions #6

Updated by Victor Julien almost 4 years ago

  • Copied to Bug #3094: Fedora rawhide af-packet compilation err (4.1.x) added
Actions #7

Updated by Victor Julien almost 4 years ago

  • Status changed from Assigned to Closed
  • Target version changed from TBD to 5.0rc1
Actions

Also available in: Atom PDF