Project

General

Profile

Actions

Bug #3090

closed

pfring compile err - openSUSE Tumbleweed , Ubuntu Eoan/ Debian unstable

Added by Peter Manev over 5 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Affected Versions:
Effort:
Difficulty:
Label:

Description

Using latest git - 7ccf14bc60e9d35032c8347a9f337ba5406ca593 - I see the same err on openSUSE Tumbleweed, Ubuntu Eoan/devel and Debian unstable
Not sure if this is an early warning as these systems/OSs are basically not stable/in testing.


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-nflog --enable-lua --enable-pfring \
--disable-gccmarch-native --enable-hiredis \
&& make

..
..

  CC       source-erf-file.o
  CC       source-ipfw.o
  CC       source-napatech.o
  CC       source-netmap.o
  CC       source-nfq.o
  CC       source-nflog.o
  CC       source-pcap.o
  CC       source-pcap-file.o
  CC       source-pcap-file-directory-helper.o
  CC       source-pcap-file-helper.o
  CC       source-pfring.o
source-pfring.c:236:41: error: taking address of packed member 'ts' of class or structure 'pfring_pkthdr' may result in an unaligned pointer value [-Werror,-Waddress-of-packed-member]
        gettimeofday((struct timeval *)&h->ts, NULL);
                                        ^~~~~
1 error generated.
make[2]: *** [Makefile:2110: source-pfring.o] Error 1
make[2]: Leaving directory '/opt/QA/sources/suricata/src'
make[1]: *** [Makefile:497: all-recursive] Error 1
make[1]: Leaving directory '/opt/QA/sources/suricata'
make: *** [Makefile:423: all] Error 2

Related issues 1 (0 open1 closed)

Is duplicate of Suricata - Bug #5818: time: integer comparison with different signsClosedJeff LucovskyActions
Actions #1

Updated by Andreas Herz over 5 years ago

  • Status changed from New to Assigned
  • Assignee set to OISF Dev
  • Target version set to TBD
Actions #2

Updated by Victor Julien over 1 year ago

  • Is duplicate of Bug #5818: time: integer comparison with different signs added
Actions #3

Updated by Victor Julien over 1 year ago

  • Status changed from Assigned to Closed
Actions #4

Updated by Victor Julien over 1 year ago

  • Assignee deleted (OISF Dev)
  • Target version deleted (TBD)
Actions

Also available in: Atom PDF