Project

General

Profile

Actions

Bug #688

closed

i386 build proper detect of HTPConfigParseParameters

Added by Peter Manev about 12 years ago. Updated almost 12 years ago.

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

Description

I just got an err building suricata on PPA on i386 Precise -
https://launchpadlibrarian.net/125935561/buildlog_ubuntu-precise-i386.suricata_1.4-4ubuntu4_FAILEDTOBUILD.txt.gz :

make[1]: Leaving directory `/build/buildd/suricata-1.4'
   dh_auto_build
make[1]: Entering directory `/build/buildd/suricata-1.4'
make  all-recursive
make[2]: Entering directory `/build/buildd/suricata-1.4'
Making all in src
make[3]: Entering directory `/build/buildd/suricata-1.4/src'
make  all-am
make[4]: Entering directory `/build/buildd/suricata-1.4/src'
gcc -DHAVE_CONFIG_H -I. -I..    -D_FORTIFY_SOURCE=2 -I/usr/include/nspr -I/usr/include/nss/ -DLOCAL_STATE_DIR=\"/var\" -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -DRELEASE -Wextra -Werror-implicit-function-declaration -fno-tree-pre -Wall -fno-strict-aliasing -Wno-unused-parameter -std=gnu99 -DNFQ -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H  -I/usr/include -DLIBPCAP_VERSION_MAJOR=1 -DHAVE_PCAP_SET_BUFF -DHAVE_LIBCAP_NG -c alert-debuglog.c
gcc -DHAVE_CONFIG_H -I. -I..    -D_FORTIFY_SOURCE=2 -I/usr/include/nspr -I/usr/include/nss/ -DLOCAL_STATE_DIR=\"/var\" -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -DRELEASE -Wextra -Werror-implicit-function-declaration -fno-tree-pre -Wall -fno-strict-aliasing -Wno-unused-parameter -std=gnu99 -DNFQ -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H  -I/usr/include -DLIBPCAP_VERSION_MAJOR=1 -DHAVE_PCAP_SET_BUFF -DHAVE_LIBCAP_NG -c alert-fastlog.c
gcc -DHAVE_CONFIG_H -I. -I..    -D_FORTIFY_SOURCE=2 -I/usr/include/nspr -I/usr/include/nss/ -DLOCAL_STATE_DIR=\"/var\" -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -DRELEASE -Wextra -Werror-implicit-function-declaration -fno-tree-pre -Wall -fno-strict-aliasing -Wno-unused-parameter -std=gnu99 -DNFQ -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H  -I/usr/include -DLIBPCAP_VERSION_MAJOR=1 -DHAVE_PCAP_SET_BUFF -DHAVE_LIBCAP_NG -c alert-pcapinfo.c
gcc -DHAVE_CONFIG_H -I. -I..    -D_FORTIFY_SOURCE=2 -I/usr/include/nspr -I/usr/include/nss/ -DLOCAL_STATE_DIR=\"/var\" -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -DRELEASE -Wextra -Werror-implicit-function-declaration -fno-tree-pre -Wall -fno-strict-aliasing -Wno-unused-parameter -std=gnu99 -DNFQ -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H  -I/usr/include -DLIBPCAP_VERSION_MAJOR=1 -DHAVE_PCAP_SET_BUFF -DHAVE_LIBCAP_NG -c alert-prelude.c
gcc -DHAVE_CONFIG_H -I. -I..    -D_FORTIFY_SOURCE=2 -I/usr/include/nspr -I/usr/include/nss/ -DLOCAL_STATE_DIR=\"/var\" -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -DRELEASE -Wextra -Werror-implicit-function-declaration -fno-tree-pre -Wall -fno-strict-aliasing -Wno-unused-parameter -std=gnu99 -DNFQ -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H  -I/usr/include -DLIBPCAP_VERSION_MAJOR=1 -DHAVE_PCAP_SET_BUFF -DHAVE_LIBCAP_NG -c alert-syslog.c
gcc -DHAVE_CONFIG_H -I. -I..    -D_FORTIFY_SOURCE=2 -I/usr/include/nspr -I/usr/include/nss/ -DLOCAL_STATE_DIR=\"/var\" -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -DRELEASE -Wextra -Werror-implicit-function-declaration -fno-tree-pre -Wall -fno-strict-aliasing -Wno-unused-parameter -std=gnu99 -DNFQ -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H  -I/usr/include -DLIBPCAP_VERSION_MAJOR=1 -DHAVE_PCAP_SET_BUFF -DHAVE_LIBCAP_NG -c alert-unified2-alert.c
gcc -DHAVE_CONFIG_H -I. -I..    -D_FORTIFY_SOURCE=2 -I/usr/include/nspr -I/usr/include/nss/ -DLOCAL_STATE_DIR=\"/var\" -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -DRELEASE -Wextra -Werror-implicit-function-declaration -fno-tree-pre -Wall -fno-strict-aliasing -Wno-unused-parameter -std=gnu99 -DNFQ -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H  -I/usr/include -DLIBPCAP_VERSION_MAJOR=1 -DHAVE_PCAP_SET_BUFF -DHAVE_LIBCAP_NG -c app-layer.c
gcc -DHAVE_CONFIG_H -I. -I..    -D_FORTIFY_SOURCE=2 -I/usr/include/nspr -I/usr/include/nss/ -DLOCAL_STATE_DIR=\"/var\" -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -DRELEASE -Wextra -Werror-implicit-function-declaration -fno-tree-pre -Wall -fno-strict-aliasing -Wno-unused-parameter -std=gnu99 -DNFQ -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H  -I/usr/include -DLIBPCAP_VERSION_MAJOR=1 -DHAVE_PCAP_SET_BUFF -DHAVE_LIBCAP_NG -c app-layer-dcerpc.c
gcc -DHAVE_CONFIG_H -I. -I..    -D_FORTIFY_SOURCE=2 -I/usr/include/nspr -I/usr/include/nss/ -DLOCAL_STATE_DIR=\"/var\" -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -DRELEASE -Wextra -Werror-implicit-function-declaration -fno-tree-pre -Wall -fno-strict-aliasing -Wno-unused-parameter -std=gnu99 -DNFQ -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H  -I/usr/include -DLIBPCAP_VERSION_MAJOR=1 -DHAVE_PCAP_SET_BUFF -DHAVE_LIBCAP_NG -c app-layer-dcerpc-udp.c
gcc -DHAVE_CONFIG_H -I. -I..    -D_FORTIFY_SOURCE=2 -I/usr/include/nspr -I/usr/include/nss/ -DLOCAL_STATE_DIR=\"/var\" -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -DRELEASE -Wextra -Werror-implicit-function-declaration -fno-tree-pre -Wall -fno-strict-aliasing -Wno-unused-parameter -std=gnu99 -DNFQ -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H  -I/usr/include -DLIBPCAP_VERSION_MAJOR=1 -DHAVE_PCAP_SET_BUFF -DHAVE_LIBCAP_NG -c app-layer-detect-proto.c
gcc -DHAVE_CONFIG_H -I. -I..    -D_FORTIFY_SOURCE=2 -I/usr/include/nspr -I/usr/include/nss/ -DLOCAL_STATE_DIR=\"/var\" -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -DRELEASE -Wextra -Werror-implicit-function-declaration -fno-tree-pre -Wall -fno-strict-aliasing -Wno-unused-parameter -std=gnu99 -DNFQ -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H  -I/usr/include -DLIBPCAP_VERSION_MAJOR=1 -DHAVE_PCAP_SET_BUFF -DHAVE_LIBCAP_NG -c app-layer-ftp.c
gcc -DHAVE_CONFIG_H -I. -I..    -D_FORTIFY_SOURCE=2 -I/usr/include/nspr -I/usr/include/nss/ -DLOCAL_STATE_DIR=\"/var\" -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -DRELEASE -Wextra -Werror-implicit-function-declaration -fno-tree-pre -Wall -fno-strict-aliasing -Wno-unused-parameter -std=gnu99 -DNFQ -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H  -I/usr/include -DLIBPCAP_VERSION_MAJOR=1 -DHAVE_PCAP_SET_BUFF -DHAVE_LIBCAP_NG -c app-layer-htp-body.c
gcc -DHAVE_CONFIG_H -I. -I..    -D_FORTIFY_SOURCE=2 -I/usr/include/nspr -I/usr/include/nss/ -DLOCAL_STATE_DIR=\"/var\" -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -DRELEASE -Wextra -Werror-implicit-function-declaration -fno-tree-pre -Wall -fno-strict-aliasing -Wno-unused-parameter -std=gnu99 -DNFQ -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H  -I/usr/include -DLIBPCAP_VERSION_MAJOR=1 -DHAVE_PCAP_SET_BUFF -DHAVE_LIBCAP_NG -c app-layer-htp.c
app-layer-htp.c: In function 'HTPConfigParseParameters':
app-layer-htp.c:2257:17: error: implicit declaration of function 'htp_config_set_path_decode_u_encoding' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[4]: *** [app-layer-htp.o] Error 1
make[4]: Leaving directory `/build/buildd/suricata-1.4/src'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/build/buildd/suricata-1.4/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/build/buildd/suricata-1.4'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/build/buildd/suricata-1.4'
dh_auto_build: make -j1 returned exit code 2
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
******************************************************************************
Build finished at 20121216-1601
FAILED [dpkg-buildpackage died]
*****************************************************************************
Actions #1

Updated by Peter Manev about 12 years ago

I just got an err building suricata on PPA on i386 Precise -
https://launchpadlibrarian.net/125935561/buildlog_ubuntu-precise-i386.suricata_1.4-4ubuntu4_FAILEDTOBUILD.txt.gz :

make[1]: Leaving directory `/build/buildd/suricata-1.4'
dh_auto_build
make[1]: Entering directory `/build/buildd/suricata-1.4'
make  all-recursive
make[2]: Entering directory `/build/buildd/suricata-1.4'
Making all in src
make[3]: Entering directory `/build/buildd/suricata-1.4/src'
make  all-am
make[4]: Entering directory `/build/buildd/suricata-1.4/src'
gcc -DHAVE_CONFIG_H -I. -I..    -D_FORTIFY_SOURCE=2 -I/usr/include/nspr -I/usr/include/nss/ -DLOCAL_STATE_DIR=\"/var\" -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -DRELEASE -Wextra -Werror-implicit-function-declaration -fno-tree-pre -Wall -fno-strict-aliasing -Wno-unused-parameter -std=gnu99 -DNFQ -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H  -I/usr/include -DLIBPCAP_VERSION_MAJOR=1 -DHAVE_PCAP_SET_BUFF -DHAVE_LIBCAP_NG -c alert-debuglog.c
gcc -DHAVE_CONFIG_H -I. -I..    -D_FORTIFY_SOURCE=2 -I/usr/include/nspr -I/usr/include/nss/ -DLOCAL_STATE_DIR=\"/var\" -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -DRELEASE -Wextra -Werror-implicit-function-declaration -fno-tree-pre -Wall -fno-strict-aliasing -Wno-unused-parameter -std=gnu99 -DNFQ -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H  -I/usr/include -DLIBPCAP_VERSION_MAJOR=1 -DHAVE_PCAP_SET_BUFF -DHAVE_LIBCAP_NG -c alert-fastlog.c
gcc -DHAVE_CONFIG_H -I. -I..    -D_FORTIFY_SOURCE=2 -I/usr/include/nspr -I/usr/include/nss/ -DLOCAL_STATE_DIR=\"/var\" -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -DRELEASE -Wextra -Werror-implicit-function-declaration -fno-tree-pre -Wall -fno-strict-aliasing -Wno-unused-parameter -std=gnu99 -DNFQ -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H  -I/usr/include -DLIBPCAP_VERSION_MAJOR=1 -DHAVE_PCAP_SET_BUFF -DHAVE_LIBCAP_NG -c alert-pcapinfo.c
gcc -DHAVE_CONFIG_H -I. -I..    -D_FORTIFY_SOURCE=2 -I/usr/include/nspr -I/usr/include/nss/ -DLOCAL_STATE_DIR=\"/var\" -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -DRELEASE -Wextra -Werror-implicit-function-declaration -fno-tree-pre -Wall -fno-strict-aliasing -Wno-unused-parameter -std=gnu99 -DNFQ -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H  -I/usr/include -DLIBPCAP_VERSION_MAJOR=1 -DHAVE_PCAP_SET_BUFF -DHAVE_LIBCAP_NG -c alert-prelude.c
gcc -DHAVE_CONFIG_H -I. -I..    -D_FORTIFY_SOURCE=2 -I/usr/include/nspr -I/usr/include/nss/ -DLOCAL_STATE_DIR=\"/var\" -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -DRELEASE -Wextra -Werror-implicit-function-declaration -fno-tree-pre -Wall -fno-strict-aliasing -Wno-unused-parameter -std=gnu99 -DNFQ -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H  -I/usr/include -DLIBPCAP_VERSION_MAJOR=1 -DHAVE_PCAP_SET_BUFF -DHAVE_LIBCAP_NG -c alert-syslog.c
gcc -DHAVE_CONFIG_H -I. -I..    -D_FORTIFY_SOURCE=2 -I/usr/include/nspr -I/usr/include/nss/ -DLOCAL_STATE_DIR=\"/var\" -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -DRELEASE -Wextra -Werror-implicit-function-declaration -fno-tree-pre -Wall -fno-strict-aliasing -Wno-unused-parameter -std=gnu99 -DNFQ -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H  -I/usr/include -DLIBPCAP_VERSION_MAJOR=1 -DHAVE_PCAP_SET_BUFF -DHAVE_LIBCAP_NG -c alert-unified2-alert.c
gcc -DHAVE_CONFIG_H -I. -I..    -D_FORTIFY_SOURCE=2 -I/usr/include/nspr -I/usr/include/nss/ -DLOCAL_STATE_DIR=\"/var\" -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -DRELEASE -Wextra -Werror-implicit-function-declaration -fno-tree-pre -Wall -fno-strict-aliasing -Wno-unused-parameter -std=gnu99 -DNFQ -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H  -I/usr/include -DLIBPCAP_VERSION_MAJOR=1 -DHAVE_PCAP_SET_BUFF -DHAVE_LIBCAP_NG -c app-layer.c
gcc -DHAVE_CONFIG_H -I. -I..    -D_FORTIFY_SOURCE=2 -I/usr/include/nspr -I/usr/include/nss/ -DLOCAL_STATE_DIR=\"/var\" -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -DRELEASE -Wextra -Werror-implicit-function-declaration -fno-tree-pre -Wall -fno-strict-aliasing -Wno-unused-parameter -std=gnu99 -DNFQ -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H  -I/usr/include -DLIBPCAP_VERSION_MAJOR=1 -DHAVE_PCAP_SET_BUFF -DHAVE_LIBCAP_NG -c app-layer-dcerpc.c
gcc -DHAVE_CONFIG_H -I. -I..    -D_FORTIFY_SOURCE=2 -I/usr/include/nspr -I/usr/include/nss/ -DLOCAL_STATE_DIR=\"/var\" -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -DRELEASE -Wextra -Werror-implicit-function-declaration -fno-tree-pre -Wall -fno-strict-aliasing -Wno-unused-parameter -std=gnu99 -DNFQ -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H  -I/usr/include -DLIBPCAP_VERSION_MAJOR=1 -DHAVE_PCAP_SET_BUFF -DHAVE_LIBCAP_NG -c app-layer-dcerpc-udp.c
gcc -DHAVE_CONFIG_H -I. -I..    -D_FORTIFY_SOURCE=2 -I/usr/include/nspr -I/usr/include/nss/ -DLOCAL_STATE_DIR=\"/var\" -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -DRELEASE -Wextra -Werror-implicit-function-declaration -fno-tree-pre -Wall -fno-strict-aliasing -Wno-unused-parameter -std=gnu99 -DNFQ -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H  -I/usr/include -DLIBPCAP_VERSION_MAJOR=1 -DHAVE_PCAP_SET_BUFF -DHAVE_LIBCAP_NG -c app-layer-detect-proto.c
gcc -DHAVE_CONFIG_H -I. -I..    -D_FORTIFY_SOURCE=2 -I/usr/include/nspr -I/usr/include/nss/ -DLOCAL_STATE_DIR=\"/var\" -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -DRELEASE -Wextra -Werror-implicit-function-declaration -fno-tree-pre -Wall -fno-strict-aliasing -Wno-unused-parameter -std=gnu99 -DNFQ -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H  -I/usr/include -DLIBPCAP_VERSION_MAJOR=1 -DHAVE_PCAP_SET_BUFF -DHAVE_LIBCAP_NG -c app-layer-ftp.c
gcc -DHAVE_CONFIG_H -I. -I..    -D_FORTIFY_SOURCE=2 -I/usr/include/nspr -I/usr/include/nss/ -DLOCAL_STATE_DIR=\"/var\" -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -DRELEASE -Wextra -Werror-implicit-function-declaration -fno-tree-pre -Wall -fno-strict-aliasing -Wno-unused-parameter -std=gnu99 -DNFQ -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H  -I/usr/include -DLIBPCAP_VERSION_MAJOR=1 -DHAVE_PCAP_SET_BUFF -DHAVE_LIBCAP_NG -c app-layer-htp-body.c
gcc -DHAVE_CONFIG_H -I. -I..    -D_FORTIFY_SOURCE=2 -I/usr/include/nspr -I/usr/include/nss/ -DLOCAL_STATE_DIR=\"/var\" -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -DRELEASE -Wextra -Werror-implicit-function-declaration -fno-tree-pre -Wall -fno-strict-aliasing -Wno-unused-parameter -std=gnu99 -DNFQ -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H  -I/usr/include -DLIBPCAP_VERSION_MAJOR=1 -DHAVE_PCAP_SET_BUFF -DHAVE_LIBCAP_NG -c app-layer-htp.c
app-layer-htp.c: In function 'HTPConfigParseParameters':
app-layer-htp.c:2257:17: error: implicit declaration of function 'htp_config_set_path_decode_u_encoding' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[4]: *** [app-layer-htp.o] Error 1
make[4]: Leaving directory `/build/buildd/suricata-1.4/src'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/build/buildd/suricata-1.4/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/build/buildd/suricata-1.4'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/build/buildd/suricata-1.4'
dh_auto_build: make -j1 returned exit code 2
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
******************************************************************************
Build finished at 20121216-1601
FAILED [dpkg-buildpackage died]
*****************************************************************************
Actions #2

Updated by Victor Julien about 12 years ago

  • Description updated (diff)
Actions #3

Updated by Victor Julien about 12 years ago

  • Status changed from New to Assigned
  • Assignee set to Eric Leblond
  • Target version set to 1.4.1
  • Estimated time set to 1.00 h

The error above was the result of building against libhtp 0.2.6 instead of 0.2.11. Apparently the htp_config_set_path_decode_u_encoding function was missing. We need a fatal configure check for that htp function.

Actions #4

Updated by Eric Leblond almost 12 years ago

Official htp/htp.h was not containing the declaration of 'htp_config_set_path_decode_u_encoding' before 3.0. This result in a problem when compiling with an external libhtp lib with -Werror=implicit-function-declaration].
For the reference, in embedded htp version this has been fixed by Victor Julien in ef52ba8f dating from 2012-03-22 12:33:57 +0100.

So we need at least 0.3.0 for an external build. Is it safe to assume suricata will work with an 0.3.0 version ?

Actions #5

Updated by Victor Julien almost 12 years ago

0.3.0 is not supported.

The htp_config_set_path_decode_u_encoding function is part of 0.2.11 which we distribute and also bundle. So the check should make sure it is present, so that ppl using older htp versions get an error in the configure stage.

Actions #6

Updated by Eric Leblond almost 12 years ago

  • % Done changed from 0 to 80

Ok, no 0.3.0 then. So if we sum up suricata needs a 0.2.x version which is able to use htp_config_set_path_decode_u_encoding function.

If I checked HTP code correctly, this means only OISF distributed HTP version will work. I've pushed a workaround in PR https://github.com/inliniac/suricata/pull/286

Actions #7

Updated by Victor Julien almost 12 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 80 to 100
Actions

Also available in: Atom PDF