[Oisf-users] Suricata on OpenBSD

Will Metcalf william.metcalf at gmail.com
Mon Jun 7 17:41:51 UTC 2010


Thats a pretty old version of gcc, but you can try to remove and
unsupported flags from libhtp/htp/Makefile.am and then make clean and
then ./autogen.sh && ./configure && make

AM_CFLAGS = -D_GNU_SOURCE -g -O2 -Wall -Wextra -std=gnu99 -pedantic

Regards,

Will

On Mon, Jun 7, 2010 at 12:31 PM, Mikael <info at prowling.nu> wrote:
> Hi Will,
>
>
> -------------
> # gcc -v
> Reading specs from /usr/lib/gcc-lib/i386-unknown-openbsd4.6/3.3.5/specs
> Configured with:
> Thread model: single
> gcc version 3.3.5 (propolice)
> -------------
>
> And yes it might be a RTFM case, as the doc said gcc 4.5.x for FreeBSD...
>
> /Mikael
>
>
>
> On 6/7/10 7:23 PM, Will Metcalf wrote:
>> hmmm what version of gcc do you have?
>>
>> Regards,
>>
>> Will
>>
>> On Mon, Jun 7, 2010 at 12:02 PM, Mikael <info at prowling.nu> wrote:
>>> Hi,
>>>
>>> I just wanted to know if anyone has gotten Suricata / htp to work on
>>> OpenBSD (4.6).
>>>
>>> I think I have gotten pretty close but the compilation of htp fails.. =)
>>>
>>> -------
>>> # make
>>> make  all-recursive
>>> Making all in libhtp
>>> CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh
>>> /root/suricata-0.9.1/missing --run autoconf
>>> Provide an AUTOCONF_VERSION environment variable, please
>>> make  all-recursive
>>> Making all in htp
>>> cd .. && make  am--refresh
>>> /bin/sh ../libtool --tag=CC    --mode=compile gcc -DHAVE_CONFIG_H -I.
>>> -I.. -I. -I..    -D_GNU_SOURCE -g -O2 -Wall -Wextra -std=gnu99 -pedantic
>>> -DHTP_DEBUG -MT bstr.lo -MD -MP -MF .deps/bstr.Tpo -c -o bstr.lo bstr.c
>>> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I. -I.. -D_GNU_SOURCE
>>> -g -O2 -Wall -Wextra -std=gnu99 -pedantic -DHTP_DEBUG -MT bstr.lo -MD
>>> -MP -MF .deps/bstr.Tpo -c bstr.c  -fPIC -DPIC -o .libs/bstr.o
>>> cc1: error: unrecognized option `-Wextra'
>>> *** Error code 1
>>>
>>> Stop in /root/suricata-0.9.1/libhtp/htp (line 339 of Makefile).
>>> *** Error code 1
>>>
>>> Stop in /root/suricata-0.9.1/libhtp (line 367 of Makefile).
>>> *** Error code 1
>>>
>>> Stop in /root/suricata-0.9.1/libhtp (line 252 of Makefile).
>>> *** Error code 1
>>>
>>> Stop in /root/suricata-0.9.1 (line 334 of Makefile).
>>> *** Error code 1
>>>
>>> Stop in /root/suricata-0.9.1 (line 241 of Makefile)
>>>
>>> ------
>>>
>>> I can supply more info if needed.
>>>
>>>
>>> /Mikael
>>> _______________________________________________
>>> Oisf-users mailing list
>>> Oisf-users at openinfosecfoundation.org
>>> http://lists.openinfosecfoundation.org/mailman/listinfo/oisf-users
>>>
>>
>
>



More information about the Oisf-users mailing list