OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
[Snort-users] compiling snort-2.1

From: Victor Lamptey (vlampteyhotmail.com)
Date: Fri Jan 02 2004 - 13:29:33 CST


Hi folks,

         I am getting the following errors when I try to compile snort-2.1.0 on a Freebsd4.7 or FBSD4.4: has anyone run into the same problems, and how can I get around  the following errors.?

make  all-recursive
Making all in src
Making all in sfutil
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src -I../../src/sfutil  -I..
/../src/output-plugins -I../../src/detection-plugins -I../../src/preprocessors -
I../../src/preprocessors/flow -I../../src/preprocessors/portscan  -I../../src/pr
eprocessors/flow/int-snort  -I../../src/preprocessors/HttpInspect/include   -I/u
sr/local/include  -g -O2 -Wall -c `test -f 'sfghash.c' || echo './'`sfghash.c
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src -I../../src/sfutil  -I..
/../src/output-plugins -I../../src/detection-plugins -I../../src/preprocessors -
I../../src/preprocessors/flow -I../../src/preprocessors/portscan  -I../../src/pr
eprocessors/flow/int-snort  -I../../src/preprocessors/HttpInspect/include   -I/u
sr/local/include  -g -O2 -Wall -c `test -f 'sfhashfcn.c' || echo './'`sfhashfcn.
c
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src -I../../src/sfutil  -I..
/../src/output-plugins -I../../src/detection-plugins -I../../src/preprocessors -
I../../src/preprocessors/flow -I../../src/preprocessors/portscan  -I../../src/pr
eprocessors/flow/int-snort  -I../../src/preprocessors/HttpInspect/include   -I/u
sr/local/include  -g -O2 -Wall -c `test -f 'sflsq.c' || echo './'`sflsq.c
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src -I../../src/sfutil  -I..
/../src/output-plugins -I../../src/detection-plugins -I../../src/preprocessors -
I../../src/preprocessors/flow -I../../src/preprocessors/portscan  -I../../src/pr
eprocessors/flow/int-snort  -I../../src/preprocessors/HttpInspect/include   -I/u
sr/local/include  -g -O2 -Wall -c `test -f 'sfmemcap.c' || echo './'`sfmemcap.c
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src -I../../src/sfutil  -I..
/../src/output-plugins -I../../src/detection-plugins -I../../src/preprocessors -
I../../src/preprocessors/flow -I../../src/preprocessors/portscan  -I../../src/pr
eprocessors/flow/int-snort  -I../../src/preprocessors/HttpInspect/include   -I/u
sr/local/include  -g -O2 -Wall -c `test -f 'sfthd.c' || echo './'`sfthd.c
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src -I../../src/sfutil  -I..
/../src/output-plugins -I../../src/detection-plugins -I../../src/preprocessors -
I../../src/preprocessors/flow -I../../src/preprocessors/portscan  -I../../src/pr
eprocessors/flow/int-snort  -I../../src/preprocessors/HttpInspect/include   -I/u
sr/local/include  -g -O2 -Wall -c `test -f 'sfxhash.c' || echo './'`sfxhash.c
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src -I../../src/sfutil  -I..
/../src/output-plugins -I../../src/detection-plugins -I../../src/preprocessors -
I../../src/preprocessors/flow -I../../src/preprocessors/portscan  -I../../src/pr
eprocessors/flow/int-snort  -I../../src/preprocessors/HttpInspect/include   -I/u
sr/local/include  -g -O2 -Wall -c `test -f 'ipobj.c' || echo './'`ipobj.c
In file included from ipobj.c:22:
/usr/include/sys/socket.h:52: syntax error before `sa_family_t'
/usr/include/sys/socket.h:52: warning: type defaults to `int' in declaration of
`sa_family_t'
/usr/include/sys/socket.h:52: warning: data definition has no type or storage cl
ass
/usr/include/sys/socket.h:163: syntax error before `u_char'
/usr/include/sys/socket.h:174: syntax error before `u_short'
/usr/include/sys/socket.h:188: syntax error before `u_char'
/usr/include/sys/socket.h:190: `int64_t' undeclared here (not in a function)
/usr/include/sys/socket.h:190: `u_char' undeclared here (not in a function)
/usr/include/sys/socket.h:190: size of array `__ss_pad1' is too large
/usr/include/sys/socket.h:191: syntax error before `int64_t'
/usr/include/sys/socket.h:192: `u_char' undeclared here (not in a function)
/usr/include/sys/socket.h:192: `int64_t' undeclared here (not in a function)
/usr/include/sys/socket.h:192: `u_char' undeclared here (not in a function)
/usr/include/sys/socket.h:192: `int64_t' undeclared here (not in a function)
/usr/include/sys/socket.h:359: syntax error before `pid_t'
/usr/include/sys/socket.h:364: syntax error before `gid_t'
/usr/include/sys/socket.h:399: syntax error before `u_short'
/usr/include/sys/socket.h:407: syntax error before `caddr_t'
/usr/include/sys/socket.h:411: syntax error before `caddr_t'
/usr/include/sys/socket.h:444: syntax error before `recv'
/usr/include/sys/socket.h:444: warning: type defaults to `int' in declaration of
 `recv'
/usr/include/sys/socket.h:444: warning: data definition has no type or storage c
lass
/usr/include/sys/socket.h:445: syntax error before `recvfrom'
/usr/include/sys/socket.h:445: warning: type defaults to `int' in declaration of
 `recvfrom'
/usr/include/sys/socket.h:445: warning: data definition has no type or storage c
lass
/usr/include/sys/socket.h:446: syntax error before `recvmsg'
/usr/include/sys/socket.h:446: warning: type defaults to `int' in declaration of
 `recvmsg'
/usr/include/sys/socket.h:446: warning: data definition has no type or storage c
lass
/usr/include/sys/socket.h:447: syntax error before `send'
/usr/include/sys/socket.h:447: warning: type defaults to `int' in declaration of
 `send'
/usr/include/sys/socket.h:447: warning: data definition has no type or storage c
lass
/usr/include/sys/socket.h:448: syntax error before `sendto'
/usr/include/sys/socket.h:449: warning: type defaults to `int' in declaration of
 `sendto'
/usr/include/sys/socket.h:449: warning: data definition has no type or storage c
lass
/usr/include/sys/socket.h:450: syntax error before `sendmsg'
/usr/include/sys/socket.h:450: warning: type defaults to `int' in declaration of
 `sendmsg'
/usr/include/sys/socket.h:450: warning: data definition has no type or storage c
lass
/usr/include/sys/socket.h:451: syntax error before `off_t'
In file included from ipobj.c:23:
/usr/include/netinet/in.h:233: syntax error before `in_addr_t'
/usr/include/netinet/in.h:285: syntax error before `u_char'
In file included from /usr/include/netinet/in.h:467,
                 from ipobj.c:23:
/usr/include/netinet6/in6.h:122: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:144: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:149: syntax error before `u_int32_t'
/usr/include/netinet6/in6.h:612: syntax error before `*'
/usr/include/netinet6/in6.h:613: warning: type defaults to `int' in declaration
of `inet6_option_append'
/usr/include/netinet6/in6.h:614: syntax error before `*'
/usr/include/netinet6/in6.h:614: warning: type defaults to `int' in declaration
of `inet6_option_alloc'
/usr/include/netinet6/in6.h:614: warning: data definition has no type or storage
 class
/usr/include/netinet6/in6.h:615: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:616: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:631: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:636: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:638: syntax error before `u_int8_t'
ipobj.c: In function `ip4_parse':
ipobj.c:606: structure has no member named `s_addr'
ipobj.c:632: structure has no member named `s_addr'
*** Error code 1

Stop in /backup/snort-2.1.0/src/sfutil.
*** Error code 1

Stop in /backup/snort-2.1.0/src.
*** Error code 1

Stop in /backup/snort-2.1.0.

thanks

vic

  



Get reliable dial-up Internet access now with our limited-time introductory offer. ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ 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