[Snort-users] Snort on Mac OS X 10.2.8: Which version of Snort can I use?

Ian Masters ian at ...12163...
Tue Dec 23 20:15:12 EST 2008


Hi Todd

Thanks for the suggestion

> Can you try the attached patch and let us know if it fixes the compile
> error.
> 
> $ cp mac1028.diff snort-2.8.3.1
> $ cd snort-2.8.3.1
> $ patch -p0 < mac1028.diff
> $ libtoolize --automake --copy
> $ aclocal -I m4
> $ autoheader
> $ automake --add-missing --copy
> $ autoconf
> $ ./configure <your-configure-options>
> $ make

I tried the above, but libtoolize doesn't exist on my system so in order
to take things further I tried with 'glibtoolize'. Then I was able to
get as far as 'make' in your instructions but the compile error
persists. I've pasted it in below my signature in case it might be useful.

Thanks

Ian

-- 
Snort v2.3.2 on various *nix; ACID v0.9.6b23

make error follows:
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/sw/include -I../../src/output-plugins
-I../../src/detection-plugins -I../../src/dynamic-plugins
-I../../src/preprocessors -I../../src/preprocessors/flow
-I../../src/preprocessors/portscan
-I../../src/preprocessors/flow/int-snort
-I../../src/preprocessors/HttpInspect/include
-I../../src/preprocessors/Stream5 -I../../src/target-based
-I/usr/include/mysql -DENABLE_MYSQL  -g -O2 -Wall -DDYNAMIC_PLUGIN
-DDETECTION_OPTION_TREE -c `test -f 'sfhashfcn.c' || echo './'`sfhashfcn.c
../../src/decode.h:740: undefined type, found `uint32_t'
../../src/decode.h:743: undefined type, found `uint16_t'
../../src/decode.h:744: undefined type, found `uint16_t'
../../src/decode.h:745: undefined type, found `uint16_t'
../../src/decode.h:762: undefined type, found `uint8_t'
../../src/decode.h:763: undefined type, found `uint8_t'
../../src/decode.h:764: undefined type, found `uint8_t'
../../src/decode.h:767: undefined type, found `uint32_t'
../../src/decode.h:768: undefined type, found `uint32_t'
../../src/decode.h:769: undefined type, found `uint8_t'
../../src/decode.h:770: undefined type, found `uint8_t'
../../src/decode.h:779: undefined type, found `uint8_t'
../../src/decode.h:780: undefined type, found `uint8_t'
../../src/decode.h:781: undefined type, found `uint8_t'
../../src/decode.h:784: undefined type, found `uint32_t'
../../src/decode.h:785: undefined type, found `uint32_t'
../../src/decode.h:786: undefined type, found `uint32_t'
../../src/decode.h:787: undefined type, found `uint32_t'
../../src/decode.h:788: undefined type, found `uint32_t'
../../src/decode.h:789: undefined type, found `uint32_t'
../../src/decode.h:790: undefined type, found `uint8_t'
../../src/decode.h:791: undefined type, found `uint8_t'
../../src/decode.h:966: undefined type, found `uint32_t'
../../src/decode.h:968: undefined type, found `uint16_t'
../../src/decode.h:969: undefined type, found `uint8_t'
../../src/decode.h:970: undefined type, found `uint8_t'
../../src/decode.h:972: undefined type, found `uint8_t'
../../src/decode.h:1008: undefined type, found `uint8_t'
../../src/decode.h:1009: undefined type, found `uint8_t'
../../src/decode.h:1010: undefined type, found `uint16_t'
../../src/decode.h:1011: undefined type, found `uint32_t'
cpp-precomp: warning: errors during smart preprocessing, retrying in
basic mode
In file included from ../../src/snort.h:34,
                 from sfhashfcn.c:37:
../../src/decode.h:740: parse error before "uint32_t"
../../src/decode.h:740: warning: no semicolon at end of struct or union
../../src/decode.h:743: parse error before "reason"
../../src/decode.h:743: warning: type defaults to `int' in declaration
of `reason'
../../src/decode.h:743: warning: data definition has no type or storage
class
../../src/decode.h:744: parse error before "action"
../../src/decode.h:744: warning: type defaults to `int' in declaration
of `action'
../../src/decode.h:744: warning: data definition has no type or storage
class
../../src/decode.h:745: parse error before "dir"
../../src/decode.h:745: warning: type defaults to `int' in declaration
of `dir'
../../src/decode.h:745: warning: data definition has no type or storage
class
../../src/decode.h:746: warning: type defaults to `int' in declaration
of `Pflog1Hdr'
../../src/decode.h:746: warning: data definition has no type or storage
class
../../src/decode.h:762: parse error before "uint8_t"
../../src/decode.h:762: warning: no semicolon at end of struct or union
../../src/decode.h:763: warning: type defaults to `int' in declaration
of `action'
../../src/decode.h:763: warning: data definition has no type or storage
class
../../src/decode.h:764: parse error before "reason"
../../src/decode.h:764: warning: type defaults to `int' in declaration
of `reason'
../../src/decode.h:764: warning: data definition has no type or storage
class
../../src/decode.h:767: parse error before "rulenr"
../../src/decode.h:767: warning: type defaults to `int' in declaration
of `rulenr'
../../src/decode.h:767: warning: data definition has no type or storage
class
../../src/decode.h:768: parse error before "subrulenr"
../../src/decode.h:768: warning: type defaults to `int' in declaration
of `subrulenr'
../../src/decode.h:768: warning: data definition has no type or storage
class
../../src/decode.h:769: parse error before "dir"
../../src/decode.h:769: warning: type defaults to `int' in declaration
of `dir'
../../src/decode.h:769: warning: data definition has no type or storage
class
../../src/decode.h:770: parse error before "pad"
../../src/decode.h:770: warning: type defaults to `int' in declaration
of `pad'
../../src/decode.h:770: warning: data definition has no type or storage
class
../../src/decode.h:771: parse error before '}' token
../../src/decode.h:771: warning: type defaults to `int' in declaration
of `Pflog2Hdr'
../../src/decode.h:771: warning: data definition has no type or storage
class
../../src/decode.h:779: parse error before "uint8_t"
../../src/decode.h:779: warning: no semicolon at end of struct or union
../../src/decode.h:780: warning: type defaults to `int' in declaration
of `action'
../../src/decode.h:780: warning: data definition has no type or storage
class
../../src/decode.h:781: parse error before "reason"
../../src/decode.h:781: warning: type defaults to `int' in declaration
of `reason'
../../src/decode.h:781: warning: data definition has no type or storage
class
../../src/decode.h:784: parse error before "rulenr"
../../src/decode.h:784: warning: type defaults to `int' in declaration
of `rulenr'
../../src/decode.h:784: warning: data definition has no type or storage
class
../../src/decode.h:785: parse error before "subrulenr"
../../src/decode.h:785: warning: type defaults to `int' in declaration
of `subrulenr'
../../src/decode.h:785: warning: data definition has no type or storage
class
../../src/decode.h:786: parse error before "uid"
../../src/decode.h:786: warning: type defaults to `int' in declaration
of `uid'
../../src/decode.h:786: warning: data definition has no type or storage
class
../../src/decode.h:787: parse error before "pid"
../../src/decode.h:787: warning: type defaults to `int' in declaration
of `pid'
../../src/decode.h:787: warning: data definition has no type or storage
class
../../src/decode.h:788: parse error before "rule_uid"
../../src/decode.h:788: warning: type defaults to `int' in declaration
of `rule_uid'
../../src/decode.h:788: warning: data definition has no type or storage
class
../../src/decode.h:789: parse error before "rule_pid"
../../src/decode.h:789: warning: type defaults to `int' in declaration
of `rule_pid'
../../src/decode.h:789: warning: data definition has no type or storage
class
../../src/decode.h:790: parse error before "dir"
../../src/decode.h:790: warning: type defaults to `int' in declaration
of `dir'
../../src/decode.h:790: warning: data definition has no type or storage
class
../../src/decode.h:791: parse error before "pad"
../../src/decode.h:791: warning: type defaults to `int' in declaration
of `pad'
../../src/decode.h:791: warning: data definition has no type or storage
class
../../src/decode.h:792: parse error before '}' token
../../src/decode.h:792: warning: type defaults to `int' in declaration
of `Pflog3Hdr'
../../src/decode.h:792: warning: data definition has no type or storage
class
../../src/decode.h:966: parse error before "uint32_t"
../../src/decode.h:966: warning: no semicolon at end of struct or union
../../src/decode.h:966: warning: no semicolon at end of struct or union
../../src/decode.h:968: warning: no semicolon at end of struct or union
../../src/decode.h:969: warning: type defaults to `int' in declaration
of `ip6_un1_nxt'
../../src/decode.h:969: warning: data definition has no type or storage
class
../../src/decode.h:970: parse error before "ip6_un1_hlim"
../../src/decode.h:970: warning: type defaults to `int' in declaration
of `ip6_un1_hlim'
../../src/decode.h:970: warning: data definition has no type or storage
class
../../src/decode.h:971: warning: type defaults to `int' in declaration
of `IP6HdrCtl'
../../src/decode.h:971: warning: data definition has no type or storage
class
../../src/decode.h:972: parse error before "ip6_un2_vfc"
../../src/decode.h:972: warning: type defaults to `int' in declaration
of `ip6_un2_vfc'
../../src/decode.h:972: warning: data definition has no type or storage
class
../../src/decode.h:973: warning: type defaults to `int' in declaration
of `IP6Ctl'
../../src/decode.h:973: warning: data definition has no type or storage
class
../../src/decode.h:977: parse error before '}' token
../../src/decode.h:977: warning: type defaults to `int' in declaration
of `IP6RawHdr'
../../src/decode.h:977: warning: data definition has no type or storage
class
../../src/decode.h:1008: parse error before "uint8_t"
../../src/decode.h:1008: warning: no semicolon at end of struct or union
../../src/decode.h:1009: warning: type defaults to `int' in declaration
of `ip6f_reserved'
../../src/decode.h:1009: warning: data definition has no type or storage
class
../../src/decode.h:1010: parse error before "ip6f_offlg"
../../src/decode.h:1010: warning: type defaults to `int' in declaration
of `ip6f_offlg'
../../src/decode.h:1010: warning: data definition has no type or storage
class
../../src/decode.h:1011: parse error before "ip6f_ident"
../../src/decode.h:1011: warning: type defaults to `int' in declaration
of `ip6f_ident'
../../src/decode.h:1011: warning: data definition has no type or storage
class
../../src/decode.h:1012: warning: type defaults to `int' in declaration
of `IP6Frag'
../../src/decode.h:1012: warning: data definition has no type or storage
class
../../src/decode.h:1420: parse error before "Pflog1Hdr"
../../src/decode.h:1420: warning: no semicolon at end of struct or union
../../src/decode.h:1421: warning: type defaults to `int' in declaration
of `pf2h'
../../src/decode.h:1421: warning: data definition has no type or storage
class
../../src/decode.h:1422: parse error before '*' token
../../src/decode.h:1422: warning: type defaults to `int' in declaration
of `pf3h'
../../src/decode.h:1422: warning: data definition has no type or storage
class
../../src/decode.h:1529: parse error before '}' token
../../src/decode.h:1529: warning: type defaults to `int' in declaration
of `Packet'
../../src/decode.h:1529: warning: data definition has no type or storage
class
../../src/decode.h:1588: parse error before '*' token
../../src/decode.h:1589: parse error before '*' token
../../src/decode.h:1590: parse error before '*' token
../../src/decode.h:1591: parse error before '*' token
../../src/decode.h:1592: parse error before '*' token
../../src/decode.h:1593: parse error before "Packet"
../../src/decode.h:1594: parse error before '*' token
../../src/decode.h:1595: parse error before '*' token
../../src/decode.h:1596: parse error before '*' token
../../src/decode.h:1597: parse error before '*' token
../../src/decode.h:1598: parse error before '*' token
../../src/decode.h:1599: parse error before '*' token
../../src/decode.h:1600: parse error before '*' token
../../src/decode.h:1601: parse error before '*' token
../../src/decode.h:1602: parse error before '*' token
../../src/decode.h:1603: parse error before '*' token
../../src/decode.h:1604: parse error before '*' token
../../src/decode.h:1605: parse error before "Packet"
../../src/decode.h:1606: parse error before "Packet"
../../src/decode.h:1607: parse error before "Packet"
../../src/decode.h:1608: parse error before "Packet"
../../src/decode.h:1609: parse error before "Packet"
../../src/decode.h:1610: parse error before "Packet"
../../src/decode.h:1611: parse error before "Packet"
../../src/decode.h:1612: parse error before "Packet"
../../src/decode.h:1613: parse error before "Packet"
../../src/decode.h:1614: parse error before "Packet"
../../src/decode.h:1615: parse error before "Packet"
../../src/decode.h:1616: parse error before "Packet"
../../src/decode.h:1617: parse error before "Packet"
../../src/decode.h:1618: parse error before "Packet"
../../src/decode.h:1619: parse error before "Packet"
../../src/decode.h:1620: parse error before '*' token
../../src/decode.h:1621: parse error before '*' token
In file included from sfhashfcn.c:37:
../../src/snort.h:607: parse error before '*' token
../../src/snort.h:607: warning: type defaults to `int' in declaration of
`BsdPseudoPacket'
../../src/snort.h:607: warning: data definition has no type or storage class
../../src/snort.h:613: conflicting types for `flow'
../../src/decode.h:1475: previous declaration of `flow'
../../src/snort.h:624: parse error before '*' token
make[3]: *** [sfhashfcn.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2





More information about the Snort-users mailing list