Gentoo Archives: gentoo-user

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