[Snort-users] barnyard2-1.6 on openbsd 4.5 compile errors

Rich Andrews arc.digital at ...11827...
Sat Aug 15 12:15:01 EDT 2009


Okay, that worked for all the src/output_plugins/spo_alert{fast,full,test}.c
files.  Now I seem to be missing unistd.h.

In file included from ../plugbase.h:42,
                 from ../spooler.h:32,
                 from ../barnyard2.h:53,
                 from spo_common.c:10:
/usr/include/net/route.h:54: error: field `ro_dst' has incomplete type
In file included from ../plugbase.h:57,
                 from ../spooler.h:32,
                 from ../barnyard2.h:53,
                 from spo_common.c:10:
/usr/include/net/if.h:239: error: `AF_MAX' undeclared here (not in a
function)
/usr/include/net/if.h:573: error: field `ifru_addr' has incomplete type
/usr/include/net/if.h:574: error: field `ifru_dstaddr' has incomplete type
/usr/include/net/if.h:575: error: field `ifru_broadaddr' has incomplete type
/usr/include/net/if.h:592: error: field `ifra_addr' has incomplete type
/usr/include/net/if.h:593: error: field `ifra_dstaddr' has incomplete type
/usr/include/net/if.h:595: error: field `ifra_mask' has incomplete type
/usr/include/net/if.h:633: error: field `addr' has incomplete type
/usr/include/net/if.h:634: error: field `dstaddr' has incomplete type
In file included from /usr/include/net/if.h:651,
                 from ../plugbase.h:57,
                 from ../spooler.h:32,
                 from ../barnyard2.h:53,
                 from spo_common.c:10:
/usr/include/net/if_arp.h:79: error: field `arp_pa' has incomplete type
/usr/include/net/if_arp.h:80: error: field `arp_ha' has incomplete type
*** Error code 1

Stop in /root/barnyard2-1.6/src/output-plugins (line 92 of /usr/share/mk/
sys.mk).
*** Error code 1

Stop in /root/barnyard2-1.6/src (line 353 of Makefile).
*** Error code 1

Stop in /root/barnyard2-1.6 (line 294 of Makefile).
*** Error code 1

Stop in /root/barnyard2-1.6 (line 201 of Makefile).


On Fri, Aug 14, 2009 at 3:58 AM, Patrik Nordlén <patrik.nordlen at ...14325....>wrote:

> Try moving "#include <sys/types.h>" up to before the "#ifndef WIN32" clause
> in
> spo_alert_fast.c.
>
> Regards,
> Patrik
>
> On Thursday 13 August 2009 15.54.21 Rich Andrews wrote:
> > Hello,
> >
> > I'm in the process of building a new pf box with snort/barnyard2 and I've
> > come across this during make:
> >
> > Making all in output-plugins
> > gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I.. -I ../sfutil
> > -I/usr/local/include/mys
> > ql -DENABLE_MYSQL  -g -O2 -Wall -c spo_alert_fast.c
> > In file included from spo_alert_fast.c:48:
> > /usr/include/sys/socket.h:148: error: syntax error before "u_int8_t"
> > /usr/include/sys/socket.h:166: error: syntax error before "u_int8_t"
> > /usr/include/sys/socket.h:169: error: syntax error before "u_int64_t"
> > /usr/include/sys/socket.h:235: error: syntax error before "uid_t"
> > /usr/include/sys/socket.h:240: error: syntax error before "gid_t"
> > /usr/include/sys/socket.h:368: error: syntax error before "socklen_t"
> > /usr/include/sys/socket.h:372: error: syntax error before "socklen_t"
> > /usr/include/sys/socket.h:394: error: syntax error before "socklen_t"
> > /usr/include/sys/socket.h:450: error: syntax error before "caddr_t"
> > /usr/include/sys/socket.h:454: error: syntax error before "caddr_t"
> > /usr/include/sys/socket.h:465: error: syntax error before "socklen_t"
> > /usr/include/sys/socket.h:466: error: syntax error before "socklen_t"
> > /usr/include/sys/socket.h:467: error: syntax error before "socklen_t"
> > /usr/include/sys/socket.h:468: error: syntax error before "uid_t"
> > /usr/include/sys/socket.h:469: error: syntax error before "socklen_t"
> > /usr/include/sys/socket.h:470: error: syntax error before "socklen_t"
> > /usr/include/sys/socket.h:471: error: syntax error before "socklen_t"
> > /usr/include/sys/socket.h:473: error: syntax error before "recv"
> > /usr/include/sys/socket.h:474: error: syntax error before "recvfrom"
> > /usr/include/sys/socket.h:474: error: syntax error before "socklen_t"
> > /usr/include/sys/socket.h:475: error: syntax error before "recvmsg"
> > /usr/include/sys/socket.h:476: error: syntax error before "send"
> > /usr/include/sys/socket.h:477: error: syntax error before "sendto"
> > /usr/include/sys/socket.h:478: error: syntax error before "socklen_t"
> > /usr/include/sys/socket.h:479: error: syntax error before "sendmsg"
> > /usr/include/sys/socket.h:480: error: syntax error before "socklen_t"
> > In file included from spo_alert_fast.c:49:
> > /usr/include/netinet/in.h:136: error: syntax error before "in_addr_t"
> > /usr/include/netinet/in.h:213: error: syntax error before "u_int8_t"
> > /usr/include/netinet/in.h:217: error: syntax error before "int8_t"
> > /usr/include/netinet/in.h:232: error: syntax error before "int8_t"
> > In file included from /usr/include/netinet/in.h:701,
> >                  from spo_alert_fast.c:49:
> > /usr/include/netinet6/in6.h:118: error: syntax error before "u_int8_t"
> > /usr/include/netinet6/in6.h:140: error: syntax error before "u_int8_t"
> > /usr/include/netinet6/in6.h:145: error: syntax error before "u_int32_t"
> > /usr/include/netinet6/in6.h:514: error: syntax error before "u_int32_t"
> > /usr/include/netinet6/in6.h:755: error: syntax error before '*' token
> > /usr/include/netinet6/in6.h:757: error: syntax error before '*' token
> > /usr/include/netinet6/in6.h:758: error: syntax error before "u_int8_t"
> > /usr/include/netinet6/in6.h:759: error: syntax error before "u_int8_t"
> > /usr/include/netinet6/in6.h:773: error: syntax error before "socklen_t"
> > /usr/include/netinet6/in6.h:774: error: syntax error before "socklen_t"
> > /usr/include/netinet6/in6.h:776: error: syntax error before "socklen_t"
> > /usr/include/netinet6/in6.h:777: error: syntax error before "socklen_t"
> >
> > This is on a i386 architecture.  Any thoughts?
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.snort.org/pipermail/snort-users/attachments/20090815/deabbc6d/attachment.html>


More information about the Snort-users mailing list