1 |
On Sat, Aug 22, 2015 at 10:34 AM, Rod <Rod@×××××××.au> wrote: |
2 |
> Hi List, |
3 |
> |
4 |
> I am having problems compiling Snort :( |
5 |
> |
6 |
> I have tried |
7 |
> |
8 |
> emerge snort |
9 |
> |
10 |
> Also tried compiling in the comandline |
11 |
> |
12 |
> I have tried all my installed gcc profiles... |
13 |
> |
14 |
> # gcc-config -l |
15 |
> [1] x86_64-pc-linux-gnu-4.5.4 |
16 |
> [2] x86_64-pc-linux-gnu-4.6.4 |
17 |
> [3] x86_64-pc-linux-gnu-4.7.3 |
18 |
> [4] x86_64-pc-linux-gnu-4.8.4 * |
19 |
> |
20 |
> All failed :( |
21 |
> |
22 |
> make[4]: Entering directory |
23 |
> '/var/tmp/portage/net-analyzer/snort-2.9.7.5/work/snort-2.9.7.5/src/preprocessors/Stream6' |
24 |
> x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../.. |
25 |
> -I../../../src -I../../../src/sfutil -I/usr/include/pcap |
26 |
> -I../../../src/output-plugins -I../../../src/detection-plugins |
27 |
> -I../../../src/dynamic-plugins -I../../../src/preprocessors |
28 |
> -I../../../src/preprocessors/portscan |
29 |
> -I../../../src/preprocessors/HttpInspect/include |
30 |
> -I../../../src/preprocessors/Session -I../../../src/preprocessors/Stream6 |
31 |
> -I../../../src/target-based -I../../../src/control |
32 |
> -I../../../src/file-process -I../../../src/file-process/libs |
33 |
> -I../../../src/side-channel -I../../../src/side-channel/plugins -DLZMA |
34 |
> -DNDEBUG -DNOCOREFILE -DSF_WCHAR -DSNORT_RELOAD -DRELOAD_ERROR_FATAL |
35 |
> -DNO_NON_ETHER_DECODER -O2 -march=core2 -mtune=core2 -pipe -DSF_VISIBILITY |
36 |
> -fvisibility=hidden -fno-strict-aliasing -Wall -c -o snort_stream_tcp.o |
37 |
> snort_stream_tcp.c |
38 |
> snort_stream_tcp.c:466:89: error: unknown type name 'NormFlags' |
39 |
> static inline int Stream_NormGetMode(uint16_t reassembly_policy, const |
40 |
> SnortConfig* sc, NormFlags nf) |
41 |
> ^ |
42 |
> snort_stream_tcp.c: In function 'AddStreamNode': |
43 |
> snort_stream_tcp.c:6160:9: warning: implicit declaration of function |
44 |
> 'NormalTrimPayloadIfWin' [-Wimplicit-function-declaration] |
45 |
> NormalTrimPayloadIfWin(p, 0, tdb); |
46 |
> ^ |
47 |
> snort_stream_tcp.c: In function 'ProcessTcpData': |
48 |
> snort_stream_tcp.c:7275:9: warning: implicit declaration of function |
49 |
> 'NormalTrimPayloadIfSyn' [-Wimplicit-function-declaration] |
50 |
> NormalTrimPayloadIfSyn(p, 0, tdb); |
51 |
> ^ |
52 |
> snort_stream_tcp.c: In function 'ProcessTcp': |
53 |
> snort_stream_tcp.c:8381:17: warning: implicit declaration of function |
54 |
> 'NormalTrimPayloadIfRst' [-Wimplicit-function-declaration] |
55 |
> NormalTrimPayloadIfRst(p, 0, tdb); |
56 |
> ^ |
57 |
> snort_stream_tcp.c: At top level: |
58 |
> snort_stream_tcp.c:555:19: warning: 'CheckFlushPolicyOnData' used but never |
59 |
> defined [enabled by default] |
60 |
> static inline int CheckFlushPolicyOnData( |
61 |
> ^ |
62 |
> snort_stream_tcp.c:1184:29: warning: 'StreamTCPCreateSession' defined but |
63 |
> not used [-Wunused-function] |
64 |
> static SessionControlBlock *StreamTCPCreateSession( const SessionKey *key ) |
65 |
> ^ |
66 |
> snort_stream_tcp.c:1192:13: warning: 'StreamTCPDeactivateSession' defined |
67 |
> but not used [-Wunused-function] |
68 |
> static void StreamTCPDeactivateSession( SessionControlBlock *scb ) |
69 |
> ^ |
70 |
> snort_stream_tcp.c:1206:12: warning: 'StreamTCPDeleteSession' defined but |
71 |
> not used [-Wunused-function] |
72 |
> static int StreamTCPDeleteSession( const SessionKey *key ) |
73 |
> ^ |
74 |
> Makefile:389: recipe for target 'snort_stream_tcp.o' failed |
75 |
> make[4]: *** [snort_stream_tcp.o] Error 1 |
76 |
> make[4]: Leaving directory |
77 |
> '/var/tmp/portage/net-analyzer/snort-2.9.7.5/work/snort-2.9.7.5/src/preprocessors/Stream6' |
78 |
> Makefile:471: recipe for target 'all-recursive' failed |
79 |
> make[3]: *** [all-recursive] Error 1 |
80 |
> make[3]: Leaving directory |
81 |
> '/var/tmp/portage/net-analyzer/snort-2.9.7.5/work/snort-2.9.7.5/src/preprocessors' |
82 |
> Makefile:552: recipe for target 'all-recursive' failed |
83 |
> make[2]: *** [all-recursive] Error 1 |
84 |
> make[2]: Leaving directory |
85 |
> '/var/tmp/portage/net-analyzer/snort-2.9.7.5/work/snort-2.9.7.5/src' |
86 |
> Makefile:517: recipe for target 'all-recursive' failed |
87 |
> make[1]: *** [all-recursive] Error 1 |
88 |
> make[1]: Leaving directory |
89 |
> '/var/tmp/portage/net-analyzer/snort-2.9.7.5/work/snort-2.9.7.5' |
90 |
> Makefile:383: recipe for target 'all' failed |
91 |
> make: *** [all] Error 2 |
92 |
> |
93 |
> |
94 |
> Portage 2.2.18 (python 2.7.9-final-0, default/linux/amd64/13.0/desktop, |
95 |
> gcc-4.8.4, glibc-2.20-r2, 3.18.7-gentoo x86_64) |
96 |
> ================================================================= |
97 |
> System Settings |
98 |
> ================================================================= |
99 |
> System uname: |
100 |
> Linux-3.18.7-gentoo-x86_64-Intel-R-_Core-TM-_i5-4570_CPU_@_3.20GHz-with-gentoo-2.2 |
101 |
> KiB Mem: 15316468 total, 543168 free |
102 |
> KiB Swap: 33554428 total, 32086124 free |
103 |
> Timestamp of repository gentoo: Fri, 21 Aug 2015 18:30:01 +0000 |
104 |
> sh bash 4.2_p45 |
105 |
> ld GNU ld (Gentoo 2.24 p1.4) 2.24 |
106 |
> distcc 3.1 x86_64-pc-linux-gnu [disabled] |
107 |
> app-shells/bash: 4.2_p45::gentoo |
108 |
> dev-java/java-config: 2.2.0::gentoo |
109 |
> dev-lang/perl: 5.18.2-r2::gentoo |
110 |
> dev-lang/python: 2.7.9-r1::gentoo, 3.1.5::gentoo, 3.2.5-r6::gentoo, |
111 |
> 3.4.1::gentoo |
112 |
> dev-util/cmake: 2.8.12.2-r1::gentoo |
113 |
> dev-util/pkgconfig: 0.28-r1::gentoo |
114 |
> sys-apps/baselayout: 2.2::gentoo |
115 |
> sys-apps/openrc: 0.16.4::gentoo |
116 |
> sys-apps/sandbox: 2.6-r1::gentoo |
117 |
> sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo |
118 |
> sys-devel/automake: 1.9.6-r3::gentoo, 1.11.6::gentoo, 1.12.6::gentoo, |
119 |
> 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo |
120 |
> sys-devel/binutils: 2.24-r3::gentoo |
121 |
> sys-devel/gcc: 4.5.4::gentoo, 4.6.4::gentoo, 4.7.3-r1::gentoo, |
122 |
> 4.8.4::gentoo |
123 |
> sys-devel/gcc-config: 1.7.3::gentoo |
124 |
> sys-devel/libtool: 2.4.6::gentoo |
125 |
> sys-devel/make: 4.1-r1::gentoo |
126 |
> sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers) |
127 |
> sys-libs/glibc: 2.20-r2::gentoo |
128 |
> Repositories: |
129 |
> |
130 |
> gentoo |
131 |
> location: /var/video/media/portage |
132 |
> sync-type: rsync |
133 |
> sync-uri: rsync://rsync.gentoo.org/gentoo-portage |
134 |
> priority: -1000 |
135 |
> |
136 |
> Mythtv-Ebuilds |
137 |
> location: /usr/local/mythtv_portage/Gentoo |
138 |
> masters: gentoo |
139 |
> priority: 0 |
140 |
> |
141 |
> megacoffee |
142 |
> location: /var/lib/layman/megacoffee |
143 |
> masters: gentoo |
144 |
> priority: 50 |
145 |
> |
146 |
> ACCEPT_KEYWORDS="amd64" |
147 |
> ACCEPT_LICENSE="*" |
148 |
> CBUILD="x86_64-pc-linux-gnu" |
149 |
> CFLAGS="-O2 -march=core2 -mtune=core2 -pipe" |
150 |
> CHOST="x86_64-pc-linux-gnu" |
151 |
> CONFIG_PROTECT="/etc /home/mythtv/ /opt/openfire/resources/security/ |
152 |
> /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions |
153 |
> /var/bind" |
154 |
> CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d |
155 |
> /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release |
156 |
> /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ |
157 |
> /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ |
158 |
> /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ |
159 |
> /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" |
160 |
> CXXFLAGS="-O2 -march=core2 -mtune=core2 -pipe" |
161 |
> DISTDIR="/var/video/media/portage/distfiles" |
162 |
> FCFLAGS="-O2 -pipe" |
163 |
> FEATURES="assume-digests binpkg-logs candy config-protect-if-modified |
164 |
> distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch |
165 |
> preserve-libs protect-owned sandbox selinux sfperms strict |
166 |
> unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv |
167 |
> usersandbox usersync" |
168 |
> FFLAGS="-O2 -pipe" |
169 |
> GENTOO_MIRRORS="http://distfiles.gentoo.org" |
170 |
> LANG="en_US.UTF-8" |
171 |
> LDFLAGS="-Wl,-O1 -Wl,--as-needed" |
172 |
> MAKEOPTS="-j1" |
173 |
> PKGDIR="/var/video/media/portage/distfiles/packages" |
174 |
> PORTAGE_CONFIGROOT="/" |
175 |
> PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times |
176 |
> --omit-dir-times --compress --force --whole-file --delete --stats |
177 |
> --human-readable --timeout=180 --exclude=/distfiles --exclude=/local |
178 |
> --exclude=/packages" |
179 |
> PORTAGE_TMPDIR="/var/tmp" |
180 |
> USE="X accessibility acpi activefilter additions ads afpacket aim alsa amd64 |
181 |
> apache2 api apm aspell asterisk async audio authdaemond authfile autostart |
182 |
> bash-completion berkdb bluray btrfs bundled-adodb bzip2 calendar caps cgi |
183 |
> chroot clamav clamd cli cracklib crypt ctype cups curl cxx daemon dbase dbi |
184 |
> dbus dedicated device-mapper dhcp dlz dmx dnsdb dovecot-sasl dri dump dvb |
185 |
> dvd dvdread dynamicplugin egl exceptions extensions extras fam fastcgi |
186 |
> filter ftp ftpd fuse g3dvl g722 g729 gallium gcrypt gd gdbm glamor glib |
187 |
> gnome gnuplot gpl gsm gstreamer gtk h323 hash headless hls http httpd |
188 |
> httppower hwdb icap-client icq icu imap ipv4 ipv6 java javacomm javamail |
189 |
> javascript jce jikes jpeg jpeg2k jpgraph json kde kmod ldap libvirtd lirc |
190 |
> lm_sensors lmtp maildir mdadm mmx mmxext mp3 msn mumble mysql mysqli |
191 |
> mytharchive mythgallery mythmusic mythtv nagios-dns nagios-game nagios-ntp |
192 |
> nagios-ping nagios-ssh nntp nptl nptlonly nsplugin nut oav odbc ogg openal |
193 |
> opengl openrc openssl openvpn pam pcap pcre pdf pdo perl phonon php png |
194 |
> policykit posix postgres procmail proxy python python3 qemu qt3support qt4 |
195 |
> quota quotas rdesktop rdesktop-vrdp readline reiser4 reiserfs rrdcgi |
196 |
> rrdgraph rrdtool rss samba sasl sdk sdl sensord server session sftp |
197 |
> simplexml slp smbclient sna snmp soap sockets speech speex spell spl sql |
198 |
> sqlite sqlite3 sse sse2 sse3 sse4 sse4_1 sse4a sse5 ssh ssl ssse3 subversion |
199 |
> svg swat sysfs syslog tcl tga threads threadsafe tk tokenizer tools |
200 |
> transcode truetype udev ulaw unconfined unicode upnp ups usb utils uxa vaapi |
201 |
> vdpau vhosts video vim vim-pager vim-plugin vim-syntax vnc vorbis wav webdav |
202 |
> webdav-serf webmail winbind x264 xcb xine xinetd xml xorg xsl xv xvmc yahoo |
203 |
> zip zlib" ABI_X86="64" APACHE2_MODULES="actions alias auth_basic auth_digest |
204 |
> authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm |
205 |
> authz_default authz_groupfile authz_host authz_owner authz_user autoindex |
206 |
> cache cgi cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires |
207 |
> ext_filter file_cache filter headers ident imagemap include info log_config |
208 |
> logio mem_cache mime mime_magic negotiation php proxy proxy_ajp |
209 |
> proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status |
210 |
> unique_id userdir usertrack vhost_alias" CPU_FLAGS_X86="aes avx avx2 fma3 |
211 |
> mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" |
212 |
> ELIBC="glibc" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev mouse keyboard" |
213 |
> KERNEL="linux" LIRC_DEVICES="dvico" NETBEANS_MODULES="nb harness ide groovy |
214 |
> php ruby ergonomics enterprise apisupport java profiler websvccommon" |
215 |
> PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" |
216 |
> QEMU_SOFTMMU_TARGETS="x86_64" QEMU_USER_TARGETS="x86_64" |
217 |
> RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="intel i915" |
218 |
> USE_PYTHON="2.7" |
219 |
> Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, |
220 |
> PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, |
221 |
> PORTAGE_RSYNC_EXTRA_OPTS |
222 |
> |
223 |
> -- |
224 |
> --- |
225 |
> |
226 |
> Regards, |
227 |
> Rod Smart |
228 |
> 0417 513 286 |
229 |
> |
230 |
> |
231 |
|
232 |
NormFlags is an enum defined in the include file below. |
233 |
|
234 |
snort-2.9.7.5/src/preprocessors/spp_normalize.h:22,57 |
235 |
#ifndef __SPP_NORMALIZE_H__ |
236 |
#define __SPP_NORMALIZE_H__ |
237 |
|
238 |
#ifdef NORMALIZER |
239 |
|
240 |
// these control protocol specific normalizations |
241 |
|
242 |
typedef enum { |
243 |
<snip> |
244 |
} NormFlags; |
245 |
|
246 |
The include file is listed in the source file below. |
247 |
|
248 |
snort-2.9.7.5/src/preprocessors/Stream6/snort_stream_tcp.c:75 |
249 |
#include "spp_normalize.h" |
250 |
|
251 |
As Fernando pointed out, ensure you have the normalizer flag enabled |
252 |
and give it another try. |