On Sat, Aug 22, 2015 at 4:04 PM, Rod <r...@rods.id.au> wrote:
>
> On 08/22/2015 06:33 PM, Fernando Rodriguez wrote:
>>
>> On Saturday, August 22, 2015 5:34:24 PM Rod wrote:
>>>
>>>       Hi List,
>>>
>>>       I am having problems compiling Snort :(
>>>
>>>       I have tried
>>>
>>> emerge snort
>>>
>>>       Also tried compiling in the comandline
>>>
>>>       I have tried all my installed gcc profiles...
>>>
>>> # gcc-config -l
>>>    [1] x86_64-pc-linux-gnu-4.5.4
>>>    [2] x86_64-pc-linux-gnu-4.6.4
>>>    [3] x86_64-pc-linux-gnu-4.7.3
>>>    [4] x86_64-pc-linux-gnu-4.8.4 *
>>>
>>>       All failed :(
>>>
>>> make[4]: Entering directory
>>> '/var/tmp/portage/net-
>>
>> analyzer/snort-2.9.7.5/work/snort-2.9.7.5/src/preprocessors/Stream6'
>>>
>>> x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../..
>>> -I../../../src -I../../../src/sfutil -I/usr/include/pcap
>>> -I../../../src/output-plugins -I../../../src/detection-plugins
>>> -I../../../src/dynamic-plugins -I../../../src/preprocessors
>>> -I../../../src/preprocessors/portscan
>>> -I../../../src/preprocessors/HttpInspect/include
>>> -I../../../src/preprocessors/Session
>>> -I../../../src/preprocessors/Stream6 -I../../../src/target-based
>>> -I../../../src/control -I../../../src/file-process
>>> -I../../../src/file-process/libs -I../../../src/side-channel
>>> -I../../../src/side-channel/plugins  -DLZMA -DNDEBUG -DNOCOREFILE
>>> -DSF_WCHAR -DSNORT_RELOAD -DRELOAD_ERROR_FATAL -DNO_NON_ETHER_DECODER
>>> -O2 -march=core2 -mtune=core2 -pipe -DSF_VISIBILITY -fvisibility=hidden
>>> -fno-strict-aliasing -Wall -c -o snort_stream_tcp.o snort_stream_tcp.c
>>> snort_stream_tcp.c:466:89: error: unknown type name 'NormFlags'
>>>    static inline int Stream_NormGetMode(uint16_t reassembly_policy, const
>>> SnortConfig* sc, NormFlags nf)
>>> ^
>>> snort_stream_tcp.c: In function 'AddStreamNode':
>>> snort_stream_tcp.c:6160:9: warning: implicit declaration of function
>>> 'NormalTrimPayloadIfWin' [-Wimplicit-function-declaration]
>>>            NormalTrimPayloadIfWin(p, 0, tdb);
>>>            ^
>>> snort_stream_tcp.c: In function 'ProcessTcpData':
>>> snort_stream_tcp.c:7275:9: warning: implicit declaration of function
>>> 'NormalTrimPayloadIfSyn' [-Wimplicit-function-declaration]
>>>            NormalTrimPayloadIfSyn(p, 0, tdb);
>>>            ^
>>> snort_stream_tcp.c: In function 'ProcessTcp':
>>> snort_stream_tcp.c:8381:17: warning: implicit declaration of function
>>> 'NormalTrimPayloadIfRst' [-Wimplicit-function-declaration]
>>>                    NormalTrimPayloadIfRst(p, 0, tdb);
>>>                    ^
>>> snort_stream_tcp.c: At top level:
>>> snort_stream_tcp.c:555:19: warning: 'CheckFlushPolicyOnData' used but
>>> never defined [enabled by default]
>>>    static inline int CheckFlushPolicyOnData(
>>>                      ^
>>> snort_stream_tcp.c:1184:29: warning: 'StreamTCPCreateSession' defined
>>> but not used [-Wunused-function]
>>>    static SessionControlBlock *StreamTCPCreateSession( const SessionKey
>>> *key )
>>>                                ^
>>> snort_stream_tcp.c:1192:13: warning: 'StreamTCPDeactivateSession'
>>> defined but not used [-Wunused-function]
>>>    static void StreamTCPDeactivateSession( SessionControlBlock *scb )
>>>                ^
>>> snort_stream_tcp.c:1206:12: warning: 'StreamTCPDeleteSession' defined
>>> but not used [-Wunused-function]
>>>    static int StreamTCPDeleteSession( const SessionKey *key )
>>>               ^
>>> Makefile:389: recipe for target 'snort_stream_tcp.o' failed
>>> make[4]: *** [snort_stream_tcp.o] Error 1
>>> make[4]: Leaving directory
>>> '/var/tmp/portage/net-
>>
>> analyzer/snort-2.9.7.5/work/snort-2.9.7.5/src/preprocessors/Stream6'
>>>
>>> Makefile:471: recipe for target 'all-recursive' failed
>>> make[3]: *** [all-recursive] Error 1
>>> make[3]: Leaving directory
>>> '/var/tmp/portage/net-
>>
>> analyzer/snort-2.9.7.5/work/snort-2.9.7.5/src/preprocessors'
>>>
>>> Makefile:552: recipe for target 'all-recursive' failed
>>> make[2]: *** [all-recursive] Error 1
>>> make[2]: Leaving directory
>>> '/var/tmp/portage/net-analyzer/snort-2.9.7.5/work/snort-2.9.7.5/src'
>>> Makefile:517: recipe for target 'all-recursive' failed
>>> make[1]: *** [all-recursive] Error 1
>>> make[1]: Leaving directory
>>> '/var/tmp/portage/net-analyzer/snort-2.9.7.5/work/snort-2.9.7.5'
>>> Makefile:383: recipe for target 'all' failed
>>> make: *** [all] Error 2
>>>
>>>
>>> Portage 2.2.18 (python 2.7.9-final-0, default/linux/amd64/13.0/desktop,
>>> gcc-4.8.4, glibc-2.20-r2, 3.18.7-gentoo x86_64)
>>> =================================================================
>>>                            System Settings
>>> =================================================================
>>> System uname:
>>> Linux-3.18.7-gentoo-x86_64-Intel-R-_Core-TM-_i5-4570_CPU_@_3.20GHz-with-
>>
>> gentoo-2.2
>>>
>>> KiB Mem:    15316468 total,    543168 free
>>> KiB Swap:   33554428 total,  32086124 free
>>> Timestamp of repository gentoo: Fri, 21 Aug 2015 18:30:01 +0000
>>> sh bash 4.2_p45
>>> ld GNU ld (Gentoo 2.24 p1.4) 2.24
>>> distcc 3.1 x86_64-pc-linux-gnu [disabled]
>>> app-shells/bash:          4.2_p45::gentoo
>>> dev-java/java-config:     2.2.0::gentoo
>>> dev-lang/perl:            5.18.2-r2::gentoo
>>> dev-lang/python:          2.7.9-r1::gentoo, 3.1.5::gentoo,
>>> 3.2.5-r6::gentoo, 3.4.1::gentoo
>>> dev-util/cmake:           2.8.12.2-r1::gentoo
>>> dev-util/pkgconfig:       0.28-r1::gentoo
>>> sys-apps/baselayout:      2.2::gentoo
>>> sys-apps/openrc:          0.16.4::gentoo
>>> sys-apps/sandbox:         2.6-r1::gentoo
>>> sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
>>> sys-devel/automake:       1.9.6-r3::gentoo, 1.11.6::gentoo,
>>> 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
>>> sys-devel/binutils:       2.24-r3::gentoo
>>> sys-devel/gcc:            4.5.4::gentoo, 4.6.4::gentoo,
>>> 4.7.3-r1::gentoo, 4.8.4::gentoo
>>> sys-devel/gcc-config:     1.7.3::gentoo
>>> sys-devel/libtool:        2.4.6::gentoo
>>> sys-devel/make:           4.1-r1::gentoo
>>> sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
>>> sys-libs/glibc:           2.20-r2::gentoo
>>> Repositories:
>>>
>>> gentoo
>>>       location: /var/video/media/portage
>>>       sync-type: rsync
>>>       sync-uri: rsync://rsync.gentoo.org/gentoo-portage
>>>       priority: -1000
>>>
>>> Mythtv-Ebuilds
>>>       location: /usr/local/mythtv_portage/Gentoo
>>>       masters: gentoo
>>>       priority: 0
>>>
>>> megacoffee
>>>       location: /var/lib/layman/megacoffee
>>>       masters: gentoo
>>>       priority: 50
>>>
>>> ACCEPT_KEYWORDS="amd64"
>>> ACCEPT_LICENSE="*"
>>> CBUILD="x86_64-pc-linux-gnu"
>>> CFLAGS="-O2 -march=core2 -mtune=core2 -pipe"
>>> CHOST="x86_64-pc-linux-gnu"
>>> CONFIG_PROTECT="/etc /home/mythtv/ /opt/openfire/resources/security/
>>> /usr/share/config /usr/share/gnupg/qualified.txt
>>> /usr/share/polkit-1/actions /var/bind"
>>> CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d
>>> /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release
>>> /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/
>>> /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/
>>> /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/
>>> /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
>>> CXXFLAGS="-O2 -march=core2 -mtune=core2 -pipe"
>>> DISTDIR="/var/video/media/portage/distfiles"
>>> FCFLAGS="-O2 -pipe"
>>> FEATURES="assume-digests binpkg-logs candy config-protect-if-modified
>>> distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch
>>> preserve-libs protect-owned sandbox selinux sfperms strict
>>> unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv
>>> usersandbox usersync"
>>> FFLAGS="-O2 -pipe"
>>> GENTOO_MIRRORS="http://distfiles.gentoo.org";
>>> LANG="en_US.UTF-8"
>>> LDFLAGS="-Wl,-O1 -Wl,--as-needed"
>>> MAKEOPTS="-j1"
>>> PKGDIR="/var/video/media/portage/distfiles/packages"
>>> PORTAGE_CONFIGROOT="/"
>>> PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
>>> --omit-dir-times --compress --force --whole-file --delete --stats
>>> --human-readable --timeout=180 --exclude=/distfiles --exclude=/local
>>> --exclude=/packages"
>>> PORTAGE_TMPDIR="/var/tmp"
>>> USE="X accessibility acpi activefilter additions ads afpacket aim alsa
>>> amd64 apache2 api apm aspell asterisk async audio authdaemond authfile
>>> autostart bash-completion berkdb bluray btrfs bundled-adodb bzip2
>>> calendar caps cgi chroot clamav clamd cli cracklib crypt ctype cups curl
>>> cxx daemon dbase dbi dbus dedicated device-mapper dhcp dlz dmx dnsdb
>>> dovecot-sasl dri dump dvb dvd dvdread dynamicplugin egl exceptions
>>> extensions extras fam fastcgi filter ftp ftpd fuse g3dvl g722 g729
>>> gallium gcrypt gd gdbm glamor glib gnome gnuplot gpl gsm gstreamer gtk
>>> h323 hash headless hls http httpd httppower hwdb icap-client icq icu
>>> imap ipv4 ipv6 java javacomm javamail javascript jce jikes jpeg jpeg2k
>>> jpgraph json kde kmod ldap libvirtd lirc lm_sensors lmtp maildir mdadm
>>> mmx mmxext mp3 msn mumble mysql mysqli mytharchive mythgallery mythmusic
>>> mythtv nagios-dns nagios-game nagios-ntp nagios-ping nagios-ssh nntp
>>> nptl nptlonly nsplugin nut oav odbc ogg openal opengl openrc openssl
>>> openvpn pam pcap pcre pdf pdo perl phonon php png policykit posix
>>> postgres procmail proxy python python3 qemu qt3support qt4 quota quotas
>>> rdesktop rdesktop-vrdp readline reiser4 reiserfs rrdcgi rrdgraph rrdtool
>>> rss samba sasl sdk sdl sensord server session sftp simplexml slp
>>> smbclient sna snmp soap sockets speech speex spell spl sql sqlite
>>> sqlite3 sse sse2 sse3 sse4 sse4_1 sse4a sse5 ssh ssl ssse3 subversion
>>> svg swat sysfs syslog tcl tga threads threadsafe tk tokenizer tools
>>> transcode truetype udev ulaw unconfined unicode upnp ups usb utils uxa
>>> vaapi vdpau vhosts video vim vim-pager vim-plugin vim-syntax vnc vorbis
>>> wav webdav webdav-serf webmail winbind x264 xcb xine xinetd xml xorg xsl
>>> xv xvmc yahoo zip zlib" ABI_X86="64" APACHE2_MODULES="actions alias
>>> auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default
>>> authn_file authz_dbm authz_default authz_groupfile authz_host
>>> authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock dbd
>>> deflate dir disk_cache env expires ext_filter file_cache filter headers
>>> ident imagemap include info log_config logio mem_cache mime mime_magic
>>> negotiation php proxy proxy_ajp proxy_balancer proxy_connect proxy_http
>>> rewrite setenvif so speling status unique_id userdir usertrack
>>> vhost_alias" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2
>>> sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" ELIBC="glibc"
>>> GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev mouse keyboard"
>>> KERNEL="linux" LIRC_DEVICES="dvico" NETBEANS_MODULES="nb harness ide
>>> groovy php ruby ergonomics enterprise apisupport java profiler
>>> websvccommon" PYTHON_SINGLE_TARGET="python2_7"
>>> PYTHON_TARGETS="python2_7" QEMU_SOFTMMU_TARGETS="x86_64"
>>> QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby19" USERLAND="GNU"
>>> VIDEO_CARDS="intel i915"
>>> USE_PYTHON="2.7"
>>> Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL,
>>> PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
>>> PORTAGE_RSYNC_EXTRA_OPTS
>>>
>>>
>> Did you disabled to "normalizer" use flags?
>> If so enable it and file a bug, it looks like it won't build without it.
>>
> Thank you, but still no luck
>
> Making all in Stream6
> make[4]: Entering directory
> '/var/tmp/portage/net-analyzer/snort-2.9.7.5/work/snort-2.9.7.5/src/preprocessors/Stream6'
> x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../..
> -I../../../src -I../../../src/sfutil -I/usr/include/pcap
> -I../../../src/output-plugins -I../../../src/detection-plugins
> -I../../../src/dynamic-plugins -I../../../src/preprocessors
> -I../../../src/preprocessors/portscan
> -I../../../src/preprocessors/HttpInspect/include
> -I../../../src/preprocessors/Session -I../../../src/preprocessors/Stream6
> -I../../../src/target-based -I../../../src/control
> -I../../../src/file-process -I../../../src/file-process/libs
> -I../../../src/side-channel -I../../../src/side-channel/plugins  -DLZMA
> -DNDEBUG -DNOCOREFILE -DSF_WCHAR -DSNORT_RELOAD -DRELOAD_ERROR_FATAL
> -DNO_NON_ETHER_DECODER  -O2 -march=core2 -mtune=core2 -pipe -DSF_VISIBILITY
> -fvisibility=hidden -fno-strict-aliasing -Wall -c -o snort_stream_tcp.o
> snort_stream_tcp.c
> snort_stream_tcp.c:466:89: error: unknown type name 'NormFlags'
>  static inline int Stream_NormGetMode(uint16_t reassembly_policy, const
> SnortConfig* sc, NormFlags nf)
> ^
> snort_stream_tcp.c: In function 'AddStreamNode':
> snort_stream_tcp.c:6160:9: warning: implicit declaration of function
> 'NormalTrimPayloadIfWin' [-Wimplicit-function-declaration]
>          NormalTrimPayloadIfWin(p, 0, tdb);
>          ^
> snort_stream_tcp.c: In function 'ProcessTcpData':
> snort_stream_tcp.c:7275:9: warning: implicit declaration of function
> 'NormalTrimPayloadIfSyn' [-Wimplicit-function-declaration]
>          NormalTrimPayloadIfSyn(p, 0, tdb);
>          ^
> snort_stream_tcp.c: In function 'ProcessTcp':
> snort_stream_tcp.c:8381:17: warning: implicit declaration of function
> 'NormalTrimPayloadIfRst' [-Wimplicit-function-declaration]
>                  NormalTrimPayloadIfRst(p, 0, tdb);
>                  ^
> snort_stream_tcp.c: At top level:
> snort_stream_tcp.c:555:19: warning: 'CheckFlushPolicyOnData' used but never
> defined [enabled by default]
>  static inline int CheckFlushPolicyOnData(
>                    ^
> snort_stream_tcp.c:1184:29: warning: 'StreamTCPCreateSession' defined but
> not used [-Wunused-function]
>  static SessionControlBlock *StreamTCPCreateSession( const SessionKey *key )
>                              ^
> snort_stream_tcp.c:1192:13: warning: 'StreamTCPDeactivateSession' defined
> but not used [-Wunused-function]
>  static void StreamTCPDeactivateSession( SessionControlBlock *scb )
>              ^
> snort_stream_tcp.c:1206:12: warning: 'StreamTCPDeleteSession' defined but
> not used [-Wunused-function]
>  static int StreamTCPDeleteSession( const SessionKey *key )
>             ^
> Makefile:389: recipe for target 'snort_stream_tcp.o' failed
> make[4]: *** [snort_stream_tcp.o] Error 1
> make[4]: Leaving directory
> '/var/tmp/portage/net-analyzer/snort-2.9.7.5/work/snort-2.9.7.5/src/preprocessors/Stream6'
> Makefile:471: recipe for target 'all-recursive' failed
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory
> '/var/tmp/portage/net-analyzer/snort-2.9.7.5/work/snort-2.9.7.5/src/preprocessors'
> Makefile:552: recipe for target 'all-recursive' failed
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory
> '/var/tmp/portage/net-analyzer/snort-2.9.7.5/work/snort-2.9.7.5/src'
> Makefile:517: recipe for target 'all-recursive' failed
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> '/var/tmp/portage/net-analyzer/snort-2.9.7.5/work/snort-2.9.7.5'
> Makefile:383: recipe for target 'all' failed
> make: *** [all] Error 2
>
> --
> ---
>
>       Regards,
>          Rod Smart
>       0417 513 286
>
>

The ebuild says that there should be a config.log and a build.log preserved.
Would you care to share those?

Reply via email to