[Snort-users] Problems trying to compile snort v2.6.1.3 on FreeBSD 4.x

Patrik Israelsson patrik.israelsson at ...6680...
Mon Feb 26 05:58:56 EST 2007


Hi,

I'm trying to compile snort 2.6.1.3 on various boxen running FreeBSD 4.x. I've 
encountered some problems while building the dynamic preprocessors:

Making all in dcerpc
make  all-am
/bin/sh ../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H  -I. -I. 
-I../../.. -I../include  -I/usr/local/include -I
1-client/work/mysql-4.1.18//include -DENABLE_MYSQL   -g -O2 -Wall 
-DDYNAMIC_PLUGIN -c -o dcerpc_config.lo dcerpc_config.c
 gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I../include -I/usr/local/include 
-I/usr/ports/databases/mysql41-client/work/mysql-4.1
 -g -O2 -Wall -DDYNAMIC_PLUGIN -c dcerpc_config.c  -fPIC -DPIC 
-o .libs/dcerpc_config.o
In file included from ../include/sf_snort_plugin_api.h:39,
                 from dcerpc_config.c:41:
/usr/include/netinet/in.h:235: syntax error before `in_addr_t'
/usr/include/netinet/in.h:287: syntax error before `u_char'
In file included from /usr/include/netinet/in.h:469,
                 from ../include/sf_snort_plugin_api.h:39,
                 from dcerpc_config.c:41:
/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'
*** Error code 1

Stop in /usr/nids-src/newsnort/snort/src/dynamic-preprocessors/dcerpc.
*** Error code 1
[...]

Has anyone else tried this with success, and/or does anyone know what could be 
the cause and solution to this problem?

Regards,
Patrik




More information about the Snort-users mailing list