Project

General

Profile

Actions

Bug #3090

open

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

Added by Peter Manev about 3 years ago. Updated about 3 years ago.

Status:
Assigned
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
Actions #1

Updated by Andreas Herz about 3 years ago

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

Also available in: Atom PDF