Project

General

Profile

Actions

Bug #2045

closed

geoip: compile warning on CentOS 7

Added by Peter Manev over 7 years ago. Updated over 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

Also available in: Atom PDF