<p>Did you do make install on the htp library?</p>
<p><blockquote type="cite">El 1 de ene de 2010, 10:21 p.m., "rmkml" <<a href="mailto:rmkml@free.fr">rmkml@free.fr</a>> escribió:<br><br>Hi,<br>
Congratulations and Happy New Year!<br>
I have a pb for compil suricata v0.8.0 (<a href="http://www.openinfosecfoundation.org/download/suricata-current.tar.gz" target="_blank">http://www.openinfosecfoundation.org/download/suricata-current.tar.gz</a>)<br>
<br>
wget <a href="http://www.openinfosecfoundation.org/download/htp-current.tar.gz" target="_blank">http://www.openinfosecfoundation.org/download/htp-current.tar.gz</a><br>
 tar -xzvf htp-current.tar.gz<br>
 cd htp-<version><br>
 ./configure<br>
 make<br>
 make check<br>
<br>
wget <a href="http://pyyaml.org/download/libyaml/yaml-0.1.3.tar.gz" target="_blank">http://pyyaml.org/download/libyaml/yaml-0.1.3.tar.gz</a><br>
 tar xzf yaml-0.1.3.tar.gz<br>
 ./configure<br>
 make<br>
 make check<br>
<br>
tar xzf suricata-0.8.0_current.tar.gz<br>
./configure --with-libhtp-includes=../htp-0.2.1 --with-libhtp-libraries=../htp-0.2.1/htp/.libs --with-libyaml-includes=../yaml-0.1.3/include --with-libyaml-libraries=../yaml-0.1.3/src/.libs<br>
make<br>
...<br>
gcc -DHAVE_CONFIG_H -I. -I..   -I../yaml-0.1.3/include -I../htp-0.2.1  -g -O2 -Wall -fno-strict-aliasing -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBPCAP_VERSION_MAJOR=0 -MT suricata.o -MD -MP -MF .deps/suricata.Tpo -c -o suricata.o suricata.c<br>

In file included from suricata.c:69:<br>
app-layer-htp.h:26: erreur: expected specifier-qualifier-list before ‘htp_connp_t’<br>
app-layer-htp.h:31: erreur: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token<br>
suricata.c: In function ‘main’:<br>
suricata.c:298: attention : unused variable ‘regex_arg’<br>
...<br>
<br>
<br>
ok fixed by commented this line on src/app-layer-htp.h :<br>
 //#include <htp/htp.h><br>
<br>
 //typedef struct HtpState_ {<br>
 //    htp_connp_t *connp; /**< Connection parser structure for each connection */<br>
 //    uint8_t flags;<br>
 //} HtpState;<br>
 //htp_cfg_t *cfg; /**< Config structure for HTP library */<br>
<br>
Are you sure "HtpState_" need "_" ?<br>
<br>
compil more but new errors:<br>
gcc -DHAVE_CONFIG_H -I. -I..   -I../yaml-0.1.3/include -I../htp-0.2.1  -g -O2 -Wall -fno-strict-aliasing -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBPCAP_VERSION_MAJOR=0 -MT detect-http-cookie.o -MD -MP -MF .deps/detect-http-cookie.Tpo -c -o detect-http-cookie.o detect-http-cookie.c<br>

detect-http-cookie.c: In function ‘DetectHttpCookieMatch’:<br>
detect-http-cookie.c:82: erreur: ‘HtpState’ undeclared (first use in this function)<br>
detect-http-cookie.c:82: erreur: (Each undeclared identifier is reported only once<br>
detect-http-cookie.c:82: erreur: for each function it appears in.)<br>
detect-http-cookie.c:82: erreur: ‘htp_state’ undeclared (first use in this function)<br>
detect-http-cookie.c:82: erreur: expected expression before ‘)’ token<br>
detect-http-cookie.c:102: erreur: ‘htp_tx_t’ undeclared (first use in this function)<br>
detect-http-cookie.c:102: erreur: ‘tx’ undeclared (first use in this function)<br>
detect-http-cookie.c:102: attention : implicit declaration of function ‘list_get’<br>
detect-http-cookie.c:108: erreur: ‘htp_header_t’ undeclared (first use in this function)<br>
detect-http-cookie.c:108: erreur: ‘h’ undeclared (first use in this function)<br>
detect-http-cookie.c:109: erreur: expected expression before ‘)’ token<br>
detect-http-cookie.c:117: attention : implicit declaration of function ‘bstr_ptr’<br>
detect-http-cookie.c:117: attention : implicit declaration of function ‘bstr_size’<br>
...<br>
<br>
and on src/app-layer-htp.c, why<br>
 HTPParserTest01() use htp_state<br>
 HTPParserTest02() use http_state<br>
 HTPParserTest03() use htp_state<br>
 HTPParserTest04() use htp_state<br>
 HTPParserTest05() use http_state<br>
two htp_state and http_state ? or it's a bug ?<br>
<br>
Regards<br><font color="#888888">
Rmkml<br>
Crusoe-Researches.com</font><br>_______________________________________________<br>
Oisf-devel mailing list<br>
<a href="mailto:Oisf-devel@openinfosecfoundation.org">Oisf-devel@openinfosecfoundation.org</a><br>
<a href="http://lists.openinfosecfoundation.org/mailman/listinfo/oisf-devel" target="_blank">http://lists.openinfosecfoundation.org/mailman/listinfo/oisf-devel</a><br>
<br></blockquote></p>