Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
install suricata on openbsd-current
## adopted from
doas pkg_add gcc git libtool pcre jansson libmagic libyaml
## version strings might change like patchlevel and stuff
doas pkg_add libnet- autoconf-2.69p2 automake-1.14.1p0
git clone --depth 1 git://
cd oisf
git clone --depth 1 -b 0.5.x
CPPFLAGS="-I/usr/local/include" CFLAGS="-L/usr/local/lib" ./configure --prefix=/usr/local --sysconfdir=/etc/ --localstatedir=/var/ --enable-python --enable-gccmarch-native --enable-gccprotect
doas make install install-conf install-rules
suricata -V
# This is Suricata version 3.2dev

This comment has been minimized.

Copy link

@vikerian vikerian commented Apr 11, 2017

Got still this problem, seems to me there is some miscall in libhtp...

defrag-hash.o: In function DefragInitConfig': defrag-hash.c:(.text+0x793): warning: warning: rand_r() is not random, it is deterministic. /usr/local/lib/ warning: warning: strcpy() is almost always misused, please use strlcpy() /usr/local/lib/ warning: warning: sprintf() is often misused, please use snprintf() app-layer-htp.o: In function HTPConfigSetDefaultsPhase2':
app-layer-htp.c:(.text+0x4645): warning: warning: random() may return deterministic values, is that what you want?
app-layer-htp.o: In function HTPConfigParseParameters': app-layer-htp.c:(.text+0x59f2): undefined reference to htp_config_set_response_decompression_layer_limit'
collect2: ld returned 1 exit status
*** Error 1 in src (Makefile:1157 'suricata': @echo " CCLD " suricata;/bin/sh ../libtool --silent --tag=CC --mode=link gcc -march=nat...)
*** Error 1 in src (Makefile:1071 'all')
*** Error 1 in . (Makefile:492 'all-recursive')
*** Error 1 in /root/_build/oisf (Makefile:396 'all')


This comment has been minimized.

Copy link
Owner Author

@gretel gretel commented May 30, 2017

@vikerian cant confirm your issue on my side. did you checkout the right branch of libhtp?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.