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

Patrik Nordlén patrik.nordlen at ...6680...
Fri Aug 14 03:58:14 EDT 2009


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 --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1390 bytes
Desc: not available
URL: <https://lists.snort.org/pipermail/snort-users/attachments/20090814/4589932e/attachment.bin>


More information about the Snort-users mailing list