Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] Snort compiling problems Alexander Kapshuk <alexander.kapshuk@×××××.com>
Re: [gentoo-user] Snort compiling problems Fernando Rodriguez <frodriguez.developer@×××××××.com>