Snort mailing list archives

Re: barnyard2-1.6 on openbsd 4.5 compile errors


From: Patrik Nordlén <patrik.nordlen () sentor se>
Date: Fri, 14 Aug 2009 09:58:14 +0200

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?


Attachment: smime.p7s
Description:

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Snort-users mailing list
Snort-users () lists sourceforge net
Go to this URL to change user options or unsubscribe:
https://lists.sourceforge.net/lists/listinfo/snort-users
Snort-users list archive:
http://www.geocrawler.com/redir-sf.php3?list=snort-users

Current thread: