Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] Snort compiling problems Rod <Rod@×××××××.au>