Project

General

Profile

Actions

Bug #2838

closed

4.1.x gcc 9 compilation warnings

Added by Jason Taylor almost 6 years ago. Updated over 5 years ago.

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

Description

With Fedora 30 there was a migration to gcc 9.

In reviewing the build logs it looks like there are new warnings. A snippet of the log entries (full log is attached):
make2: Leaving directory '/builddir/build/BUILD/suricata-4.1.2/src'
BUILDSTDERR: In file included from decode.h:81,
BUILDSTDERR: from detect-engine-alert.h:28,
BUILDSTDERR: from suricata-common.h:453,
BUILDSTDERR: from alert-unified2-alert.c:30:
BUILDSTDERR: alert-unified2-alert.c: In function 'Unified2PrintStreamSegmentCallback':
BUILDSTDERR: decode-ipv6.h:54:51: warning: taking address of packed member of 'struct IPV6Hdr_' may result in an unaligned pointer value [-Waddress-of-packed-member]
BUILDSTDERR: 54 | #define s_ip6_addrs ip6_hdrun2.ip6_addrs
BUILDSTDERR: alert-unified2-alert.c:581:60: note: in expansion of macro 's_ip6_addrs'
BUILDSTDERR: 581 | fakehdr->tcph.th_sum = TCPV6Checksum(fakehdr->ip6h.s_ip6_addrs,
BUILDSTDERR: | ^~~~~~~~~
BUILDSTDERR: alert-unified2-alert.c:582:29: warning: taking address of packed member of 'struct _FakeIPv6Hdr' may result in an unaligned pointer value [-Waddress-of-packed-member]


Files

build.log (274 KB) build.log Jason Taylor, 02/20/2019 02:13 PM
Actions #1

Updated by Andreas Herz almost 6 years ago

  • Assignee set to OISF Dev
  • Target version set to TBD
Actions #2

Updated by Victor Julien over 5 years ago

  • Status changed from New to Assigned
  • Assignee changed from OISF Dev to Victor Julien
  • Priority changed from Low to Normal
  • Target version changed from TBD to 5.0beta1
Actions #3

Updated by Victor Julien over 5 years ago

  • Status changed from Assigned to Closed
Actions

Also available in: Atom PDF