Cook: sagan 0.2.0 ================================================================================ QA: checking package receipt... Checking build dependencies... Installing (pkg/local): libesmtp-1.0.6-i486 Installing (pkg/local): libesmtp-dev-1.0.6-i486 Installing (pkg/local): libnl-3.4.0-i486 Installing (pkg/local): libnl-tools-3.4.0-i486 Installing (pkg/local): libnl-dev-3.4.0-any Installing (pkg/local): libpcap-dev-1.9.0-any Installing (pkg/local): libpcap-1.9.0-i486 Installing (pkg/local): libdnet-1.12-i486 Installing (pkg/local): libdnet-dev-1.12-i486 Installing (pkg/local): libestr-0.1.2-i486 Installing (pkg/local): libee-0.3.2-i486 Installing (pkg/local): liblognorm-0.3.7-i486 Installing (pkg/local): liblognorm-dev-0.3.7-i486 Installing (pkg/local): libpcre-8.42-i486 Installing (pkg/local): libpcre16-8.42-i486 Installing (pkg/local): libpcre32-8.42-i486 Installing (pkg/local): libpcrecpp-8.42-i486 Installing (pkg/local): libpcreposix-8.42-i486 Installing (pkg/local): pcre-8.42-any Installing (pkg/local): pcre-apps-8.42-i486 Installing (pkg/local): pcre-dev-8.42-any Installing (pkg/local): libmysqlclient-5.5.59-i486 Installing (pkg/local): libaio-0.3.111-i486 Installing (pkg/local): mysql-client-5.5.59-i486 Installing (pkg/local): mysql-5.5.59-i486 Installing (pkg/local): libgdbm-1.18.1-i486 Installing (pkg/local): perl-core-5.28.1-i486 Installing (pkg/local): perl-5.28.1-i486 Installing (pkg/local): mysql-test-5.5.59-i486 Installing (pkg/local): mysql-dev-5.5.59-i486 Installing (pkg/local): libpostgresqlclient-9.5.4-i486 Installing (pkg/local): postgresql-client-9.5.4-i486 Installing (pkg/local): postgresql-9.5.4-i486 Installing (pkg/local): postgresql-dev-9.5.4-i486 Extracting source archive "sagan-0.2.0.tar.gz" Executing: compile_rules CFLAGS : -march=i486 -Os -pipe -mindirect-branch=thunk CXXLAGS : -march=i486 -Os -pipe -mindirect-branch=thunk CPPFLAGS : -D_GLIBCXX_USE_C99_MATH=1 LDFLAGS : -Wl,-Os,--as-needed Preparing set mysql Preparing set pgsql Switching to the default set ================================================================================ src : /home/slitaz/wok/sagan/source/sagan-0.2.0 install: /home/slitaz/wok/sagan/install configure: loading site script /etc/slitaz/cook.site checking build system type... i486-slitaz-linux-gnu checking host system type... i486-slitaz-linux-gnu checking target system type... i486-slitaz-linux-gnu checking for i486-slitaz-linux-gcc... i486-slitaz-linux-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether i486-slitaz-linux-gcc accepts -g... yes checking for i486-slitaz-linux-gcc option to accept ISO C89... none needed checking how to run the C preprocessor... i486-slitaz-linux-gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking whether byte ordering is bigendian... no checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... ./install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking for style of include used by make... GNU checking dependency style of i486-slitaz-linux-gcc... gcc3 checking for i486-slitaz-linux-gcc... (cached) i486-slitaz-linux-gcc checking whether we are using the GNU C compiler... (cached) yes checking whether i486-slitaz-linux-gcc accepts -g... (cached) yes checking for i486-slitaz-linux-gcc option to accept ISO C89... (cached) none needed checking whether make sets $(MAKE)... (cached) yes checking for ANSI C header files... (cached) yes checking for sys/wait.h that is POSIX.1 compatible... yes checking stdio.h usability... yes checking stdio.h presence... yes checking for stdio.h... yes checking for stdlib.h... (cached) yes checking for sys/types.h... (cached) yes checking for unistd.h... (cached) yes checking for stdint.h... (cached) yes checking for inttypes.h... (cached) yes checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking ctype.h usability... yes checking ctype.h presence... yes checking for ctype.h... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking for sys/stat.h... (cached) yes checking for string.h... (cached) yes checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking time.h usability... yes checking time.h presence... yes checking for time.h... yes checking pcre.h usability... yes checking pcre.h presence... yes checking for pcre.h... yes checking stdarg.h usability... yes checking stdarg.h presence... yes checking for stdarg.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking for an ANSI C-conforming const... yes checking whether time.h and sys/time.h may both be included... yes checking whether i486-slitaz-linux-gcc needs -traditional... no checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking for sys/socket.h... (cached) yes checking types of arguments for select... int,fd_set *,struct timeval * checking whether lstat correctly handles trailing slash... yes checking whether stat accepts an empty string... no checking return type of signal handlers... void checking for strftime... yes checking for pid_t... yes checking vfork.h usability... no checking vfork.h presence... no checking for vfork.h... no checking for fork... yes checking for vfork... yes checking for working fork... yes checking for working vfork... (cached) yes checking for stdlib.h... (cached) yes checking for GNU libc compatible realloc... yes checking for pid_t... (cached) yes checking for size_t... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for select... yes checking for strstr... yes checking for strchr... yes checking for strcmp... yes checking for strlen... yes checking for sizeof... no checking for write... yes checking for snprintf... yes checking for strncat... yes checking for strlcat... no checking for strlcpy... no checking for getopt_long... yes checking for gethostbyname... yes checking for socket... yes checking for htons... yes checking for connect... yes checking for send... yes checking for recv... yes checking for dup2... yes checking for strspn... yes checking for strdup... yes checking for main in -lpcre... yes checking for main in -lpthread... yes checking for main in -lm... yes ------- libesmtp support is enabled ------- checking libesmtp.h usability... yes checking libesmtp.h presence... yes checking for libesmtp.h... yes checking for main in -lesmtp... yes ------- libpcap support is enabled ------- checking pcap.h usability... yes checking pcap.h presence... yes checking for pcap.h... yes checking net/if.h usability... yes checking net/if.h presence... yes checking for net/if.h... yes checking net/if_arp.h usability... yes checking net/if_arp.h presence... yes checking for net/if_arp.h... yes checking netinet/in_systm.h usability... yes checking netinet/in_systm.h presence... yes checking for netinet/in_systm.h... yes checking netinet/if_ether.h usability... yes checking netinet/if_ether.h presence... yes checking for netinet/if_ether.h... yes checking netinet/ip.h usability... yes checking netinet/ip.h presence... yes checking for netinet/ip.h... yes checking netinet/udp.h usability... yes checking netinet/udp.h presence... yes checking for netinet/udp.h... yes checking for main in -lpcap... yes ------- libdnet support is enabled ------- checking dnet.h usability... yes checking dnet.h presence... yes checking for dnet.h... yes checking for main in -ldnet... yes configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating config.h config.status: executing depfiles commands ,-._,-. Sagan has been configured! \/)"(\/ (_o_) Champ Clark III & The Quadrant InfoSec Team [quadrantsec.com] / \/) Copyright (C) 2009-2011 Quadrant Information Security, et al. (|| ||) oo-oo make all-recursive make[1]: Entering directory '/home/slitaz/wok/sagan/source/sagan-0.2.0' Making all in src make[2]: Entering directory '/home/slitaz/wok/sagan/source/sagan-0.2.0/src' i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan.o -MD -MP -MF .deps/sagan.Tpo -c -o sagan.o sagan.c i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-classifications.o -MD -MP -MF .deps/sagan-classifications.Tpo -c -o sagan-classifications.o sagan-classifications.c i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-config.o -MD -MP -MF .deps/sagan-config.Tpo -c -o sagan-config.o sagan-config.c i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-lockfile.o -MD -MP -MF .deps/sagan-lockfile.Tpo -c -o sagan-lockfile.o sagan-lockfile.c i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-references.o -MD -MP -MF .deps/sagan-references.Tpo -c -o sagan-references.o sagan-references.c i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-rules.o -MD -MP -MF .deps/sagan-rules.Tpo -c -o sagan-rules.o sagan-rules.c sagan.c: In function 'main': sagan.c:339:11: warning: statement will never be executed [-Wswitch-unreachable] if (c == -1) break; ~~^~~~~ mv -f .deps/sagan-lockfile.Tpo .deps/sagan-lockfile.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-signal.o -MD -MP -MF .deps/sagan-signal.Tpo -c -o sagan-signal.o sagan-signal.c sagan-references.c: In function 'reflookup': sagan-references.c:144:7: warning: function returns address of local variable [-Wreturn-local-addr] return(ret); ^ sagan-references.c:121:6: note: declared here char reftmp[2048]=""; ^~~~~~ mv -f .deps/sagan-classifications.Tpo .deps/sagan-classifications.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-key.o -MD -MP -MF .deps/sagan-key.Tpo -c -o sagan-key.o sagan-key.c mv -f .deps/sagan-references.Tpo .deps/sagan-references.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-stats.o -MD -MP -MF .deps/sagan-stats.Tpo -c -o sagan-stats.o sagan-stats.c mv -f .deps/sagan-signal.Tpo .deps/sagan-signal.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-strlcat.o -MD -MP -MF .deps/sagan-strlcat.Tpo -c -o sagan-strlcat.o sagan-strlcat.c mv -f .deps/sagan-key.Tpo .deps/sagan-key.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-strlcpy.o -MD -MP -MF .deps/sagan-strlcpy.Tpo -c -o sagan-strlcpy.o sagan-strlcpy.c mv -f .deps/sagan-stats.Tpo .deps/sagan-stats.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-usage.o -MD -MP -MF .deps/sagan-usage.Tpo -c -o sagan-usage.o sagan-usage.c mv -f .deps/sagan-strlcat.Tpo .deps/sagan-strlcat.Po mv -f .deps/sagan-strlcpy.Tpo .deps/sagan-strlcpy.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-util.o -MD -MP -MF .deps/sagan-util.Tpo -c -o sagan-util.o sagan-util.c i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-plog.o -MD -MP -MF .deps/sagan-plog.Tpo -c -o sagan-plog.o sagan-plog.c mv -f .deps/sagan-config.Tpo .deps/sagan-config.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT parse-ip.o -MD -MP -MF .deps/parse-ip.Tpo -c -o parse-ip.o `test -f 'parsers/parse-ip.c' || echo './'`parsers/parse-ip.c mv -f .deps/sagan-usage.Tpo .deps/sagan-usage.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT parse-port.o -MD -MP -MF .deps/parse-port.Tpo -c -o parse-port.o `test -f 'parsers/parse-port.c' || echo './'`parsers/parse-port.c mv -f .deps/sagan-rules.Tpo .deps/sagan-rules.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-alert.o -MD -MP -MF .deps/sagan-alert.Tpo -c -o sagan-alert.o `test -f 'output-plugins/sagan-alert.c' || echo './'`output-plugins/sagan-alert.c parsers/parse-ip.c: In function 'parse_ip_simple': cc1: warning: function may return address of local variable [-Wreturn-local-addr] parsers/parse-ip.c:54:6: note: declared here char lastgood[33]; ^~~~~~~~ mv -f .deps/parse-ip.Tpo .deps/parse-ip.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-snort.o -MD -MP -MF .deps/sagan-snort.Tpo -c -o sagan-snort.o `test -f 'output-plugins/sagan-snort.c' || echo './'`output-plugins/sagan-snort.c sagan-plog.c: In function 'plog_handler': sagan-plog.c:85:17: warning: 'pcap_lookupdev' is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] if((iface = pcap_lookupdev(eb)) == (char *)0) ^~ In file included from /usr/include/pcap.h:43, from sagan-plog.c:39: /usr/include/pcap/pcap.h:326:16: note: declared here PCAP_API char *pcap_lookupdev(char *) ^~~~~~~~~~~~~~ mv -f .deps/sagan-snort.Tpo .deps/sagan-snort.Po mv -f .deps/sagan.Tpo .deps/sagan.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-esmtp.o -MD -MP -MF .deps/sagan-esmtp.Tpo -c -o sagan-esmtp.o `test -f 'output-plugins/sagan-esmtp.c' || echo './'`output-plugins/sagan-esmtp.c i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-external.o -MD -MP -MF .deps/sagan-external.Tpo -c -o sagan-external.o `test -f 'output-plugins/sagan-external.c' || echo './'`output-plugins/sagan-external.c mv -f .deps/sagan-plog.Tpo .deps/sagan-plog.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-prelude.o -MD -MP -MF .deps/sagan-prelude.Tpo -c -o sagan-prelude.o `test -f 'output-plugins/sagan-prelude.c' || echo './'`output-plugins/sagan-prelude.c mv -f .deps/parse-port.Tpo .deps/parse-port.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-unified2.o -MD -MP -MF .deps/sagan-unified2.Tpo -c -o sagan-unified2.o `test -f 'output-plugins/sagan-unified2.c' || echo './'`output-plugins/sagan-unified2.c mv -f .deps/sagan-alert.Tpo .deps/sagan-alert.Po mv -f .deps/sagan-prelude.Tpo .deps/sagan-prelude.Po mv -f .deps/sagan-external.Tpo .deps/sagan-external.Po mv -f .deps/sagan-esmtp.Tpo .deps/sagan-esmtp.Po In file included from /usr/include/arpa/inet.h:22, from output-plugins/sagan-unified2.c:40: output-plugins/sagan-unified2.c: In function 'Sagan_Unified2': output-plugins/sagan-unified2.c:140:29: warning: implicit declaration of function 'ip2bit'; did you mean 'setbit'? [-Wimplicit-function-declaration] alertdata.ip_source = htonl(ip2bit(Event->config, Event->ip_src)); ^~~~~~ sagan-util.c: In function 'dns_lookup': cc1: warning: function may return address of local variable [-Wreturn-local-addr] sagan-util.c:360:10: note: declared here char ipstr[INET6_ADDRSTRLEN]; ^~~~~ mv -f .deps/sagan-util.Tpo .deps/sagan-util.Po mv -f .deps/sagan-unified2.Tpo .deps/sagan-unified2.Po i486-slitaz-linux-gcc -march=i486 -Os -pipe -mindirect-branch=thunk -Wl,-Os,--as-needed -o sagan sagan.o sagan-classifications.o sagan-config.o sagan-lockfile.o sagan-references.o sagan-rules.o sagan-signal.o sagan-key.o sagan-stats.o sagan-strlcat.o sagan-strlcpy.o sagan-usage.o sagan-util.o sagan-plog.o parse-ip.o parse-port.o sagan-alert.o sagan-snort.o sagan-esmtp.o sagan-external.o sagan-prelude.o sagan-unified2.o -ldnet -lpcap -lesmtp -lm -lpthread -lpcre make[2]: Leaving directory '/home/slitaz/wok/sagan/source/sagan-0.2.0/src' make[2]: Entering directory '/home/slitaz/wok/sagan/source/sagan-0.2.0' make[2]: Leaving directory '/home/slitaz/wok/sagan/source/sagan-0.2.0' make[1]: Leaving directory '/home/slitaz/wok/sagan/source/sagan-0.2.0' Making install in src make[1]: Entering directory '/home/slitaz/wok/sagan/source/sagan-0.2.0/src' make[2]: Entering directory '/home/slitaz/wok/sagan/source/sagan-0.2.0/src' test -z "/usr/bin" || .././install-sh -c -d "/home/slitaz/wok/sagan/install/usr/bin" make[2]: Nothing to be done for 'install-data-am'. /usr/bin/install -c sagan '/home/slitaz/wok/sagan/install/usr/bin' make[2]: Leaving directory '/home/slitaz/wok/sagan/source/sagan-0.2.0/src' make[1]: Leaving directory '/home/slitaz/wok/sagan/source/sagan-0.2.0/src' make[1]: Entering directory '/home/slitaz/wok/sagan/source/sagan-0.2.0' make[2]: Entering directory '/home/slitaz/wok/sagan/source/sagan-0.2.0' make[2]: Nothing to be done for 'install-exec-am'. test -z "/home/slitaz/wok/sagan/install/etc/sagan" || /bin/mkdir -p "/home/slitaz/wok/sagan/install/etc/sagan" test -f "/home/slitaz/wok/sagan/install/etc/sagan/sagan.conf" || /usr/bin/install -c -m 644 etc/sagan.conf "/home/slitaz/wok/sagan/install/etc/sagan/sagan.conf" test -z "/home/slitaz/wok/sagan/install/usr/sbin" || /bin/mkdir -p "/home/slitaz/wok/sagan/install/usr/sbin" /usr/bin/install -c -d "/home/slitaz/wok/sagan/install/usr/share/man/man8" /usr/bin/install -c -m 644 etc/sagan.8 "/home/slitaz/wok/sagan/install/usr/share/man/man8" /usr/bin/install -c -m 755 src/sagan "/home/slitaz/wok/sagan/install/usr/sbin/sagan" /usr/bin/install -c -d "/home/slitaz/wok/sagan/install/var/log/sagan" /usr/bin/install -c -d "/home/slitaz/wok/sagan/install/var/run/sagan" ------------------------------------------------------------------------------ Sagan has been installed! You still need to do a few more things before your up and running. See https://wiki.quadrantsec.com/bin/view/Main/SaganHOWTO for more information. ------------------------------------------------------------------------------ make[2]: Leaving directory '/home/slitaz/wok/sagan/source/sagan-0.2.0' make[1]: Leaving directory '/home/slitaz/wok/sagan/source/sagan-0.2.0' ================================================================================ Executing strip on all files... Done Time: 0.25s. Size: 146120 B -> 125496 B. Save: 20 KB. Installing (pkg/local): advancecomp-static-2.1-i486 Compressing man pages... Done Time: 1.46s. Size: 2415 B -> 1263 B. Save: 1 KB. Cache hit: 1/1. Switching to the set 'mysql' ================================================================================ src : /home/slitaz/wok/sagan/source/sagan-0.2.0-mysql install: /home/slitaz/wok/sagan/install-mysql configure: loading site script /etc/slitaz/cook.site checking build system type... i486-slitaz-linux-gnu checking host system type... i486-slitaz-linux-gnu checking target system type... i486-slitaz-linux-gnu checking for i486-slitaz-linux-gcc... i486-slitaz-linux-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether i486-slitaz-linux-gcc accepts -g... yes checking for i486-slitaz-linux-gcc option to accept ISO C89... none needed checking how to run the C preprocessor... i486-slitaz-linux-gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking whether byte ordering is bigendian... no checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... ./install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking for style of include used by make... GNU checking dependency style of i486-slitaz-linux-gcc... gcc3 checking for i486-slitaz-linux-gcc... (cached) i486-slitaz-linux-gcc checking whether we are using the GNU C compiler... (cached) yes checking whether i486-slitaz-linux-gcc accepts -g... (cached) yes checking for i486-slitaz-linux-gcc option to accept ISO C89... (cached) none needed checking whether make sets $(MAKE)... (cached) yes checking for ANSI C header files... (cached) yes checking for sys/wait.h that is POSIX.1 compatible... yes checking stdio.h usability... yes checking stdio.h presence... yes checking for stdio.h... yes checking for stdlib.h... (cached) yes checking for sys/types.h... (cached) yes checking for unistd.h... (cached) yes checking for stdint.h... (cached) yes checking for inttypes.h... (cached) yes checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking ctype.h usability... yes checking ctype.h presence... yes checking for ctype.h... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking for sys/stat.h... (cached) yes checking for string.h... (cached) yes checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking time.h usability... yes checking time.h presence... yes checking for time.h... yes checking pcre.h usability... yes checking pcre.h presence... yes checking for pcre.h... yes checking stdarg.h usability... yes checking stdarg.h presence... yes checking for stdarg.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking for an ANSI C-conforming const... yes checking whether time.h and sys/time.h may both be included... yes checking whether i486-slitaz-linux-gcc needs -traditional... no checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking for sys/socket.h... (cached) yes checking types of arguments for select... int,fd_set *,struct timeval * checking whether lstat correctly handles trailing slash... yes checking whether stat accepts an empty string... no checking return type of signal handlers... void checking for strftime... yes checking for pid_t... yes checking vfork.h usability... no checking vfork.h presence... no checking for vfork.h... no checking for fork... yes checking for vfork... yes checking for working fork... yes checking for working vfork... (cached) yes checking for stdlib.h... (cached) yes checking for GNU libc compatible realloc... yes checking for pid_t... (cached) yes checking for size_t... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for select... yes checking for strstr... yes checking for strchr... yes checking for strcmp... yes checking for strlen... yes checking for sizeof... no checking for write... yes checking for snprintf... yes checking for strncat... yes checking for strlcat... no checking for strlcpy... no checking for getopt_long... yes checking for gethostbyname... yes checking for socket... yes checking for htons... yes checking for connect... yes checking for send... yes checking for recv... yes checking for dup2... yes checking for strspn... yes checking for strdup... yes checking for main in -lpcre... yes checking for main in -lpthread... yes checking for main in -lm... yes ------- MySQL Support is enabled ------- checking mysql/mysql.h usability... yes checking mysql/mysql.h presence... yes checking for mysql/mysql.h... yes checking mysql/errmsg.h usability... yes checking mysql/errmsg.h presence... yes checking for mysql/errmsg.h... yes checking for main in -lmysqlclient_r... yes ------- libesmtp support is enabled ------- checking libesmtp.h usability... yes checking libesmtp.h presence... yes checking for libesmtp.h... yes checking for main in -lesmtp... yes ------- libpcap support is enabled ------- checking pcap.h usability... yes checking pcap.h presence... yes checking for pcap.h... yes checking net/if.h usability... yes checking net/if.h presence... yes checking for net/if.h... yes checking net/if_arp.h usability... yes checking net/if_arp.h presence... yes checking for net/if_arp.h... yes checking netinet/in_systm.h usability... yes checking netinet/in_systm.h presence... yes checking for netinet/in_systm.h... yes checking netinet/if_ether.h usability... yes checking netinet/if_ether.h presence... yes checking for netinet/if_ether.h... yes checking netinet/ip.h usability... yes checking netinet/ip.h presence... yes checking for netinet/ip.h... yes checking netinet/udp.h usability... yes checking netinet/udp.h presence... yes checking for netinet/udp.h... yes checking for main in -lpcap... yes ------- libdnet support is enabled ------- checking dnet.h usability... yes checking dnet.h presence... yes checking for dnet.h... yes checking for main in -ldnet... yes configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating config.h config.status: executing depfiles commands ,-._,-. Sagan has been configured! \/)"(\/ (_o_) Champ Clark III & The Quadrant InfoSec Team [quadrantsec.com] / \/) Copyright (C) 2009-2011 Quadrant Information Security, et al. (|| ||) oo-oo make all-recursive make[1]: Entering directory '/home/slitaz/wok/sagan/source/sagan-0.2.0-mysql' Making all in src make[2]: Entering directory '/home/slitaz/wok/sagan/source/sagan-0.2.0-mysql/src' i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan.o -MD -MP -MF .deps/sagan.Tpo -c -o sagan.o sagan.c i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-classifications.o -MD -MP -MF .deps/sagan-classifications.Tpo -c -o sagan-classifications.o sagan-classifications.c i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-config.o -MD -MP -MF .deps/sagan-config.Tpo -c -o sagan-config.o sagan-config.c i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-lockfile.o -MD -MP -MF .deps/sagan-lockfile.Tpo -c -o sagan-lockfile.o sagan-lockfile.c i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-references.o -MD -MP -MF .deps/sagan-references.Tpo -c -o sagan-references.o sagan-references.c i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-rules.o -MD -MP -MF .deps/sagan-rules.Tpo -c -o sagan-rules.o sagan-rules.c mv -f .deps/sagan-lockfile.Tpo .deps/sagan-lockfile.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-signal.o -MD -MP -MF .deps/sagan-signal.Tpo -c -o sagan-signal.o sagan-signal.c sagan.c: In function 'main': sagan.c:339:11: warning: statement will never be executed [-Wswitch-unreachable] if (c == -1) break; ~~^~~~~ sagan-references.c: In function 'reflookup': sagan-references.c:144:7: warning: function returns address of local variable [-Wreturn-local-addr] return(ret); ^ sagan-references.c:121:6: note: declared here char reftmp[2048]=""; ^~~~~~ mv -f .deps/sagan-classifications.Tpo .deps/sagan-classifications.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-key.o -MD -MP -MF .deps/sagan-key.Tpo -c -o sagan-key.o sagan-key.c mv -f .deps/sagan-references.Tpo .deps/sagan-references.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-stats.o -MD -MP -MF .deps/sagan-stats.Tpo -c -o sagan-stats.o sagan-stats.c mv -f .deps/sagan-key.Tpo .deps/sagan-key.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-strlcat.o -MD -MP -MF .deps/sagan-strlcat.Tpo -c -o sagan-strlcat.o sagan-strlcat.c mv -f .deps/sagan-signal.Tpo .deps/sagan-signal.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-strlcpy.o -MD -MP -MF .deps/sagan-strlcpy.Tpo -c -o sagan-strlcpy.o sagan-strlcpy.c mv -f .deps/sagan-stats.Tpo .deps/sagan-stats.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-usage.o -MD -MP -MF .deps/sagan-usage.Tpo -c -o sagan-usage.o sagan-usage.c mv -f .deps/sagan-strlcat.Tpo .deps/sagan-strlcat.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-util.o -MD -MP -MF .deps/sagan-util.Tpo -c -o sagan-util.o sagan-util.c mv -f .deps/sagan-strlcpy.Tpo .deps/sagan-strlcpy.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-plog.o -MD -MP -MF .deps/sagan-plog.Tpo -c -o sagan-plog.o sagan-plog.c mv -f .deps/sagan-usage.Tpo .deps/sagan-usage.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT parse-ip.o -MD -MP -MF .deps/parse-ip.Tpo -c -o parse-ip.o `test -f 'parsers/parse-ip.c' || echo './'`parsers/parse-ip.c mv -f .deps/sagan-config.Tpo .deps/sagan-config.Po mv -f .deps/sagan-rules.Tpo .deps/sagan-rules.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT parse-port.o -MD -MP -MF .deps/parse-port.Tpo -c -o parse-port.o `test -f 'parsers/parse-port.c' || echo './'`parsers/parse-port.c i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-alert.o -MD -MP -MF .deps/sagan-alert.Tpo -c -o sagan-alert.o `test -f 'output-plugins/sagan-alert.c' || echo './'`output-plugins/sagan-alert.c sagan-plog.c: In function 'plog_handler': sagan-plog.c:85:17: warning: 'pcap_lookupdev' is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] if((iface = pcap_lookupdev(eb)) == (char *)0) ^~ In file included from /usr/include/pcap.h:43, from sagan-plog.c:39: /usr/include/pcap/pcap.h:326:16: note: declared here PCAP_API char *pcap_lookupdev(char *) ^~~~~~~~~~~~~~ mv -f .deps/sagan.Tpo .deps/sagan.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-snort.o -MD -MP -MF .deps/sagan-snort.Tpo -c -o sagan-snort.o `test -f 'output-plugins/sagan-snort.c' || echo './'`output-plugins/sagan-snort.c parsers/parse-ip.c: In function 'parse_ip_simple': cc1: warning: function may return address of local variable [-Wreturn-local-addr] parsers/parse-ip.c:54:6: note: declared here char lastgood[33]; ^~~~~~~~ sagan-util.c: In function 'sql_escape': cc1: warning: function may return address of local variable [-Wreturn-local-addr] sagan-util.c:254:7: note: declared here char tmpescaped[MAX_SYSLOGMSG]; ^~~~~~~~~~ mv -f .deps/parse-ip.Tpo .deps/parse-ip.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-esmtp.o -MD -MP -MF .deps/sagan-esmtp.Tpo -c -o sagan-esmtp.o `test -f 'output-plugins/sagan-esmtp.c' || echo './'`output-plugins/sagan-esmtp.c mv -f .deps/sagan-alert.Tpo .deps/sagan-alert.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-external.o -MD -MP -MF .deps/sagan-external.Tpo -c -o sagan-external.o `test -f 'output-plugins/sagan-external.c' || echo './'`output-plugins/sagan-external.c sagan-util.c: In function 'dns_lookup': cc1: warning: function may return address of local variable [-Wreturn-local-addr] sagan-util.c:360:10: note: declared here char ipstr[INET6_ADDRSTRLEN]; ^~~~~ mv -f .deps/sagan-plog.Tpo .deps/sagan-plog.Po mv -f .deps/parse-port.Tpo .deps/parse-port.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-prelude.o -MD -MP -MF .deps/sagan-prelude.Tpo -c -o sagan-prelude.o `test -f 'output-plugins/sagan-prelude.c' || echo './'`output-plugins/sagan-prelude.c i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-unified2.o -MD -MP -MF .deps/sagan-unified2.Tpo -c -o sagan-unified2.o `test -f 'output-plugins/sagan-unified2.c' || echo './'`output-plugins/sagan-unified2.c mv -f .deps/sagan-util.Tpo .deps/sagan-util.Po mv -f .deps/sagan-prelude.Tpo .deps/sagan-prelude.Po mv -f .deps/sagan-snort.Tpo .deps/sagan-snort.Po mv -f .deps/sagan-esmtp.Tpo .deps/sagan-esmtp.Po mv -f .deps/sagan-external.Tpo .deps/sagan-external.Po mv -f .deps/sagan-unified2.Tpo .deps/sagan-unified2.Po i486-slitaz-linux-gcc -march=i486 -Os -pipe -mindirect-branch=thunk -Wl,-Os,--as-needed -o sagan sagan.o sagan-classifications.o sagan-config.o sagan-lockfile.o sagan-references.o sagan-rules.o sagan-signal.o sagan-key.o sagan-stats.o sagan-strlcat.o sagan-strlcpy.o sagan-usage.o sagan-util.o sagan-plog.o parse-ip.o parse-port.o sagan-alert.o sagan-snort.o sagan-esmtp.o sagan-external.o sagan-prelude.o sagan-unified2.o -ldnet -lpcap -lesmtp -lmysqlclient_r -lm -lpthread -lpcre make[2]: Leaving directory '/home/slitaz/wok/sagan/source/sagan-0.2.0-mysql/src' make[2]: Entering directory '/home/slitaz/wok/sagan/source/sagan-0.2.0-mysql' make[2]: Leaving directory '/home/slitaz/wok/sagan/source/sagan-0.2.0-mysql' make[1]: Leaving directory '/home/slitaz/wok/sagan/source/sagan-0.2.0-mysql' Making install in src make[1]: Entering directory '/home/slitaz/wok/sagan/source/sagan-0.2.0-mysql/src' make[2]: Entering directory '/home/slitaz/wok/sagan/source/sagan-0.2.0-mysql/src' test -z "/usr/bin" || .././install-sh -c -d "/home/slitaz/wok/sagan/install-mysql/usr/bin" make[2]: Nothing to be done for 'install-data-am'. /usr/bin/install -c sagan '/home/slitaz/wok/sagan/install-mysql/usr/bin' make[2]: Leaving directory '/home/slitaz/wok/sagan/source/sagan-0.2.0-mysql/src' make[1]: Leaving directory '/home/slitaz/wok/sagan/source/sagan-0.2.0-mysql/src' make[1]: Entering directory '/home/slitaz/wok/sagan/source/sagan-0.2.0-mysql' make[2]: Entering directory '/home/slitaz/wok/sagan/source/sagan-0.2.0-mysql' make[2]: Nothing to be done for 'install-exec-am'. test -z "/home/slitaz/wok/sagan/install-mysql/etc/sagan" || /bin/mkdir -p "/home/slitaz/wok/sagan/install-mysql/etc/sagan" test -f "/home/slitaz/wok/sagan/install-mysql/etc/sagan/sagan.conf" || /usr/bin/install -c -m 644 etc/sagan.conf "/home/slitaz/wok/sagan/install-mysql/etc/sagan/sagan.conf" test -z "/home/slitaz/wok/sagan/install-mysql/usr/sbin" || /bin/mkdir -p "/home/slitaz/wok/sagan/install-mysql/usr/sbin" /usr/bin/install -c -d "/home/slitaz/wok/sagan/install-mysql/usr/share/man/man8" /usr/bin/install -c -m 644 etc/sagan.8 "/home/slitaz/wok/sagan/install-mysql/usr/share/man/man8" /usr/bin/install -c -m 755 src/sagan "/home/slitaz/wok/sagan/install-mysql/usr/sbin/sagan" /usr/bin/install -c -d "/home/slitaz/wok/sagan/install-mysql/var/log/sagan" /usr/bin/install -c -d "/home/slitaz/wok/sagan/install-mysql/var/run/sagan" ------------------------------------------------------------------------------ Sagan has been installed! You still need to do a few more things before your up and running. See https://wiki.quadrantsec.com/bin/view/Main/SaganHOWTO for more information. ------------------------------------------------------------------------------ make[2]: Leaving directory '/home/slitaz/wok/sagan/source/sagan-0.2.0-mysql' make[1]: Leaving directory '/home/slitaz/wok/sagan/source/sagan-0.2.0-mysql' ================================================================================ Executing strip on all files... Done Time: 0.25s. Size: 164120 B -> 141880 B. Save: 22 KB. Compressing man pages... Done Time: 0.30s. Size: 2415 B -> 1263 B. Save: 1 KB. Cache hit: 1/1. Switching to the set 'pgsql' ================================================================================ src : /home/slitaz/wok/sagan/source/sagan-0.2.0-pgsql install: /home/slitaz/wok/sagan/install-pgsql configure: loading site script /etc/slitaz/cook.site checking build system type... i486-slitaz-linux-gnu checking host system type... i486-slitaz-linux-gnu checking target system type... i486-slitaz-linux-gnu checking for i486-slitaz-linux-gcc... i486-slitaz-linux-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether i486-slitaz-linux-gcc accepts -g... yes checking for i486-slitaz-linux-gcc option to accept ISO C89... none needed checking how to run the C preprocessor... i486-slitaz-linux-gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking whether byte ordering is bigendian... no checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... ./install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking for style of include used by make... GNU checking dependency style of i486-slitaz-linux-gcc... gcc3 checking for i486-slitaz-linux-gcc... (cached) i486-slitaz-linux-gcc checking whether we are using the GNU C compiler... (cached) yes checking whether i486-slitaz-linux-gcc accepts -g... (cached) yes checking for i486-slitaz-linux-gcc option to accept ISO C89... (cached) none needed checking whether make sets $(MAKE)... (cached) yes checking for ANSI C header files... (cached) yes checking for sys/wait.h that is POSIX.1 compatible... yes checking stdio.h usability... yes checking stdio.h presence... yes checking for stdio.h... yes checking for stdlib.h... (cached) yes checking for sys/types.h... (cached) yes checking for unistd.h... (cached) yes checking for stdint.h... (cached) yes checking for inttypes.h... (cached) yes checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking ctype.h usability... yes checking ctype.h presence... yes checking for ctype.h... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking for sys/stat.h... (cached) yes checking for string.h... (cached) yes checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking time.h usability... yes checking time.h presence... yes checking for time.h... yes checking pcre.h usability... yes checking pcre.h presence... yes checking for pcre.h... yes checking stdarg.h usability... yes checking stdarg.h presence... yes checking for stdarg.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking for an ANSI C-conforming const... yes checking whether time.h and sys/time.h may both be included... yes checking whether i486-slitaz-linux-gcc needs -traditional... no checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking for sys/socket.h... (cached) yes checking types of arguments for select... int,fd_set *,struct timeval * checking whether lstat correctly handles trailing slash... yes checking whether stat accepts an empty string... no checking return type of signal handlers... void checking for strftime... yes checking for pid_t... yes checking vfork.h usability... no checking vfork.h presence... no checking for vfork.h... no checking for fork... yes checking for vfork... yes checking for working fork... yes checking for working vfork... (cached) yes checking for stdlib.h... (cached) yes checking for GNU libc compatible realloc... yes checking for pid_t... (cached) yes checking for size_t... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for select... yes checking for strstr... yes checking for strchr... yes checking for strcmp... yes checking for strlen... yes checking for sizeof... no checking for write... yes checking for snprintf... yes checking for strncat... yes checking for strlcat... no checking for strlcpy... no checking for getopt_long... yes checking for gethostbyname... yes checking for socket... yes checking for htons... yes checking for connect... yes checking for send... yes checking for recv... yes checking for dup2... yes checking for strspn... yes checking for strdup... yes checking for main in -lpcre... yes checking for main in -lpthread... yes checking for main in -lm... yes ------- PostgreSQL support is enabled ------- checking libpq-fe.h usability... yes checking libpq-fe.h presence... yes checking for libpq-fe.h... yes checking for main in -lpq... yes ------- libesmtp support is enabled ------- checking libesmtp.h usability... yes checking libesmtp.h presence... yes checking for libesmtp.h... yes checking for main in -lesmtp... yes ------- libpcap support is enabled ------- checking pcap.h usability... yes checking pcap.h presence... yes checking for pcap.h... yes checking net/if.h usability... yes checking net/if.h presence... yes checking for net/if.h... yes checking net/if_arp.h usability... yes checking net/if_arp.h presence... yes checking for net/if_arp.h... yes checking netinet/in_systm.h usability... yes checking netinet/in_systm.h presence... yes checking for netinet/in_systm.h... yes checking netinet/if_ether.h usability... yes checking netinet/if_ether.h presence... yes checking for netinet/if_ether.h... yes checking netinet/ip.h usability... yes checking netinet/ip.h presence... yes checking for netinet/ip.h... yes checking netinet/udp.h usability... yes checking netinet/udp.h presence... yes checking for netinet/udp.h... yes checking for main in -lpcap... yes ------- libdnet support is enabled ------- checking dnet.h usability... yes checking dnet.h presence... yes checking for dnet.h... yes checking for main in -ldnet... yes configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating config.h config.status: executing depfiles commands ,-._,-. Sagan has been configured! \/)"(\/ (_o_) Champ Clark III & The Quadrant InfoSec Team [quadrantsec.com] / \/) Copyright (C) 2009-2011 Quadrant Information Security, et al. (|| ||) oo-oo make all-recursive make[1]: Entering directory '/home/slitaz/wok/sagan/source/sagan-0.2.0-pgsql' Making all in src make[2]: Entering directory '/home/slitaz/wok/sagan/source/sagan-0.2.0-pgsql/src' i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -I/usr/include/postgresql -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan.o -MD -MP -MF .deps/sagan.Tpo -c -o sagan.o sagan.c i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -I/usr/include/postgresql -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-classifications.o -MD -MP -MF .deps/sagan-classifications.Tpo -c -o sagan-classifications.o sagan-classifications.c i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -I/usr/include/postgresql -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-config.o -MD -MP -MF .deps/sagan-config.Tpo -c -o sagan-config.o sagan-config.c i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -I/usr/include/postgresql -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-lockfile.o -MD -MP -MF .deps/sagan-lockfile.Tpo -c -o sagan-lockfile.o sagan-lockfile.c i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -I/usr/include/postgresql -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-references.o -MD -MP -MF .deps/sagan-references.Tpo -c -o sagan-references.o sagan-references.c i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -I/usr/include/postgresql -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-rules.o -MD -MP -MF .deps/sagan-rules.Tpo -c -o sagan-rules.o sagan-rules.c sagan.c: In function 'main': sagan.c:339:11: warning: statement will never be executed [-Wswitch-unreachable] if (c == -1) break; ~~^~~~~ mv -f .deps/sagan-lockfile.Tpo .deps/sagan-lockfile.Po mv -f .deps/sagan-classifications.Tpo .deps/sagan-classifications.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -I/usr/include/postgresql -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-signal.o -MD -MP -MF .deps/sagan-signal.Tpo -c -o sagan-signal.o sagan-signal.c i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -I/usr/include/postgresql -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-key.o -MD -MP -MF .deps/sagan-key.Tpo -c -o sagan-key.o sagan-key.c sagan-references.c: In function 'reflookup': sagan-references.c:144:7: warning: function returns address of local variable [-Wreturn-local-addr] return(ret); ^ sagan-references.c:121:6: note: declared here char reftmp[2048]=""; ^~~~~~ mv -f .deps/sagan-references.Tpo .deps/sagan-references.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -I/usr/include/postgresql -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-stats.o -MD -MP -MF .deps/sagan-stats.Tpo -c -o sagan-stats.o sagan-stats.c mv -f .deps/sagan-key.Tpo .deps/sagan-key.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -I/usr/include/postgresql -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-strlcat.o -MD -MP -MF .deps/sagan-strlcat.Tpo -c -o sagan-strlcat.o sagan-strlcat.c mv -f .deps/sagan-signal.Tpo .deps/sagan-signal.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -I/usr/include/postgresql -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-strlcpy.o -MD -MP -MF .deps/sagan-strlcpy.Tpo -c -o sagan-strlcpy.o sagan-strlcpy.c mv -f .deps/sagan-strlcat.Tpo .deps/sagan-strlcat.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -I/usr/include/postgresql -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-usage.o -MD -MP -MF .deps/sagan-usage.Tpo -c -o sagan-usage.o sagan-usage.c mv -f .deps/sagan-stats.Tpo .deps/sagan-stats.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -I/usr/include/postgresql -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-util.o -MD -MP -MF .deps/sagan-util.Tpo -c -o sagan-util.o sagan-util.c mv -f .deps/sagan-strlcpy.Tpo .deps/sagan-strlcpy.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -I/usr/include/postgresql -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-plog.o -MD -MP -MF .deps/sagan-plog.Tpo -c -o sagan-plog.o sagan-plog.c mv -f .deps/sagan-config.Tpo .deps/sagan-config.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -I/usr/include/postgresql -march=i486 -Os -pipe -mindirect-branch=thunk -MT parse-ip.o -MD -MP -MF .deps/parse-ip.Tpo -c -o parse-ip.o `test -f 'parsers/parse-ip.c' || echo './'`parsers/parse-ip.c mv -f .deps/sagan-usage.Tpo .deps/sagan-usage.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -I/usr/include/postgresql -march=i486 -Os -pipe -mindirect-branch=thunk -MT parse-port.o -MD -MP -MF .deps/parse-port.Tpo -c -o parse-port.o `test -f 'parsers/parse-port.c' || echo './'`parsers/parse-port.c mv -f .deps/sagan-rules.Tpo .deps/sagan-rules.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -I/usr/include/postgresql -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-alert.o -MD -MP -MF .deps/sagan-alert.Tpo -c -o sagan-alert.o `test -f 'output-plugins/sagan-alert.c' || echo './'`output-plugins/sagan-alert.c parsers/parse-ip.c: In function 'parse_ip_simple': cc1: warning: function may return address of local variable [-Wreturn-local-addr] parsers/parse-ip.c:54:6: note: declared here char lastgood[33]; ^~~~~~~~ mv -f .deps/parse-ip.Tpo .deps/parse-ip.Po sagan-util.c: In function 'sql_escape': cc1: warning: function may return address of local variable [-Wreturn-local-addr] sagan-util.c:254:7: note: declared here char tmpescaped[MAX_SYSLOGMSG]; ^~~~~~~~~~ sagan-plog.c: In function 'plog_handler': sagan-plog.c:85:17: warning: 'pcap_lookupdev' is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] if((iface = pcap_lookupdev(eb)) == (char *)0) ^~ In file included from /usr/include/pcap.h:43, from sagan-plog.c:39: /usr/include/pcap/pcap.h:326:16: note: declared here PCAP_API char *pcap_lookupdev(char *) ^~~~~~~~~~~~~~ i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -I/usr/include/postgresql -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-snort.o -MD -MP -MF .deps/sagan-snort.Tpo -c -o sagan-snort.o `test -f 'output-plugins/sagan-snort.c' || echo './'`output-plugins/sagan-snort.c sagan-util.c: In function 'dns_lookup': cc1: warning: function may return address of local variable [-Wreturn-local-addr] sagan-util.c:360:10: note: declared here char ipstr[INET6_ADDRSTRLEN]; ^~~~~ mv -f .deps/sagan.Tpo .deps/sagan.Po mv -f .deps/sagan-alert.Tpo .deps/sagan-alert.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -I/usr/include/postgresql -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-esmtp.o -MD -MP -MF .deps/sagan-esmtp.Tpo -c -o sagan-esmtp.o `test -f 'output-plugins/sagan-esmtp.c' || echo './'`output-plugins/sagan-esmtp.c i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -I/usr/include/postgresql -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-external.o -MD -MP -MF .deps/sagan-external.Tpo -c -o sagan-external.o `test -f 'output-plugins/sagan-external.c' || echo './'`output-plugins/sagan-external.c mv -f .deps/parse-port.Tpo .deps/parse-port.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -I/usr/include/postgresql -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-prelude.o -MD -MP -MF .deps/sagan-prelude.Tpo -c -o sagan-prelude.o `test -f 'output-plugins/sagan-prelude.c' || echo './'`output-plugins/sagan-prelude.c mv -f .deps/sagan-util.Tpo .deps/sagan-util.Po i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -I.. -D_GLIBCXX_USE_C99_MATH=1 -I/usr/include/postgresql -march=i486 -Os -pipe -mindirect-branch=thunk -MT sagan-unified2.o -MD -MP -MF .deps/sagan-unified2.Tpo -c -o sagan-unified2.o `test -f 'output-plugins/sagan-unified2.c' || echo './'`output-plugins/sagan-unified2.c mv -f .deps/sagan-plog.Tpo .deps/sagan-plog.Po mv -f .deps/sagan-prelude.Tpo .deps/sagan-prelude.Po mv -f .deps/sagan-snort.Tpo .deps/sagan-snort.Po mv -f .deps/sagan-esmtp.Tpo .deps/sagan-esmtp.Po mv -f .deps/sagan-external.Tpo .deps/sagan-external.Po mv -f .deps/sagan-unified2.Tpo .deps/sagan-unified2.Po i486-slitaz-linux-gcc -march=i486 -Os -pipe -mindirect-branch=thunk -Wl,-Os,--as-needed -L/usr/lib/postgresql -o sagan sagan.o sagan-classifications.o sagan-config.o sagan-lockfile.o sagan-references.o sagan-rules.o sagan-signal.o sagan-key.o sagan-stats.o sagan-strlcat.o sagan-strlcpy.o sagan-usage.o sagan-util.o sagan-plog.o parse-ip.o parse-port.o sagan-alert.o sagan-snort.o sagan-esmtp.o sagan-external.o sagan-prelude.o sagan-unified2.o -ldnet -lpcap -lesmtp -lpq -lm -lpthread -lpcre make[2]: Leaving directory '/home/slitaz/wok/sagan/source/sagan-0.2.0-pgsql/src' make[2]: Entering directory '/home/slitaz/wok/sagan/source/sagan-0.2.0-pgsql' make[2]: Leaving directory '/home/slitaz/wok/sagan/source/sagan-0.2.0-pgsql' make[1]: Leaving directory '/home/slitaz/wok/sagan/source/sagan-0.2.0-pgsql' Making install in src make[1]: Entering directory '/home/slitaz/wok/sagan/source/sagan-0.2.0-pgsql/src' make[2]: Entering directory '/home/slitaz/wok/sagan/source/sagan-0.2.0-pgsql/src' test -z "/usr/bin" || .././install-sh -c -d "/home/slitaz/wok/sagan/install-pgsql/usr/bin" make[2]: Nothing to be done for 'install-data-am'. /usr/bin/install -c sagan '/home/slitaz/wok/sagan/install-pgsql/usr/bin' make[2]: Leaving directory '/home/slitaz/wok/sagan/source/sagan-0.2.0-pgsql/src' make[1]: Leaving directory '/home/slitaz/wok/sagan/source/sagan-0.2.0-pgsql/src' make[1]: Entering directory '/home/slitaz/wok/sagan/source/sagan-0.2.0-pgsql' make[2]: Entering directory '/home/slitaz/wok/sagan/source/sagan-0.2.0-pgsql' make[2]: Nothing to be done for 'install-exec-am'. test -z "/home/slitaz/wok/sagan/install-pgsql/etc/sagan" || /bin/mkdir -p "/home/slitaz/wok/sagan/install-pgsql/etc/sagan" test -f "/home/slitaz/wok/sagan/install-pgsql/etc/sagan/sagan.conf" || /usr/bin/install -c -m 644 etc/sagan.conf "/home/slitaz/wok/sagan/install-pgsql/etc/sagan/sagan.conf" test -z "/home/slitaz/wok/sagan/install-pgsql/usr/sbin" || /bin/mkdir -p "/home/slitaz/wok/sagan/install-pgsql/usr/sbin" /usr/bin/install -c -d "/home/slitaz/wok/sagan/install-pgsql/usr/share/man/man8" /usr/bin/install -c -m 644 etc/sagan.8 "/home/slitaz/wok/sagan/install-pgsql/usr/share/man/man8" /usr/bin/install -c -m 755 src/sagan "/home/slitaz/wok/sagan/install-pgsql/usr/sbin/sagan" /usr/bin/install -c -d "/home/slitaz/wok/sagan/install-pgsql/var/log/sagan" /usr/bin/install -c -d "/home/slitaz/wok/sagan/install-pgsql/var/run/sagan" ------------------------------------------------------------------------------ Sagan has been installed! You still need to do a few more things before your up and running. See https://wiki.quadrantsec.com/bin/view/Main/SaganHOWTO for more information. ------------------------------------------------------------------------------ make[2]: Leaving directory '/home/slitaz/wok/sagan/source/sagan-0.2.0-pgsql' make[1]: Leaving directory '/home/slitaz/wok/sagan/source/sagan-0.2.0-pgsql' ================================================================================ Executing strip on all files... Done Time: 0.20s. Size: 163880 B -> 141880 B. Save: 21 KB. Compressing man pages... Done Time: 0.28s. Size: 2415 B -> 1263 B. Save: 1 KB. Cache hit: 1/1. ================================================================================ Build dependencies to remove: 35 Removing: advancecomp-static libaio libdnet libdnet-dev libee libesmtp libesmtp-dev libestr libgdbm liblognorm liblognorm-dev libmysqlclient libnl libnl-dev libnl-tools libpcap libpcap-dev libpcre libpcre16 libpcre32 libpcrecpp libpcreposix libpostgresqlclient mysql mysql-client mysql-dev mysql-test pcre pcre-apps pcre-dev perl perl-core postgresql postgresql-client postgresql-dev Pack: sagan 0.2.0 ================================================================================ Executing: genpkg_rules Copying folders and files... Done Copying "receipt"... Done Determining package architecture... i486 Creating the list of files... Done Creating md5sum of files... Done Compressing the FS... Done Creating full cpio archive... Done QA: checking for empty package... Done Removing old package "sagan-0.2.0-i486.tazpkg" Done The release checksum has changed. ================================================================================ Package "sagan-0.2.0-i486.tazpkg" created Pack: sagan-mysql 0.2.0 ================================================================================ Executing: genpkg_rules Copying folders and files... Done Copying "receipt"... Done Determining package architecture... i486 Creating the list of files... Done Creating md5sum of files... Done Compressing the FS... Done Creating full cpio archive... Done QA: checking for empty package... Done Removing old package "sagan-mysql-0.2.0-i486.tazpkg" Done The release checksum has changed. ================================================================================ Package "sagan-mysql-0.2.0-i486.tazpkg" created Pack: sagan-pgsql 0.2.0 ================================================================================ Executing: genpkg_rules Copying folders and files... Done Copying "receipt"... Done Determining package architecture... i486 Creating the list of files... Done Creating md5sum of files... Done Compressing the FS... Done Creating full cpio archive... Done QA: checking for empty package... Done Removing old package "sagan-pgsql-0.2.0-i486.tazpkg" Done The release checksum has changed. ================================================================================ Package "sagan-pgsql-0.2.0-i486.tazpkg" created Post-check ================================================================================ Checking build... Done Checking 'any' arch... Done Checking libtool in source/sagan-0.2.0... Done Checking site script in source/sagan-0.2.0... Done Checking libtool in source/sagan-0.2.0-mysql... Done Checking site script in source/sagan-0.2.0-mysql... Done Checking libtool in source/sagan-0.2.0-pgsql... Done Checking site script in source/sagan-0.2.0-pgsql... Done Checking ownership in install... Done Checking permissions in install... Done Checking broken symlinks in install... Done Checking ownership in install-mysql... Done Checking permissions in install-mysql... Done Checking broken symlinks in install-mysql... Done Checking ownership in install-pgsql... Done Checking permissions in install-pgsql... Done Checking broken symlinks in install-pgsql... Done Querying Repology... Done Updating activity log... Done ================================================================================ Summary for: sagan 0.2.0 ================================================================================ Src file : sagan-0.2.0.tar.gz Src size : 324.0K Source dir : 4.2M Produced : 200.0K Cook time : 86s ~ 01m 26s Cook date : 2020-07-07 23:40 Target arch : i486 -------------------------------------------------------------------------------- # : Packed : Compressed : Files : Package name -------------------------------------------------------------------------------- 1 : 200.0K : 26.8K : 3 : sagan-0.2.0-i486.tazpkg 2 : 216.0K : 29.6K : 3 : sagan-mysql-0.2.0-i486.tazpkg 3 : 216.0K : 29.4K : 3 : sagan-pgsql-0.2.0-i486.tazpkg ================================================================================