Bug #1252
closedDebian Build failure
Description
On a Debian 5.0.5 MIPS machine suricata-2.0.2 build failed with following error
source-ipfw.c: In function 'ReceiveIPFWThreadInit':
source-ipfw.c:342: error: 'IPPROTO_DIVERT' undeclared (first use in this function)
source-ipfw.c:342: error: (Each undeclared identifier is reported only once
source-ipfw.c:342: error: for each function it appears in.)
make3: * [source-ipfw.o] Error 1
make3: Leaving directory `/root/suricata-2.0.2/src'
make2: [all] Error 2
make2: Leaving directory `/root/suricata-2.0.2/src'
make1: [all-recursive] Error 1
make1: Leaving directory `/root/suricata-2.0.2'
make: * [all] Error 2
Followed instructions per Reference: https://redmine.openinfosecfoundation.org/projects/suricata/wiki/Debian_Installation with some additional options.
apt-get install libpcre3 libpcre3-dbg libpcre3-dev build-essential autoconf automake libtool libpcap-dev libnet1-dev libyaml-0-2 libyaml-dev zlib1g zlib1g-dev libmagic-dev libcap-ng-dev pkg-config libnetfilter-queue-dev libnetfilter-queue1 libnfnetlink-dev libnfnetlink0
apt-get install libnetfilter-log-dev
apt-get install lua5.1 lua5.1-dev liblua5.1-0-dbg liblua5.1-0-dev
apt-get install libgeoip-dev
./configure --enable-unittests --enable-old-barnyard2 --enable-debug --enable-profiling --enable-ipfw --enable-nfqueue --enable-nflog --enable-af-packet --enable-lua --enable-geoip --prefix=/usr --sysconfdir=/etc --localstatedir=/var
make
apt-get could not get libcap-ng-dev - not available for debian 5.0.5
Updated by Victor Julien almost 11 years ago
The option --enable-ipfw is meant for FreeBSD and OS X, did you enable it intentionally?
Debian 5 is ancient btw.
Updated by Raghunath Iyer almost 11 years ago
I understand Debian 5 is ancient. The embedded platform that I am using provides this version as their stock version. Upgrading to newer versions is a tall exercise in itself.
I did enable ipfw intentionally assuming I will test with Diverts. Did not realise this is only for FreeBSD and OS X. This issue can be closed.
BTW - after turning off this option - I have another error in util-profiling.c