Gentoo Archives: gentoo-user

From: Rod <Rod@×××××××.au>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Snort compiling problems
Date: Sat, 22 Aug 2015 07:34:38
Message-Id: 55D82600.202@Rods.id.au
1 Hi List,
2
3 I am having problems compiling Snort :(
4
5 I have tried
6
7 emerge snort
8
9 Also tried compiling in the comandline
10
11 I have tried all my installed gcc profiles...
12
13 # gcc-config -l
14 [1] x86_64-pc-linux-gnu-4.5.4
15 [2] x86_64-pc-linux-gnu-4.6.4
16 [3] x86_64-pc-linux-gnu-4.7.3
17 [4] x86_64-pc-linux-gnu-4.8.4 *
18
19 All failed :(
20
21 make[4]: Entering directory
22 '/var/tmp/portage/net-analyzer/snort-2.9.7.5/work/snort-2.9.7.5/src/preprocessors/Stream6'
23 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../..
24 -I../../../src -I../../../src/sfutil -I/usr/include/pcap
25 -I../../../src/output-plugins -I../../../src/detection-plugins
26 -I../../../src/dynamic-plugins -I../../../src/preprocessors
27 -I../../../src/preprocessors/portscan
28 -I../../../src/preprocessors/HttpInspect/include
29 -I../../../src/preprocessors/Session
30 -I../../../src/preprocessors/Stream6 -I../../../src/target-based
31 -I../../../src/control -I../../../src/file-process
32 -I../../../src/file-process/libs -I../../../src/side-channel
33 -I../../../src/side-channel/plugins -DLZMA -DNDEBUG -DNOCOREFILE
34 -DSF_WCHAR -DSNORT_RELOAD -DRELOAD_ERROR_FATAL -DNO_NON_ETHER_DECODER
35 -O2 -march=core2 -mtune=core2 -pipe -DSF_VISIBILITY -fvisibility=hidden
36 -fno-strict-aliasing -Wall -c -o snort_stream_tcp.o snort_stream_tcp.c
37 snort_stream_tcp.c:466:89: error: unknown type name 'NormFlags'
38 static inline int Stream_NormGetMode(uint16_t reassembly_policy, const
39 SnortConfig* sc, NormFlags nf)
40 ^
41 snort_stream_tcp.c: In function 'AddStreamNode':
42 snort_stream_tcp.c:6160:9: warning: implicit declaration of function
43 'NormalTrimPayloadIfWin' [-Wimplicit-function-declaration]
44 NormalTrimPayloadIfWin(p, 0, tdb);
45 ^
46 snort_stream_tcp.c: In function 'ProcessTcpData':
47 snort_stream_tcp.c:7275:9: warning: implicit declaration of function
48 'NormalTrimPayloadIfSyn' [-Wimplicit-function-declaration]
49 NormalTrimPayloadIfSyn(p, 0, tdb);
50 ^
51 snort_stream_tcp.c: In function 'ProcessTcp':
52 snort_stream_tcp.c:8381:17: warning: implicit declaration of function
53 'NormalTrimPayloadIfRst' [-Wimplicit-function-declaration]
54 NormalTrimPayloadIfRst(p, 0, tdb);
55 ^
56 snort_stream_tcp.c: At top level:
57 snort_stream_tcp.c:555:19: warning: 'CheckFlushPolicyOnData' used but
58 never defined [enabled by default]
59 static inline int CheckFlushPolicyOnData(
60 ^
61 snort_stream_tcp.c:1184:29: warning: 'StreamTCPCreateSession' defined
62 but not used [-Wunused-function]
63 static SessionControlBlock *StreamTCPCreateSession( const SessionKey
64 *key )
65 ^
66 snort_stream_tcp.c:1192:13: warning: 'StreamTCPDeactivateSession'
67 defined but not used [-Wunused-function]
68 static void StreamTCPDeactivateSession( SessionControlBlock *scb )
69 ^
70 snort_stream_tcp.c:1206:12: warning: 'StreamTCPDeleteSession' defined
71 but 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,
111 3.2.5-r6::gentoo, 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,
119 1.12.6::gentoo, 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,
122 4.7.3-r1::gentoo, 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
153 /usr/share/polkit-1/actions /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
181 amd64 apache2 api apm aspell asterisk async audio authdaemond authfile
182 autostart bash-completion berkdb bluray btrfs bundled-adodb bzip2
183 calendar caps cgi chroot clamav clamd cli cracklib crypt ctype cups curl
184 cxx daemon dbase dbi dbus dedicated device-mapper dhcp dlz dmx dnsdb
185 dovecot-sasl dri dump dvb dvd dvdread dynamicplugin egl exceptions
186 extensions extras fam fastcgi filter ftp ftpd fuse g3dvl g722 g729
187 gallium gcrypt gd gdbm glamor glib gnome gnuplot gpl gsm gstreamer gtk
188 h323 hash headless hls http httpd httppower hwdb icap-client icq icu
189 imap ipv4 ipv6 java javacomm javamail javascript jce jikes jpeg jpeg2k
190 jpgraph json kde kmod ldap libvirtd lirc lm_sensors lmtp maildir mdadm
191 mmx mmxext mp3 msn mumble mysql mysqli mytharchive mythgallery mythmusic
192 mythtv nagios-dns nagios-game nagios-ntp nagios-ping nagios-ssh nntp
193 nptl nptlonly nsplugin nut oav odbc ogg openal opengl openrc openssl
194 openvpn pam pcap pcre pdf pdo perl phonon php png policykit posix
195 postgres procmail proxy python python3 qemu qt3support qt4 quota quotas
196 rdesktop rdesktop-vrdp readline reiser4 reiserfs rrdcgi rrdgraph rrdtool
197 rss samba sasl sdk sdl sensord server session sftp simplexml slp
198 smbclient sna snmp soap sockets speech speex spell spl sql sqlite
199 sqlite3 sse sse2 sse3 sse4 sse4_1 sse4a sse5 ssh ssl ssse3 subversion
200 svg swat sysfs syslog tcl tga threads threadsafe tk tokenizer tools
201 transcode truetype udev ulaw unconfined unicode upnp ups usb utils uxa
202 vaapi vdpau vhosts video vim vim-pager vim-plugin vim-syntax vnc vorbis
203 wav webdav webdav-serf webmail winbind x264 xcb xine xinetd xml xorg xsl
204 xv xvmc yahoo zip zlib" ABI_X86="64" APACHE2_MODULES="actions alias
205 auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default
206 authn_file authz_dbm authz_default authz_groupfile authz_host
207 authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock dbd
208 deflate dir disk_cache env expires ext_filter file_cache filter headers
209 ident imagemap include info log_config logio mem_cache mime mime_magic
210 negotiation php proxy proxy_ajp proxy_balancer proxy_connect proxy_http
211 rewrite setenvif so speling status unique_id userdir usertrack
212 vhost_alias" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2
213 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" ELIBC="glibc"
214 GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev mouse keyboard"
215 KERNEL="linux" LIRC_DEVICES="dvico" NETBEANS_MODULES="nb harness ide
216 groovy php ruby ergonomics enterprise apisupport java profiler
217 websvccommon" PYTHON_SINGLE_TARGET="python2_7"
218 PYTHON_TARGETS="python2_7" QEMU_SOFTMMU_TARGETS="x86_64"
219 QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby19" USERLAND="GNU"
220 VIDEO_CARDS="intel i915"
221 USE_PYTHON="2.7"
222 Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL,
223 PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
224 PORTAGE_RSYNC_EXTRA_OPTS
225
226 --
227 ---
228
229 Regards,
230
231 Rod Smart
232 0417 513 286

Replies

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