[Oisf-users] Error building suricata 1.1 under OpenBSD 5.0
carlopmart
carlopmart at gmail.com
Mon Nov 14 18:25:56 UTC 2011
On 11/14/2011 07:18 PM, Peter Manev wrote:
>
>
> On Mon, Nov 14, 2011 at 7:13 PM, Eric Leblond <eric at regit.org
> <mailto:eric at regit.org>> wrote:
>
> Hello,
>
> On Mon, 2011-11-14 at 19:02 +0100, carlopmart wrote:
> > On 11/14/2011 06:47 PM, Eric Leblond wrote:
> > > Hello,
> > >
> > > On Mon, 2011-11-14 at 17:40 +0100, carlopmart wrote:
> > >> On 11/14/2011 10:33 AM, carlopmart wrote:
> > >>> On 11/14/2011 10:24 AM, Eric Leblond wrote:
> > >>>> Hello,
> > >>>>
> > >>>> My 0.02€ but did you try with the indication found here:
> > >>>>
> https://redmine.openinfosecfoundation.org/projects/suricata/wiki/OpenBSD_Installation_from_GIT
> > >>>>
> > >>>>
> > >>>> One of the thing, I needed at the time was to use CPP and C
> flags:
> > >>>>
> > >>>> CPPFLAGS="-I/usr/local/include" CFLAGS="-L/usr/local/lib"
> ./configure
> > >>>> --prefix=/opt/suricata
> > >>>>
> > >>>
> > >>>
> > >>> Err, no. I will try it ... Wait a moment ...No, it doesn't works:
> > >>>
> > >>> gcc -DHAVE_CONFIG_H -I. -I.. -I../libhtp -I/usr/local/include
> > >>> -I/usr/local/include -I/usr/local/include/libnet-1.1
> > >>> -I/usr/local/include/libnet-1.1 -L/usr/local/lib -Wextra -Wall
> > >>> -fno-strict-aliasing -fno-tree-pre -Wno-unused-parameter
> -std=gnu99
> > >>> -D__OpenBSD__ -march=native -DHAVE_LIBNET11 -D_BSD_SOURCE
> -D__BSD_SOURCE
> > >>> -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBPCAP_VERSION_MAJOR=0 -MT
> > >>> util-ioctl.o -MD -MP -MF .deps/util-ioctl.Tpo -c -o util-ioctl.o
> > >>> util-ioctl.c
> > >>> util-ioctl.c: In function 'GetIfaceMTU':
> > >>> util-ioctl.c:74: error: storage size of 'ifr' isn't known
> > >>> util-ioctl.c:83: error: invalid application of 'sizeof' to
> incomplete
> > >>> type 'struct ifreq'
> > >>> util-ioctl.c:74: warning: unused variable 'ifr'
> > >>> util-ioctl.c:97: warning: control reaches end of non-void
> function
> > >>> *** Error code 1
> > >>>
> > >>> Stop in /tmp/oo/suricata-1.1/src (line 92 of
> /usr/share/mk/sys.mk <http://sys.mk>).
> > >>> *** Error code 1
> > >>>
> > >>> Stop in /tmp/oo/suricata-1.1/src (line 700 of Makefile).
> > >>> *** Error code 1
> > >>>
> > >>> Stop in /tmp/oo/suricata-1.1 (line 353 of Makefile).
> > >>> *** Error code 1
> > >>>
> > >>> Stop in /tmp/oo/suricata-1.1 (line 260 of Makefile).
> > >>>
> > >>> Same error.
> > >>>
> > >>
> > >> Any info??
> > >
> > >
> > > That error make me thought of the crazy/stupid/dummy behaviour of
> > > automake/autoconf on OpenBSD I had to fight with when working
> on the
> > > port.
> > >
> > > Be sure to do:
> > > export AUTOCONF_VERSION=2.61
> > > export AUTOMAKE_VERSION=1.10
> > > before running autogen.sh like describe in
> > >
> https://redmine.openinfosecfoundation.org/projects/suricata/wiki/OpenBSD_Installation_from_GIT
> > >
> > > BR,
> >
> > But I am not installing from git ... I am using stable version
> 1.1 ...
> > Is this procedure the same for stable release??
>
> Yes, in this case, install the "good" automake and autoconf has
> described, run autogen.sh and your configure.
>
> BR,
> --
> Eric Leblond
> Blog: http://home.regit.org/
>
> _______________________________________________
> Oisf-users mailing list
> Oisf-users at openinfosecfoundation.org
> <mailto:Oisf-users at openinfosecfoundation.org>
> http://lists.openinfosecfoundation.org/mailman/listinfo/oisf-users
>
>
> Hi,
> I just compiled 1.1 from scratch on BSD - and there are no
> problems...... following the web guide.
> thanks
>
> --
> Peter Manev
I what BSD: FreeBSD, OpenBSD or NetBSD??
--
CL Martinez
carlopmart {at} gmail {d0t} com
More information about the Oisf-users
mailing list