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