Project

General

Profile

Actions

Bug #2045

closed

geoip: compile warning on CentOS 7

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

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

Description

Using Suricata 4.0dev (rev 89ba581) on CentOS 7

    ./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" \
    --enable-unittests --enable-debug --enable-profiling \
    --enable-nfqueue --enable-nflog --enable-pfring --enable-netmap \
    --enable-lua --disable-gccmarch-native --enable-hiredis --enable-geoip \
    --with-netmap-includes=/tmp/sqard/netmap/sys/ \
    --with-libpfring-includes=/usr/local/pfring/include/ \
    --with-libpfring-libraries=/usr/local/pfring/lib/


make clean && make -> ERRs with
  CC       detect-fragoffset.o
  CC       detect-ftpbounce.o
  CC       detect-geoip.o
detect-geoip.c:78:40: error: incompatible pointer types assigning to 'int (*)(ThreadVars *, DetectEngineThreadCtx *, Packet *, const Signature *, const SigMatchCtx *)' from 'int (ThreadVars *, DetectEngineThreadCtx *, Packet *, Signature *, const SigMatchCtx *)' [-Werror,-Wincompatible-pointer-types]
    sigmatch_table[DETECT_GEOIP].Match = DetectGeoipMatch;
                                       ^ ~~~~~~~~~~~~~~~~
1 error generated.
Actions #1

Updated by Victor Julien about 7 years ago

  • Subject changed from Incompatible pointer types err during compile on CentOS 7 to geoip: compile warning on CentOS 7
  • Target version set to 70
Actions #2

Updated by Peter Manev about 7 years ago

Also seen on Trusty.

Actions #3

Updated by Victor Julien about 7 years ago

  • Status changed from New to Assigned
  • Assignee set to Victor Julien
Actions #4

Updated by Victor Julien about 7 years ago

  • Status changed from Assigned to Closed
  • Target version changed from 70 to 4.0beta1
Actions

Also available in: Atom PDF