[dnstop] Fix warnings (pointer target signedness, unchecked read(2))

konradm konradm at fedoraproject.org
Sun Feb 17 21:36:51 UTC 2013


commit ef89252e75dfc70f6fcc2ee90856085d81e4cc3b
Author: Conrad Meyer <cse.cem at gmail.com>
Date:   Sun Feb 17 13:33:44 2013 -0800

    Fix warnings (pointer target signedness, unchecked read(2))

 dnstop-20121017-fix-warnings.diff | 2429 +++++++++++++++++++++++++++++++++++++
 dnstop.spec                       |    8 +
 2 files changed, 2437 insertions(+), 0 deletions(-)
---
diff --git a/dnstop-20121017-fix-warnings.diff b/dnstop-20121017-fix-warnings.diff
new file mode 100644
index 0000000..f7c25e0
--- /dev/null
+++ b/dnstop-20121017-fix-warnings.diff
@@ -0,0 +1,2429 @@
+diff -rN -U20 dnstop-20121017.orig/config.h dnstop-20121017/config.h
+--- dnstop-20121017.orig/config.h	1969-12-31 16:00:00.000000000 -0800
++++ dnstop-20121017/config.h	2013-02-17 13:35:06.127026011 -0800
+@@ -0,0 +1,189 @@
++/* config.h.  Generated from config.h.in by configure.  */
++/* config.h.in.  Generated from configure.scan by autoheader.  */
++
++/* Define to 1 if you have the <arpa/inet.h> header file. */
++#define HAVE_ARPA_INET_H 1
++
++/* Define to 1 if you have the <arpa/nameser_compat.h> header file. */
++#define HAVE_ARPA_NAMESER_COMPAT_H 1
++
++/* Define to 1 if you have the <endian.h> header file. */
++#define HAVE_ENDIAN_H 1
++
++/* Define to 1 if you have the <inttypes.h> header file. */
++#define HAVE_INTTYPES_H 1
++
++/* Define to 1 if you have the `curses' library (-lcurses). */
++/* #undef HAVE_LIBCURSES */
++
++/* Define to 1 if you have the `ncurses' library (-lncurses). */
++#define HAVE_LIBNCURSES 1
++
++/* Define to 1 if you have the `nsl' library (-lnsl). */
++#define HAVE_LIBNSL 1
++
++/* Define to 1 if you have the `pcap' library (-lpcap). */
++#define HAVE_LIBPCAP 1
++
++/* Define to 1 if you have the `resolv' library (-lresolv). */
++#define HAVE_LIBRESOLV 1
++
++/* Define to 1 if you have the `socket' library (-lsocket). */
++/* #undef HAVE_LIBSOCKET */
++
++/* Define to 1 if your system has a GNU libc compatible `malloc' function, and
++   to 0 otherwise. */
++#define HAVE_MALLOC 1
++
++/* Define to 1 if you have the <memory.h> header file. */
++#define HAVE_MEMORY_H 1
++
++/* Define to 1 if you have the `memset' function. */
++#define HAVE_MEMSET 1
++
++/* Define to 1 if you have the <netdb.h> header file. */
++#define HAVE_NETDB_H 1
++
++/* Define to 1 if you have the <netinet/if_ether.h> header file. */
++#define HAVE_NETINET_IF_ETHER_H 1
++
++/* Define to 1 if you have the <netinet/in.h> header file. */
++#define HAVE_NETINET_IN_H 1
++
++/* Define to 1 if you have the <net/if_arp.h> header file. */
++#define HAVE_NET_IF_ARP_H 1
++
++/* Define to 1 if you have the <net/if.h> header file. */
++#define HAVE_NET_IF_H 1
++
++/* Define to 1 if you have the <net/if_ppp.h> header file. */
++#define HAVE_NET_IF_PPP_H 1
++
++/* Define to 1 if you have the `select' function. */
++#define HAVE_SELECT 1
++
++/* Define to 1 if `stat' has the bug that it succeeds when given the
++   zero-length file name argument. */
++/* #undef HAVE_STAT_EMPTY_STRING_BUG */
++
++/* Define to 1 if you have the <stdint.h> header file. */
++#define HAVE_STDINT_H 1
++
++/* Define to 1 if you have the <stdlib.h> header file. */
++#define HAVE_STDLIB_H 1
++
++/* Define to 1 if you have the `strchr' function. */
++#define HAVE_STRCHR 1
++
++/* Define to 1 if you have the `strdup' function. */
++#define HAVE_STRDUP 1
++
++/* Define to 1 if you have the <strings.h> header file. */
++#define HAVE_STRINGS_H 1
++
++/* Define to 1 if you have the <string.h> header file. */
++#define HAVE_STRING_H 1
++
++/* Define to 1 if you have the `strrchr' function. */
++#define HAVE_STRRCHR 1
++
++/* Define to 1 if you have the `strstr' function. */
++#define HAVE_STRSTR 1
++
++/* Define to 1 if the system has the type `struct bpf_timeval'. */
++/* #undef HAVE_STRUCT_BPF_TIMEVAL */
++
++/* Define to 1 if you have the <sys/param.h> header file. */
++#define HAVE_SYS_PARAM_H 1
++
++/* Define to 1 if you have the <sys/select.h> header file. */
++#define HAVE_SYS_SELECT_H 1
++
++/* Define to 1 if you have the <sys/socket.h> header file. */
++#define HAVE_SYS_SOCKET_H 1
++
++/* Define to 1 if you have the <sys/stat.h> header file. */
++#define HAVE_SYS_STAT_H 1
++
++/* Define to 1 if you have the <sys/time.h> header file. */
++#define HAVE_SYS_TIME_H 1
++
++/* Define to 1 if you have the <sys/types.h> header file. */
++#define HAVE_SYS_TYPES_H 1
++
++/* Define to 1 if you have the <unistd.h> header file. */
++#define HAVE_UNISTD_H 1
++
++/* Define to 1 if `lstat' dereferences a symlink specified with a trailing
++   slash. */
++#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
++
++/* Define to the address where bug reports for this package should be sent. */
++#define PACKAGE_BUGREPORT "BUG-REPORT-ADDRESS"
++
++/* Define to the full name of this package. */
++#define PACKAGE_NAME "FULL-PACKAGE-NAME"
++
++/* Define to the full name and version of this package. */
++#define PACKAGE_STRING "FULL-PACKAGE-NAME VERSION"
++
++/* Define to the one symbol short name of this package. */
++#define PACKAGE_TARNAME "full-package-name"
++
++/* Define to the home page for this package. */
++#define PACKAGE_URL ""
++
++/* Define to the version of this package. */
++#define PACKAGE_VERSION "VERSION"
++
++/* Define as the return type of signal handlers (`int' or `void'). */
++#define RETSIGTYPE void
++
++/* Define to the type of arg 1 for `select'. */
++#define SELECT_TYPE_ARG1 int
++
++/* Define to the type of args 2, 3 and 4 for `select'. */
++#define SELECT_TYPE_ARG234 (fd_set *)
++
++/* Define to the type of arg 5 for `select'. */
++#define SELECT_TYPE_ARG5 (struct timeval *)
++
++/* Define to 1 if you have the ANSI C header files. */
++#define STDC_HEADERS 1
++
++/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
++#define TIME_WITH_SYS_TIME 1
++
++/* Define for Solaris 2.5.1 so the uint32_t typedef from <sys/synch.h>,
++   <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
++   #define below would cause a syntax error. */
++/* #undef _UINT32_T */
++
++/* Define for Solaris 2.5.1 so the uint8_t typedef from <sys/synch.h>,
++   <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
++   #define below would cause a syntax error. */
++/* #undef _UINT8_T */
++
++/* Define to empty if `const' does not conform to ANSI C. */
++/* #undef const */
++
++/* Define to rpl_malloc if the replacement function should be used. */
++/* #undef malloc */
++
++/* Define to `long int' if <sys/types.h> does not define. */
++/* #undef off_t */
++
++/* Define to `unsigned int' if <sys/types.h> does not define. */
++/* #undef size_t */
++
++/* Define to the type of an unsigned integer type of width exactly 16 bits if
++   such a type exists and the standard includes do not define it. */
++/* #undef uint16_t */
++
++/* Define to the type of an unsigned integer type of width exactly 32 bits if
++   such a type exists and the standard includes do not define it. */
++/* #undef uint32_t */
++
++/* Define to the type of an unsigned integer type of width exactly 8 bits if
++   such a type exists and the standard includes do not define it. */
++/* #undef uint8_t */
+diff -rN -U20 dnstop-20121017.orig/config.log dnstop-20121017/config.log
+--- dnstop-20121017.orig/config.log	1969-12-31 16:00:00.000000000 -0800
++++ dnstop-20121017/config.log	2013-02-17 13:35:06.165025581 -0800
+@@ -0,0 +1,987 @@
++This file contains any messages produced by compilers while
++running configure, to aid debugging if configure makes a mistake.
++
++It was created by FULL-PACKAGE-NAME configure VERSION, which was
++generated by GNU Autoconf 2.64.  Invocation command line was
++
++  $ ./configure --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info
++
++## --------- ##
++## Platform. ##
++## --------- ##
++
++hostname = m
++uname -m = x86_64
++uname -r = 3.6.10-2.fc17.x86_64
++uname -s = Linux
++uname -v = #1 SMP Tue Dec 11 18:07:34 UTC 2012
++
++/usr/bin/uname -p = x86_64
++/bin/uname -X     = unknown
++
++/bin/arch              = x86_64
++/usr/bin/arch -k       = unknown
++/usr/convex/getsysinfo = unknown
++/usr/bin/hostinfo      = unknown
++/bin/machine           = unknown
++/usr/bin/oslevel       = unknown
++/bin/universe          = unknown
++
++PATH: /usr/lib64/qt-3.3/bin
++PATH: /usr/local/bin
++PATH: /usr/bin
++PATH: /bin
++PATH: /home/conrad/bin
++PATH: /usr/local/sbin
++PATH: /usr/sbin
++PATH: /home/conrad/.local/bin
++PATH: /home/conrad/Downloads/android-sdk-linux/tools
++PATH: /home/conrad/Downloads/android-sdk-linux/platform-tools
++
++
++## ----------- ##
++## Core tests. ##
++## ----------- ##
++
++configure:2188: checking for x86_64-unknown-linux-gnu-gcc
++configure:2218: result: no
++configure:2228: checking for gcc
++configure:2244: found /usr/bin/gcc
++configure:2255: result: gcc
++configure:2484: checking for C compiler version
++configure:2493: gcc --version >&5
++gcc (GCC) 4.7.2 20120921 (Red Hat 4.7.2-2)
++Copyright (C) 2012 Free Software Foundation, Inc.
++This is free software; see the source for copying conditions.  There is NO
++warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
++
++configure:2504: $? = 0
++configure:2493: gcc -v >&5
++Using built-in specs.
++COLLECT_GCC=gcc
++COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.7.2/lto-wrapper
++Target: x86_64-redhat-linux
++Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --disable-build-with-cxx --disable-build-poststage1-with-cxx --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
++Thread model: posix
++gcc version 4.7.2 20120921 (Red Hat 4.7.2-2) (GCC) 
++configure:2504: $? = 0
++configure:2493: gcc -V >&5
++gcc: error: unrecognized command line option '-V'
++gcc: fatal error: no input files
++compilation terminated.
++configure:2504: $? = 4
++configure:2493: gcc -qversion >&5
++gcc: error: unrecognized command line option '-qversion'
++gcc: fatal error: no input files
++compilation terminated.
++configure:2504: $? = 4
++configure:2526: checking for C compiler default output file name
++configure:2548: gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  -Wl,-z,relro  conftest.c  >&5
++configure:2552: $? = 0
++configure:2589: result: a.out
++configure:2605: checking whether the C compiler works
++configure:2614: ./a.out
++configure:2618: $? = 0
++configure:2633: result: yes
++configure:2640: checking whether we are cross compiling
++configure:2642: result: no
++configure:2645: checking for suffix of executables
++configure:2652: gcc -o conftest -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  -Wl,-z,relro  conftest.c  >&5
++configure:2656: $? = 0
++configure:2678: result: 
++configure:2684: checking for suffix of object files
++configure:2706: gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  conftest.c >&5
++configure:2710: $? = 0
++configure:2731: result: o
++configure:2735: checking whether we are using the GNU C compiler
++configure:2754: gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  conftest.c >&5
++configure:2754: $? = 0
++configure:2763: result: yes
++configure:2772: checking whether gcc accepts -g
++configure:2792: gcc -c -g  conftest.c >&5
++configure:2792: $? = 0
++configure:2833: result: yes
++configure:2850: checking for gcc option to accept ISO C89
++configure:2914: gcc  -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  conftest.c >&5
++configure:2914: $? = 0
++configure:2927: result: none needed
++configure:2984: checking for a BSD-compatible install
++configure:3052: result: /usr/bin/install -c
++configure:3066: checking for initscr in -lncurses
++configure:3091: gcc -o conftest -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  -Wl,-z,relro  conftest.c -lncurses   >&5
++configure:3091: $? = 0
++configure:3100: result: yes
++configure:3158: checking for pcap_open_live in -lpcap
++configure:3183: gcc -o conftest -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  -Wl,-z,relro  conftest.c -lpcap  -lncurses  >&5
++configure:3183: $? = 0
++configure:3192: result: yes
++configure:3203: checking for main in -lsocket
++configure:3222: gcc -o conftest -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  -Wl,-z,relro  conftest.c -lsocket  -lpcap -lncurses  >&5
++/usr/bin/ld: cannot find -lsocket
++collect2: error: ld returned 1 exit status
++configure:3222: $? = 1
++configure: failed program was:
++| /* confdefs.h */
++| #define PACKAGE_NAME "FULL-PACKAGE-NAME"
++| #define PACKAGE_TARNAME "full-package-name"
++| #define PACKAGE_VERSION "VERSION"
++| #define PACKAGE_STRING "FULL-PACKAGE-NAME VERSION"
++| #define PACKAGE_BUGREPORT "BUG-REPORT-ADDRESS"
++| #define PACKAGE_URL ""
++| #define HAVE_LIBNCURSES 1
++| #define HAVE_LIBPCAP 1
++| /* end confdefs.h.  */
++| 
++| 
++| int
++| main ()
++| {
++| return main ();
++|   ;
++|   return 0;
++| }
++configure:3231: result: no
++configure:3242: checking for main in -lnsl
++configure:3261: gcc -o conftest -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  -Wl,-z,relro  conftest.c -lnsl  -lpcap -lncurses  >&5
++configure:3261: $? = 0
++configure:3270: result: yes
++configure:3281: checking for main in -lresolv
++configure:3300: gcc -o conftest -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  -Wl,-z,relro  conftest.c -lresolv  -lnsl -lpcap -lncurses  >&5
++configure:3300: $? = 0
++configure:3309: result: yes
++configure:3327: checking how to run the C preprocessor
++configure:3358: gcc -E  conftest.c
++configure:3358: $? = 0
++configure:3372: gcc -E  conftest.c
++conftest.c:13:28: fatal error: ac_nonexistent.h: No such file or directory
++compilation terminated.
++configure:3372: $? = 1
++configure: failed program was:
++| /* confdefs.h */
++| #define PACKAGE_NAME "FULL-PACKAGE-NAME"
++| #define PACKAGE_TARNAME "full-package-name"
++| #define PACKAGE_VERSION "VERSION"
++| #define PACKAGE_STRING "FULL-PACKAGE-NAME VERSION"
++| #define PACKAGE_BUGREPORT "BUG-REPORT-ADDRESS"
++| #define PACKAGE_URL ""
++| #define HAVE_LIBNCURSES 1
++| #define HAVE_LIBPCAP 1
++| #define HAVE_LIBNSL 1
++| #define HAVE_LIBRESOLV 1
++| /* end confdefs.h.  */
++| #include <ac_nonexistent.h>
++configure:3397: result: gcc -E
++configure:3417: gcc -E  conftest.c
++configure:3417: $? = 0
++configure:3431: gcc -E  conftest.c
++conftest.c:13:28: fatal error: ac_nonexistent.h: No such file or directory
++compilation terminated.
++configure:3431: $? = 1
++configure: failed program was:
++| /* confdefs.h */
++| #define PACKAGE_NAME "FULL-PACKAGE-NAME"
++| #define PACKAGE_TARNAME "full-package-name"
++| #define PACKAGE_VERSION "VERSION"
++| #define PACKAGE_STRING "FULL-PACKAGE-NAME VERSION"
++| #define PACKAGE_BUGREPORT "BUG-REPORT-ADDRESS"
++| #define PACKAGE_URL ""
++| #define HAVE_LIBNCURSES 1
++| #define HAVE_LIBPCAP 1
++| #define HAVE_LIBNSL 1
++| #define HAVE_LIBRESOLV 1
++| /* end confdefs.h.  */
++| #include <ac_nonexistent.h>
++configure:3460: checking for grep that handles long lines and -e
++configure:3518: result: /usr/bin/grep
++configure:3523: checking for egrep
++configure:3585: result: /usr/bin/grep -E
++configure:3590: checking for ANSI C header files
++configure:3610: gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  conftest.c >&5
++configure:3610: $? = 0
++configure:3683: gcc -o conftest -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  -Wl,-z,relro  conftest.c -lresolv -lnsl -lpcap -lncurses  >&5
++configure:3683: $? = 0
++configure:3683: ./conftest
++configure:3683: $? = 0
++configure:3694: result: yes
++configure:3707: checking for sys/types.h
++configure:3707: gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  conftest.c >&5
++configure:3707: $? = 0
++configure:3707: result: yes
++configure:3707: checking for sys/stat.h
++configure:3707: gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  conftest.c >&5
++configure:3707: $? = 0
++configure:3707: result: yes
++configure:3707: checking for stdlib.h
++configure:3707: gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  conftest.c >&5
++configure:3707: $? = 0
++configure:3707: result: yes
++configure:3707: checking for string.h
++configure:3707: gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  conftest.c >&5
++configure:3707: $? = 0
++configure:3707: result: yes
++configure:3707: checking for memory.h
++configure:3707: gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  conftest.c >&5
++configure:3707: $? = 0
++configure:3707: result: yes
++configure:3707: checking for strings.h
++configure:3707: gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  conftest.c >&5
++configure:3707: $? = 0
++configure:3707: result: yes
++configure:3707: checking for inttypes.h
++configure:3707: gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  conftest.c >&5
++configure:3707: $? = 0
++configure:3707: result: yes
++configure:3707: checking for stdint.h
++configure:3707: gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  conftest.c >&5
++configure:3707: $? = 0
++configure:3707: result: yes
++configure:3707: checking for unistd.h
++configure:3707: gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  conftest.c >&5
++configure:3707: $? = 0
++configure:3707: result: yes
++configure:3723: checking arpa/inet.h usability
++configure:3723: gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  conftest.c >&5
++configure:3723: $? = 0
++configure:3723: result: yes
++configure:3723: checking arpa/inet.h presence
++configure:3723: gcc -E  conftest.c
++configure:3723: $? = 0
++configure:3723: result: yes
++configure:3723: checking for arpa/inet.h
++configure:3723: result: yes
++configure:3723: checking netdb.h usability
++configure:3723: gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  conftest.c >&5
++configure:3723: $? = 0
++configure:3723: result: yes
++configure:3723: checking netdb.h presence
++configure:3723: gcc -E  conftest.c
++configure:3723: $? = 0
++configure:3723: result: yes
++configure:3723: checking for netdb.h
++configure:3723: result: yes
++configure:3723: checking netinet/in.h usability
++configure:3723: gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  conftest.c >&5
++configure:3723: $? = 0
++configure:3723: result: yes
++configure:3723: checking netinet/in.h presence
++configure:3723: gcc -E  conftest.c
++configure:3723: $? = 0
++configure:3723: result: yes
++configure:3723: checking for netinet/in.h
++configure:3723: result: yes
++configure:3723: checking for stdint.h
++configure:3723: result: yes
++configure:3723: checking for stdlib.h
++configure:3723: result: yes
++configure:3723: checking for string.h
++configure:3723: result: yes
++configure:3723: checking sys/param.h usability
++configure:3723: gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  conftest.c >&5
++configure:3723: $? = 0
++configure:3723: result: yes
++configure:3723: checking sys/param.h presence
++configure:3723: gcc -E  conftest.c
++configure:3723: $? = 0
++configure:3723: result: yes
++configure:3723: checking for sys/param.h
++configure:3723: result: yes
++configure:3723: checking sys/socket.h usability
++configure:3723: gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  conftest.c >&5
++configure:3723: $? = 0
++configure:3723: result: yes
++configure:3723: checking sys/socket.h presence
++configure:3723: gcc -E  conftest.c
++configure:3723: $? = 0
++configure:3723: result: yes
++configure:3723: checking for sys/socket.h
++configure:3723: result: yes
++configure:3723: checking sys/time.h usability
++configure:3723: gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  conftest.c >&5
++configure:3723: $? = 0
++configure:3723: result: yes
++configure:3723: checking sys/time.h presence
++configure:3723: gcc -E  conftest.c
++configure:3723: $? = 0
++configure:3723: result: yes
++configure:3723: checking for sys/time.h
++configure:3723: result: yes
++configure:3723: checking for unistd.h
++configure:3723: result: yes
++configure:3736: checking endian.h usability
++configure:3736: gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  conftest.c >&5
++configure:3736: $? = 0
++configure:3736: result: yes
++configure:3736: checking endian.h presence
++configure:3736: gcc -E  conftest.c
++configure:3736: $? = 0
++configure:3736: result: yes
++configure:3736: checking for endian.h
++configure:3736: result: yes
++configure:3748: checking arpa/nameser_compat.h usability
++configure:3748: gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  conftest.c >&5
++configure:3748: $? = 0
++configure:3748: result: yes
++configure:3748: checking arpa/nameser_compat.h presence
++configure:3748: gcc -E  conftest.c
++configure:3748: $? = 0
++configure:3748: result: yes
++configure:3748: checking for arpa/nameser_compat.h
++configure:3748: result: yes
++configure:3761: checking for net/if_arp.h
++configure:3761: gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  conftest.c >&5
++configure:3761: $? = 0
++configure:3761: result: yes
++configure:3761: checking for net/if.h
++configure:3761: gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  conftest.c >&5
++configure:3761: $? = 0
++configure:3761: result: yes
++configure:3761: checking for netinet/if_ether.h
++configure:3761: gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  conftest.c >&5
++configure:3761: $? = 0
++configure:3761: result: yes
++configure:3783: checking for net/if_ppp.h
++configure:3783: gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  conftest.c >&5
++configure:3783: $? = 0
++configure:3783: result: yes
++configure:3804: checking for an ANSI C-conforming const
++configure:3869: gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  conftest.c >&5
++conftest.c: In function 'main':
++conftest.c:68:10: warning: 't' is used uninitialized in this function [-Wuninitialized]
++conftest.c:90:13: warning: 'cs[0]' is used uninitialized in this function [-Wuninitialized]
++configure:3869: $? = 0
++configure:3876: result: yes
++configure:3884: checking for off_t
++configure:3884: gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  conftest.c >&5
++configure:3884: $? = 0
++configure:3884: gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  conftest.c >&5
++conftest.c: In function 'main':
++conftest.c:75:20: error: expected expression before ')' token
++configure:3884: $? = 1
++configure: failed program was:
++| /* confdefs.h */
++| #define PACKAGE_NAME "FULL-PACKAGE-NAME"
++| #define PACKAGE_TARNAME "full-package-name"
++| #define PACKAGE_VERSION "VERSION"
++| #define PACKAGE_STRING "FULL-PACKAGE-NAME VERSION"
++| #define PACKAGE_BUGREPORT "BUG-REPORT-ADDRESS"
++| #define PACKAGE_URL ""
++| #define HAVE_LIBNCURSES 1
++| #define HAVE_LIBPCAP 1
++| #define HAVE_LIBNSL 1
++| #define HAVE_LIBRESOLV 1
++| #define STDC_HEADERS 1
++| #define HAVE_SYS_TYPES_H 1
++| #define HAVE_SYS_STAT_H 1
++| #define HAVE_STDLIB_H 1
++| #define HAVE_STRING_H 1
++| #define HAVE_MEMORY_H 1
++| #define HAVE_STRINGS_H 1
++| #define HAVE_INTTYPES_H 1
++| #define HAVE_STDINT_H 1
++| #define HAVE_UNISTD_H 1
++| #define HAVE_ARPA_INET_H 1
++| #define HAVE_NETDB_H 1
++| #define HAVE_NETINET_IN_H 1
++| #define HAVE_STDINT_H 1
++| #define HAVE_STDLIB_H 1
++| #define HAVE_STRING_H 1
++| #define HAVE_SYS_PARAM_H 1
++| #define HAVE_SYS_SOCKET_H 1
++| #define HAVE_SYS_TIME_H 1
++| #define HAVE_UNISTD_H 1
++| #define HAVE_ENDIAN_H 1
++| #define HAVE_ARPA_NAMESER_COMPAT_H 1
++| #define HAVE_NET_IF_ARP_H 1
++| #define HAVE_NET_IF_H 1
++| #define HAVE_NETINET_IF_ETHER_H 1
++| #define HAVE_NET_IF_PPP_H 1
++| /* end confdefs.h.  */
++| #include <stdio.h>
++| #ifdef HAVE_SYS_TYPES_H
++| # include <sys/types.h>
++| #endif
++| #ifdef HAVE_SYS_STAT_H
++| # include <sys/stat.h>
++| #endif
++| #ifdef STDC_HEADERS
++| # include <stdlib.h>
++| # include <stddef.h>
++| #else
++| # ifdef HAVE_STDLIB_H
++| #  include <stdlib.h>
++| # endif
++| #endif
++| #ifdef HAVE_STRING_H
++| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
++| #  include <memory.h>
++| # endif
++| # include <string.h>
++| #endif
++| #ifdef HAVE_STRINGS_H
++| # include <strings.h>
++| #endif
++| #ifdef HAVE_INTTYPES_H
++| # include <inttypes.h>
++| #endif
++| #ifdef HAVE_STDINT_H
++| # include <stdint.h>
++| #endif
++| #ifdef HAVE_UNISTD_H
++| # include <unistd.h>
++| #endif
++| int
++| main ()
++| {
++| if (sizeof ((off_t)))
++| 	    return 0;
++|   ;
++|   return 0;
++| }
++configure:3884: result: yes
++configure:3895: checking for size_t
++configure:3895: gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  conftest.c >&5
++configure:3895: $? = 0
++configure:3895: gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  conftest.c >&5
++conftest.c: In function 'main':
++conftest.c:75:21: error: expected expression before ')' token
++configure:3895: $? = 1
++configure: failed program was:
++| /* confdefs.h */
++| #define PACKAGE_NAME "FULL-PACKAGE-NAME"
++| #define PACKAGE_TARNAME "full-package-name"
++| #define PACKAGE_VERSION "VERSION"
++| #define PACKAGE_STRING "FULL-PACKAGE-NAME VERSION"
++| #define PACKAGE_BUGREPORT "BUG-REPORT-ADDRESS"
++| #define PACKAGE_URL ""
++| #define HAVE_LIBNCURSES 1
++| #define HAVE_LIBPCAP 1
++| #define HAVE_LIBNSL 1
++| #define HAVE_LIBRESOLV 1
++| #define STDC_HEADERS 1
++| #define HAVE_SYS_TYPES_H 1
++| #define HAVE_SYS_STAT_H 1
++| #define HAVE_STDLIB_H 1
++| #define HAVE_STRING_H 1
++| #define HAVE_MEMORY_H 1
++| #define HAVE_STRINGS_H 1
++| #define HAVE_INTTYPES_H 1
++| #define HAVE_STDINT_H 1
++| #define HAVE_UNISTD_H 1
++| #define HAVE_ARPA_INET_H 1
++| #define HAVE_NETDB_H 1
++| #define HAVE_NETINET_IN_H 1
++| #define HAVE_STDINT_H 1
++| #define HAVE_STDLIB_H 1
++| #define HAVE_STRING_H 1
++| #define HAVE_SYS_PARAM_H 1
++| #define HAVE_SYS_SOCKET_H 1
++| #define HAVE_SYS_TIME_H 1
++| #define HAVE_UNISTD_H 1
++| #define HAVE_ENDIAN_H 1
++| #define HAVE_ARPA_NAMESER_COMPAT_H 1
++| #define HAVE_NET_IF_ARP_H 1
++| #define HAVE_NET_IF_H 1
++| #define HAVE_NETINET_IF_ETHER_H 1
++| #define HAVE_NET_IF_PPP_H 1
++| /* end confdefs.h.  */
++| #include <stdio.h>
++| #ifdef HAVE_SYS_TYPES_H
++| # include <sys/types.h>
++| #endif
++| #ifdef HAVE_SYS_STAT_H
++| # include <sys/stat.h>
++| #endif
++| #ifdef STDC_HEADERS
++| # include <stdlib.h>
++| # include <stddef.h>
++| #else
++| # ifdef HAVE_STDLIB_H
++| #  include <stdlib.h>
++| # endif
++| #endif
++| #ifdef HAVE_STRING_H
++| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
++| #  include <memory.h>
++| # endif
++| # include <string.h>
++| #endif
++| #ifdef HAVE_STRINGS_H
++| # include <strings.h>
++| #endif
++| #ifdef HAVE_INTTYPES_H
++| # include <inttypes.h>
++| #endif
++| #ifdef HAVE_STDINT_H
++| # include <stdint.h>
++| #endif
++| #ifdef HAVE_UNISTD_H
++| # include <unistd.h>
++| #endif
++| int
++| main ()
++| {
++| if (sizeof ((size_t)))
++| 	    return 0;
++|   ;
++|   return 0;
++| }
++configure:3895: result: yes
++configure:3906: checking whether time.h and sys/time.h may both be included
++configure:3926: gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  conftest.c >&5
++configure:3926: $? = 0
++configure:3933: result: yes
++configure:3941: checking for uint16_t
++configure:3941: gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  conftest.c >&5
++conftest.c: In function 'main':
++conftest.c:76:12: warning: variable 'test_array' set but not used [-Wunused-but-set-variable]
++configure:3941: $? = 0
++configure:3941: result: yes
++configure:3953: checking for uint32_t
++configure:3953: gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  conftest.c >&5
++conftest.c: In function 'main':
++conftest.c:76:12: warning: variable 'test_array' set but not used [-Wunused-but-set-variable]
++configure:3953: $? = 0
++configure:3953: result: yes
++configure:3967: checking for uint8_t
++configure:3967: gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  conftest.c >&5
++conftest.c: In function 'main':
++conftest.c:76:12: warning: variable 'test_array' set but not used [-Wunused-but-set-variable]
++configure:3967: $? = 0
++configure:3967: result: yes
++configure:3982: checking for struct bpf_timeval
++configure:3982: gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  conftest.c >&5
++conftest.c: In function 'main':
++conftest.c:80:13: error: invalid application of 'sizeof' to incomplete type 'struct bpf_timeval'
++configure:3982: $? = 1
++configure: failed program was:
++| /* confdefs.h */
++| #define PACKAGE_NAME "FULL-PACKAGE-NAME"
++| #define PACKAGE_TARNAME "full-package-name"
++| #define PACKAGE_VERSION "VERSION"
++| #define PACKAGE_STRING "FULL-PACKAGE-NAME VERSION"
++| #define PACKAGE_BUGREPORT "BUG-REPORT-ADDRESS"
++| #define PACKAGE_URL ""
++| #define HAVE_LIBNCURSES 1
++| #define HAVE_LIBPCAP 1
++| #define HAVE_LIBNSL 1
++| #define HAVE_LIBRESOLV 1
++| #define STDC_HEADERS 1
++| #define HAVE_SYS_TYPES_H 1
++| #define HAVE_SYS_STAT_H 1
++| #define HAVE_STDLIB_H 1
++| #define HAVE_STRING_H 1
++| #define HAVE_MEMORY_H 1
++| #define HAVE_STRINGS_H 1
++| #define HAVE_INTTYPES_H 1
++| #define HAVE_STDINT_H 1
++| #define HAVE_UNISTD_H 1
++| #define HAVE_ARPA_INET_H 1
++| #define HAVE_NETDB_H 1
++| #define HAVE_NETINET_IN_H 1
++| #define HAVE_STDINT_H 1
++| #define HAVE_STDLIB_H 1
++| #define HAVE_STRING_H 1
++| #define HAVE_SYS_PARAM_H 1
++| #define HAVE_SYS_SOCKET_H 1
++| #define HAVE_SYS_TIME_H 1
++| #define HAVE_UNISTD_H 1
++| #define HAVE_ENDIAN_H 1
++| #define HAVE_ARPA_NAMESER_COMPAT_H 1
++| #define HAVE_NET_IF_ARP_H 1
++| #define HAVE_NET_IF_H 1
++| #define HAVE_NETINET_IF_ETHER_H 1
++| #define HAVE_NET_IF_PPP_H 1
++| #define TIME_WITH_SYS_TIME 1
++| /* end confdefs.h.  */
++| 
++| #include <stdio.h>
++| #ifdef HAVE_SYS_TYPES_H
++| # include <sys/types.h>
++| #endif
++| #ifdef HAVE_SYS_STAT_H
++| # include <sys/stat.h>
++| #endif
++| #ifdef STDC_HEADERS
++| # include <stdlib.h>
++| # include <stddef.h>
++| #else
++| # ifdef HAVE_STDLIB_H
++| #  include <stdlib.h>
++| # endif
++| #endif
++| #ifdef HAVE_STRING_H
++| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
++| #  include <memory.h>
++| # endif
++| # include <string.h>
++| #endif
++| #ifdef HAVE_STRINGS_H
++| # include <strings.h>
++| #endif
++| #ifdef HAVE_INTTYPES_H
++| # include <inttypes.h>
++| #endif
++| #ifdef HAVE_STDINT_H
++| # include <stdint.h>
++| #endif
++| #ifdef HAVE_UNISTD_H
++| # include <unistd.h>
++| #endif
++| #include <pcap.h>
++| 
++| 
++| int
++| main ()
++| {
++| if (sizeof (struct bpf_timeval))
++| 	 return 0;
++|   ;
++|   return 0;
++| }
++configure:3982: result: no
++configure:4000: checking for stdlib.h
++configure:4000: result: yes
++configure:4010: checking for GNU libc compatible malloc
++configure:4034: gcc -o conftest -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  -Wl,-z,relro  conftest.c -lresolv -lnsl -lpcap -lncurses  >&5
++configure:4034: $? = 0
++configure:4034: ./conftest
++configure:4034: $? = 0
++configure:4044: result: yes
++configure:4068: checking sys/select.h usability
++configure:4068: gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  conftest.c >&5
++configure:4068: $? = 0
++configure:4068: result: yes
++configure:4068: checking sys/select.h presence
++configure:4068: gcc -E  conftest.c
++configure:4068: $? = 0
++configure:4068: result: yes
++configure:4068: checking for sys/select.h
++configure:4068: result: yes
++configure:4068: checking for sys/socket.h
++configure:4068: result: yes
++configure:4079: checking types of arguments for select
++configure:4107: gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  conftest.c >&5
++configure:4107: $? = 0
++configure:4118: result: int,fd_set *,struct timeval *
++configure:4141: checking return type of signal handlers
++configure:4159: gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  conftest.c >&5
++conftest.c: In function 'main':
++conftest.c:53:1: error: void value not ignored as it ought to be
++configure:4159: $? = 1
++configure: failed program was:
++| /* confdefs.h */
++| #define PACKAGE_NAME "FULL-PACKAGE-NAME"
++| #define PACKAGE_TARNAME "full-package-name"
++| #define PACKAGE_VERSION "VERSION"
++| #define PACKAGE_STRING "FULL-PACKAGE-NAME VERSION"
++| #define PACKAGE_BUGREPORT "BUG-REPORT-ADDRESS"
++| #define PACKAGE_URL ""
++| #define HAVE_LIBNCURSES 1
++| #define HAVE_LIBPCAP 1
++| #define HAVE_LIBNSL 1
++| #define HAVE_LIBRESOLV 1
++| #define STDC_HEADERS 1
++| #define HAVE_SYS_TYPES_H 1
++| #define HAVE_SYS_STAT_H 1
++| #define HAVE_STDLIB_H 1
++| #define HAVE_STRING_H 1
++| #define HAVE_MEMORY_H 1
++| #define HAVE_STRINGS_H 1
++| #define HAVE_INTTYPES_H 1
++| #define HAVE_STDINT_H 1
++| #define HAVE_UNISTD_H 1
++| #define HAVE_ARPA_INET_H 1
++| #define HAVE_NETDB_H 1
++| #define HAVE_NETINET_IN_H 1
++| #define HAVE_STDINT_H 1
++| #define HAVE_STDLIB_H 1
++| #define HAVE_STRING_H 1
++| #define HAVE_SYS_PARAM_H 1
++| #define HAVE_SYS_SOCKET_H 1
++| #define HAVE_SYS_TIME_H 1
++| #define HAVE_UNISTD_H 1
++| #define HAVE_ENDIAN_H 1
++| #define HAVE_ARPA_NAMESER_COMPAT_H 1
++| #define HAVE_NET_IF_ARP_H 1
++| #define HAVE_NET_IF_H 1
++| #define HAVE_NETINET_IF_ETHER_H 1
++| #define HAVE_NET_IF_PPP_H 1
++| #define TIME_WITH_SYS_TIME 1
++| #define HAVE_STDLIB_H 1
++| #define HAVE_MALLOC 1
++| #define HAVE_SYS_SELECT_H 1
++| #define HAVE_SYS_SOCKET_H 1
++| #define SELECT_TYPE_ARG1 int
++| #define SELECT_TYPE_ARG234 (fd_set *)
++| #define SELECT_TYPE_ARG5 (struct timeval *)
++| /* end confdefs.h.  */
++| #include <sys/types.h>
++| #include <signal.h>
++| 
++| int
++| main ()
++| {
++| return *(signal (0, 0)) (0) == 1;
++|   ;
++|   return 0;
++| }
++configure:4166: result: void
++configure:4174: checking whether lstat dereferences a symlink specified with a trailing slash
++configure:4200: gcc -o conftest -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  -Wl,-z,relro  conftest.c -lresolv -lnsl -lpcap -lncurses  >&5
++configure:4200: $? = 0
++configure:4200: ./conftest
++configure:4200: $? = 0
++configure:4217: result: yes
++configure:4236: checking whether stat accepts an empty string
++configure:4256: gcc -o conftest -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  -Wl,-z,relro  conftest.c -lresolv -lnsl -lpcap -lncurses  >&5
++configure:4256: $? = 0
++configure:4256: ./conftest
++configure:4256: $? = 0
++configure:4266: result: no
++configure:4285: checking for memset
++configure:4285: gcc -o conftest -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  -Wl,-z,relro  conftest.c -lresolv -lnsl -lpcap -lncurses  >&5
++conftest.c:72:6: warning: conflicting types for built-in function 'memset' [enabled by default]
++configure:4285: $? = 0
++configure:4285: result: yes
++configure:4285: checking for select
++configure:4285: gcc -o conftest -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  -Wl,-z,relro  conftest.c -lresolv -lnsl -lpcap -lncurses  >&5
++configure:4285: $? = 0
++configure:4285: result: yes
++configure:4285: checking for strchr
++configure:4285: gcc -o conftest -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  -Wl,-z,relro  conftest.c -lresolv -lnsl -lpcap -lncurses  >&5
++conftest.c:74:6: warning: conflicting types for built-in function 'strchr' [enabled by default]
++configure:4285: $? = 0
++configure:4285: result: yes
++configure:4285: checking for strdup
++configure:4285: gcc -o conftest -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  -Wl,-z,relro  conftest.c -lresolv -lnsl -lpcap -lncurses  >&5
++conftest.c:75:6: warning: conflicting types for built-in function 'strdup' [enabled by default]
++configure:4285: $? = 0
++configure:4285: result: yes
++configure:4285: checking for strrchr
++configure:4285: gcc -o conftest -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  -Wl,-z,relro  conftest.c -lresolv -lnsl -lpcap -lncurses  >&5
++conftest.c:76:6: warning: conflicting types for built-in function 'strrchr' [enabled by default]
++configure:4285: $? = 0
++configure:4285: result: yes
++configure:4285: checking for strstr
++configure:4285: gcc -o conftest -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  -Wl,-z,relro  conftest.c -lresolv -lnsl -lpcap -lncurses  >&5
++conftest.c:77:6: warning: conflicting types for built-in function 'strstr' [enabled by default]
++configure:4285: $? = 0
++configure:4285: result: yes
++configure:4414: creating ./config.status
++
++## ---------------------- ##
++## Running config.status. ##
++## ---------------------- ##
++
++This file was extended by FULL-PACKAGE-NAME config.status VERSION, which was
++generated by GNU Autoconf 2.64.  Invocation command line was
++
++  CONFIG_FILES    = 
++  CONFIG_HEADERS  = 
++  CONFIG_LINKS    = 
++  CONFIG_COMMANDS = 
++  $ ./config.status 
++
++on m
++
++config.status:837: creating Makefile
++config.status:837: creating config.h
++configure:5564: WARNING: unrecognized options: --disable-dependency-tracking
++
++## ---------------- ##
++## Cache variables. ##
++## ---------------- ##
++
++ac_cv_c_compiler_gnu=yes
++ac_cv_c_const=yes
++ac_cv_c_uint16_t=yes
++ac_cv_c_uint32_t=yes
++ac_cv_c_uint8_t=yes
++ac_cv_env_CC_set=
++ac_cv_env_CC_value=
++ac_cv_env_CFLAGS_set=set
++ac_cv_env_CFLAGS_value='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic'
++ac_cv_env_CPPFLAGS_set=
++ac_cv_env_CPPFLAGS_value=
++ac_cv_env_CPP_set=
++ac_cv_env_CPP_value=
++ac_cv_env_LDFLAGS_set=set
++ac_cv_env_LDFLAGS_value='-Wl,-z,relro '
++ac_cv_env_LIBS_set=
++ac_cv_env_LIBS_value=
++ac_cv_env_build_alias_set=set
++ac_cv_env_build_alias_value=x86_64-unknown-linux-gnu
++ac_cv_env_host_alias_set=set
++ac_cv_env_host_alias_value=x86_64-unknown-linux-gnu
++ac_cv_env_target_alias_set=
++ac_cv_env_target_alias_value=
++ac_cv_func_lstat_dereferences_slashed_symlink=yes
++ac_cv_func_malloc_0_nonnull=yes
++ac_cv_func_memset=yes
++ac_cv_func_select=yes
++ac_cv_func_select_args='int,fd_set *,struct timeval *'
++ac_cv_func_stat_empty_string_bug=no
++ac_cv_func_strchr=yes
++ac_cv_func_strdup=yes
++ac_cv_func_strrchr=yes
++ac_cv_func_strstr=yes
++ac_cv_header_arpa_inet_h=yes
++ac_cv_header_arpa_nameser_compat_h=yes
++ac_cv_header_endian_h=yes
++ac_cv_header_inttypes_h=yes
++ac_cv_header_memory_h=yes
++ac_cv_header_net_if_arp_h=yes
++ac_cv_header_net_if_h=yes
++ac_cv_header_net_if_ppp_h=yes
++ac_cv_header_netdb_h=yes
++ac_cv_header_netinet_if_ether_h=yes
++ac_cv_header_netinet_in_h=yes
++ac_cv_header_stdc=yes
++ac_cv_header_stdint_h=yes
++ac_cv_header_stdlib_h=yes
++ac_cv_header_string_h=yes
++ac_cv_header_strings_h=yes
++ac_cv_header_sys_param_h=yes
++ac_cv_header_sys_select_h=yes
++ac_cv_header_sys_socket_h=yes
++ac_cv_header_sys_stat_h=yes
++ac_cv_header_sys_time_h=yes
++ac_cv_header_sys_types_h=yes
++ac_cv_header_time=yes
++ac_cv_header_unistd_h=yes
++ac_cv_lib_ncurses_initscr=yes
++ac_cv_lib_nsl_main=yes
++ac_cv_lib_pcap_pcap_open_live=yes
++ac_cv_lib_resolv_main=yes
++ac_cv_lib_socket_main=no
++ac_cv_objext=o
++ac_cv_path_EGREP='/usr/bin/grep -E'
++ac_cv_path_GREP=/usr/bin/grep
++ac_cv_path_install='/usr/bin/install -c'
++ac_cv_prog_CPP='gcc -E'
++ac_cv_prog_ac_ct_CC=gcc
++ac_cv_prog_cc_c89=
++ac_cv_prog_cc_g=yes
++ac_cv_type_off_t=yes
++ac_cv_type_signal=void
++ac_cv_type_size_t=yes
++ac_cv_type_struct_bpf_timeval=no
++
++## ----------------- ##
++## Output variables. ##
++## ----------------- ##
++
++CC='gcc'
++CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic'
++CPP='gcc -E'
++CPPFLAGS=''
++DEFS='-DHAVE_CONFIG_H'
++ECHO_C=''
++ECHO_N='-n'
++ECHO_T=''
++EGREP='/usr/bin/grep -E'
++EXEEXT=''
++GREP='/usr/bin/grep'
++INSTALL_DATA='${INSTALL} -m 644'
++INSTALL_PROGRAM='${INSTALL}'
++INSTALL_SCRIPT='${INSTALL}'
++LDFLAGS='-Wl,-z,relro '
++LIBOBJS=''
++LIBS='-lresolv -lnsl -lpcap -lncurses '
++LTLIBOBJS=''
++OBJEXT='o'
++OPTFLAGS=' -DUSE_IPV6=1'
++PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS'
++PACKAGE_NAME='FULL-PACKAGE-NAME'
++PACKAGE_STRING='FULL-PACKAGE-NAME VERSION'
++PACKAGE_TARNAME='full-package-name'
++PACKAGE_URL=''
++PACKAGE_VERSION='VERSION'
++PATH_SEPARATOR=':'
++SHELL='/bin/sh'
++ac_ct_CC='gcc'
++bindir='/usr/bin'
++build_alias='x86_64-unknown-linux-gnu'
++datadir='/usr/share'
++datarootdir='${prefix}/share'
++docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
++dvidir='${docdir}'
++exec_prefix='/usr'
++host_alias='x86_64-unknown-linux-gnu'
++htmldir='${docdir}'
++includedir='/usr/include'
++infodir='/usr/share/info'
++libdir='/usr/lib64'
++libexecdir='/usr/libexec'
++localedir='${datarootdir}/locale'
++localstatedir='/var'
++mandir='/usr/share/man'
++oldincludedir='/usr/include'
++pdfdir='${docdir}'
++prefix='/usr'
++program_transform_name='s,x,x,'
++psdir='${docdir}'
++sbindir='/usr/sbin'
++sharedstatedir='/var/lib'
++sysconfdir='/etc'
++target_alias=''
++
++## ----------- ##
++## confdefs.h. ##
++## ----------- ##
++
++/* confdefs.h */
++#define PACKAGE_NAME "FULL-PACKAGE-NAME"
++#define PACKAGE_TARNAME "full-package-name"
++#define PACKAGE_VERSION "VERSION"
++#define PACKAGE_STRING "FULL-PACKAGE-NAME VERSION"
++#define PACKAGE_BUGREPORT "BUG-REPORT-ADDRESS"
++#define PACKAGE_URL ""
++#define HAVE_LIBNCURSES 1
++#define HAVE_LIBPCAP 1
++#define HAVE_LIBNSL 1
++#define HAVE_LIBRESOLV 1
++#define STDC_HEADERS 1
++#define HAVE_SYS_TYPES_H 1
++#define HAVE_SYS_STAT_H 1
++#define HAVE_STDLIB_H 1
++#define HAVE_STRING_H 1
++#define HAVE_MEMORY_H 1
++#define HAVE_STRINGS_H 1
++#define HAVE_INTTYPES_H 1
++#define HAVE_STDINT_H 1
++#define HAVE_UNISTD_H 1
++#define HAVE_ARPA_INET_H 1
++#define HAVE_NETDB_H 1
++#define HAVE_NETINET_IN_H 1
++#define HAVE_STDINT_H 1
++#define HAVE_STDLIB_H 1
++#define HAVE_STRING_H 1
++#define HAVE_SYS_PARAM_H 1
++#define HAVE_SYS_SOCKET_H 1
++#define HAVE_SYS_TIME_H 1
++#define HAVE_UNISTD_H 1
++#define HAVE_ENDIAN_H 1
++#define HAVE_ARPA_NAMESER_COMPAT_H 1
++#define HAVE_NET_IF_ARP_H 1
++#define HAVE_NET_IF_H 1
++#define HAVE_NETINET_IF_ETHER_H 1
++#define HAVE_NET_IF_PPP_H 1
++#define TIME_WITH_SYS_TIME 1
++#define HAVE_STDLIB_H 1
++#define HAVE_MALLOC 1
++#define HAVE_SYS_SELECT_H 1
++#define HAVE_SYS_SOCKET_H 1
++#define SELECT_TYPE_ARG1 int
++#define SELECT_TYPE_ARG234 (fd_set *)
++#define SELECT_TYPE_ARG5 (struct timeval *)
++#define RETSIGTYPE void
++#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
++#define HAVE_MEMSET 1
++#define HAVE_SELECT 1
++#define HAVE_STRCHR 1
++#define HAVE_STRDUP 1
++#define HAVE_STRRCHR 1
++#define HAVE_STRSTR 1
++
++configure: exit 0
+diff -rN -U20 dnstop-20121017.orig/config.status dnstop-20121017/config.status
+--- dnstop-20121017.orig/config.status	1969-12-31 16:00:00.000000000 -0800
++++ dnstop-20121017/config.status	2013-02-17 13:35:06.064026728 -0800
+@@ -0,0 +1,1023 @@
++#! /bin/sh
++# Generated by configure.
++# Run this file to recreate the current configuration.
++# Compiler output produced by configure, useful for debugging
++# configure, is in config.log if it exists.
++
++debug=false
++ac_cs_recheck=false
++ac_cs_silent=false
++
++SHELL=${CONFIG_SHELL-/bin/sh}
++export SHELL
++## -------------------- ##
++## M4sh Initialization. ##
++## -------------------- ##
++
++# Be more Bourne compatible
++DUALCASE=1; export DUALCASE # for MKS sh
++if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
++  emulate sh
++  NULLCMD=:
++  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
++  # is contrary to our usage.  Disable this feature.
++  alias -g '${1+"$@"}'='"$@"'
++  setopt NO_GLOB_SUBST
++else
++  case `(set -o) 2>/dev/null` in #(
++  *posix*) :
++    set -o posix ;; #(
++  *) :
++     ;;
++esac
++fi
++
++
++as_nl='
++'
++export as_nl
++# Printing a long string crashes Solaris 7 /usr/bin/printf.
++as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
++as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
++as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
++# Prefer a ksh shell builtin over an external printf program on Solaris,
++# but without wasting forks for bash or zsh.
++if test -z "$BASH_VERSION$ZSH_VERSION" \
++    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
++  as_echo='print -r --'
++  as_echo_n='print -rn --'
++elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
++  as_echo='printf %s\n'
++  as_echo_n='printf %s'
++else
++  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
++    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
++    as_echo_n='/usr/ucb/echo -n'
++  else
++    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
++    as_echo_n_body='eval
++      arg=$1;
++      case $arg in #(
++      *"$as_nl"*)
++	expr "X$arg" : "X\\(.*\\)$as_nl";
++	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
++      esac;
++      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
++    '
++    export as_echo_n_body
++    as_echo_n='sh -c $as_echo_n_body as_echo'
++  fi
++  export as_echo_body
++  as_echo='sh -c $as_echo_body as_echo'
++fi
++
++# The user is always right.
++if test "${PATH_SEPARATOR+set}" != set; then
++  PATH_SEPARATOR=:
++  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
++    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
++      PATH_SEPARATOR=';'
++  }
++fi
++
++
++# IFS
++# We need space, tab and new line, in precisely that order.  Quoting is
++# there to prevent editors from complaining about space-tab.
++# (If _AS_PATH_WALK were called with IFS unset, it would disable word
++# splitting by setting IFS to empty value.)
++IFS=" ""	$as_nl"
++
++# Find who we are.  Look in the path if we contain no directory separator.
++case $0 in #((
++  *[\\/]* ) as_myself=$0 ;;
++  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++  IFS=$as_save_IFS
++  test -z "$as_dir" && as_dir=.
++    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
++  done
++IFS=$as_save_IFS
++
++     ;;
++esac
++# We did not find ourselves, most probably we were run as `sh COMMAND'
++# in which case we are not to be found in the path.
++if test "x$as_myself" = x; then
++  as_myself=$0
++fi
++if test ! -f "$as_myself"; then
++  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
++  exit 1
++fi
++
++# Unset variables that we do not need and which cause bugs (e.g. in
++# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
++# suppresses any "Segmentation fault" message there.  '((' could
++# trigger a bug in pdksh 5.2.14.
++for as_var in BASH_ENV ENV MAIL MAILPATH
++do eval test x\${$as_var+set} = xset \
++  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
++done
++PS1='$ '
++PS2='> '
++PS4='+ '
++
++# NLS nuisances.
++LC_ALL=C
++export LC_ALL
++LANGUAGE=C
++export LANGUAGE
++
++# CDPATH.
++(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
++
++
++# as_fn_error ERROR [LINENO LOG_FD]
++# ---------------------------------
++# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
++# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
++# script with status $?, using 1 if that was 0.
++as_fn_error ()
++{
++  as_status=$?; test $as_status -eq 0 && as_status=1
++  if test "$3"; then
++    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
++    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
++  fi
++  $as_echo "$as_me: error: $1" >&2
++  as_fn_exit $as_status
++} # as_fn_error
++
++
++# as_fn_set_status STATUS
++# -----------------------
++# Set $? to STATUS, without forking.
++as_fn_set_status ()
++{
++  return $1
++} # as_fn_set_status
++
++# as_fn_exit STATUS
++# -----------------
++# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
++as_fn_exit ()
++{
++  set +e
++  as_fn_set_status $1
++  exit $1
++} # as_fn_exit
++
++# as_fn_unset VAR
++# ---------------
++# Portably unset VAR.
++as_fn_unset ()
++{
++  { eval $1=; unset $1;}
++}
++as_unset=as_fn_unset
++# as_fn_append VAR VALUE
++# ----------------------
++# Append the text in VALUE to the end of the definition contained in VAR. Take
++# advantage of any shell optimizations that allow amortized linear growth over
++# repeated appends, instead of the typical quadratic growth present in naive
++# implementations.
++if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
++  eval 'as_fn_append ()
++  {
++    eval $1+=\$2
++  }'
++else
++  as_fn_append ()
++  {
++    eval $1=\$$1\$2
++  }
++fi # as_fn_append
++
++# as_fn_arith ARG...
++# ------------------
++# Perform arithmetic evaluation on the ARGs, and store the result in the
++# global $as_val. Take advantage of shells that can avoid forks. The arguments
++# must be portable across $(()) and expr.
++if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
++  eval 'as_fn_arith ()
++  {
++    as_val=$(( $* ))
++  }'
++else
++  as_fn_arith ()
++  {
++    as_val=`expr "$@" || test $? -eq 1`
++  }
++fi # as_fn_arith
++
++
++if expr a : '\(a\)' >/dev/null 2>&1 &&
++   test "X`expr 00001 : '.*\(...\)'`" = X001; then
++  as_expr=expr
++else
++  as_expr=false
++fi
++
++if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
++  as_basename=basename
++else
++  as_basename=false
++fi
++
++if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
++  as_dirname=dirname
++else
++  as_dirname=false
++fi
++
++as_me=`$as_basename -- "$0" ||
++$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
++	 X"$0" : 'X\(//\)$' \| \
++	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
++$as_echo X/"$0" |
++    sed '/^.*\/\([^/][^/]*\)\/*$/{
++	    s//\1/
++	    q
++	  }
++	  /^X\/\(\/\/\)$/{
++	    s//\1/
++	    q
++	  }
++	  /^X\/\(\/\).*/{
++	    s//\1/
++	    q
++	  }
++	  s/.*/./; q'`
++
++# Avoid depending upon Character Ranges.
++as_cr_letters='abcdefghijklmnopqrstuvwxyz'
++as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
++as_cr_Letters=$as_cr_letters$as_cr_LETTERS
++as_cr_digits='0123456789'
++as_cr_alnum=$as_cr_Letters$as_cr_digits
++
++ECHO_C= ECHO_N= ECHO_T=
++case `echo -n x` in #(((((
++-n*)
++  case `echo 'xy\c'` in
++  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
++  xy)  ECHO_C='\c';;
++  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
++       ECHO_T='	';;
++  esac;;
++*)
++  ECHO_N='-n';;
++esac
++
++rm -f conf$$ conf$$.exe conf$$.file
++if test -d conf$$.dir; then
++  rm -f conf$$.dir/conf$$.file
++else
++  rm -f conf$$.dir
++  mkdir conf$$.dir 2>/dev/null
++fi
++if (echo >conf$$.file) 2>/dev/null; then
++  if ln -s conf$$.file conf$$ 2>/dev/null; then
++    as_ln_s='ln -s'
++    # ... but there are two gotchas:
++    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
++    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
++    # In both cases, we have to default to `cp -p'.
++    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
++      as_ln_s='cp -p'
++  elif ln conf$$.file conf$$ 2>/dev/null; then
++    as_ln_s=ln
++  else
++    as_ln_s='cp -p'
++  fi
++else
++  as_ln_s='cp -p'
++fi
++rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
++rmdir conf$$.dir 2>/dev/null
++
++
++# as_fn_mkdir_p
++# -------------
++# Create "$as_dir" as a directory, including parents if necessary.
++as_fn_mkdir_p ()
++{
++
++  case $as_dir in #(
++  -*) as_dir=./$as_dir;;
++  esac
++  test -d "$as_dir" || eval $as_mkdir_p || {
++    as_dirs=
++    while :; do
++      case $as_dir in #(
++      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
++      *) as_qdir=$as_dir;;
++      esac
++      as_dirs="'$as_qdir' $as_dirs"
++      as_dir=`$as_dirname -- "$as_dir" ||
++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
++	 X"$as_dir" : 'X\(//\)[^/]' \| \
++	 X"$as_dir" : 'X\(//\)$' \| \
++	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
++$as_echo X"$as_dir" |
++    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
++	    s//\1/
++	    q
++	  }
++	  /^X\(\/\/\)[^/].*/{
++	    s//\1/
++	    q
++	  }
++	  /^X\(\/\/\)$/{
++	    s//\1/
++	    q
++	  }
++	  /^X\(\/\).*/{
++	    s//\1/
++	    q
++	  }
++	  s/.*/./; q'`
++      test -d "$as_dir" && break
++    done
++    test -z "$as_dirs" || eval "mkdir $as_dirs"
++  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
++
++
++} # as_fn_mkdir_p
++if mkdir -p . 2>/dev/null; then
++  as_mkdir_p='mkdir -p "$as_dir"'
++else
++  test -d ./-p && rmdir ./-p
++  as_mkdir_p=false
++fi
++
++if test -x / >/dev/null 2>&1; then
++  as_test_x='test -x'
++else
++  if ls -dL / >/dev/null 2>&1; then
++    as_ls_L_option=L
++  else
++    as_ls_L_option=
++  fi
++  as_test_x='
++    eval sh -c '\''
++      if test -d "$1"; then
++	test -d "$1/.";
++      else
++	case $1 in #(
++	-*)set "./$1";;
++	esac;
++	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
++	???[sx]*):;;*)false;;esac;fi
++    '\'' sh
++  '
++fi
++as_executable_p=$as_test_x
++
++# Sed expression to map a string onto a valid CPP name.
++as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
++
++# Sed expression to map a string onto a valid variable name.
++as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
++
++
++exec 6>&1
++## ----------------------------------- ##
++## Main body of $CONFIG_STATUS script. ##
++## ----------------------------------- ##
++# Save the log message, to keep $0 and so on meaningful, and to
++# report actual input values of CONFIG_FILES etc. instead of their
++# values after options handling.
++ac_log="
++This file was extended by FULL-PACKAGE-NAME $as_me VERSION, which was
++generated by GNU Autoconf 2.64.  Invocation command line was
++
++  CONFIG_FILES    = $CONFIG_FILES
++  CONFIG_HEADERS  = $CONFIG_HEADERS
++  CONFIG_LINKS    = $CONFIG_LINKS
++  CONFIG_COMMANDS = $CONFIG_COMMANDS
++  $ $0 $@
++
++on `(hostname || uname -n) 2>/dev/null | sed 1q`
++"
++
++# Files that config.status was made for.
++config_files=" Makefile"
++config_headers=" config.h"
++
++ac_cs_usage="\
++\`$as_me' instantiates files and other configuration actions
++from templates according to the current configuration.  Unless the files
++and actions are specified as TAGs, all are instantiated by default.
++
++Usage: $0 [OPTION]... [TAG]...
++
++  -h, --help       print this help, then exit
++  -V, --version    print version number and configuration settings, then exit
++  -q, --quiet, --silent
++                   do not print progress messages
++  -d, --debug      don't remove temporary files
++      --recheck    update $as_me by reconfiguring in the same conditions
++      --file=FILE[:TEMPLATE]
++                   instantiate the configuration file FILE
++      --header=FILE[:TEMPLATE]
++                   instantiate the configuration header FILE
++
++Configuration files:
++$config_files
++
++Configuration headers:
++$config_headers
++
++Report bugs to <BUG-REPORT-ADDRESS>."
++
++ac_cs_version="\
++FULL-PACKAGE-NAME config.status VERSION
++configured by ./configure, generated by GNU Autoconf 2.64,
++  with options \"'--build=x86_64-unknown-linux-gnu' '--host=x86_64-unknown-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' 'build_alias=x86_64-unknown-linux-gnu' 'host_alias=x86_64-unknown-linux-gnu' 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic' 'LDFLAGS=-Wl,-z,relro '\"
++
++Copyright (C) 2009 Free Software Foundation, Inc.
++This config.status script is free software; the Free Software Foundation
++gives unlimited permission to copy, distribute and modify it."
++
++ac_pwd='/home/conrad/fedora/dnstop/dnstop-20121017'
++srcdir='.'
++INSTALL='/usr/bin/install -c'
++test -n "$AWK" || AWK=awk
++# The default lists apply if the user does not specify any file.
++ac_need_defaults=:
++while test $# != 0
++do
++  case $1 in
++  --*=*)
++    ac_option=`expr "X$1" : 'X\([^=]*\)='`
++    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
++    ac_shift=:
++    ;;
++  *)
++    ac_option=$1
++    ac_optarg=$2
++    ac_shift=shift
++    ;;
++  esac
++
++  case $ac_option in
++  # Handling of the options.
++  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
++    ac_cs_recheck=: ;;
++  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
++    $as_echo "$ac_cs_version"; exit ;;
++  --debug | --debu | --deb | --de | --d | -d )
++    debug=: ;;
++  --file | --fil | --fi | --f )
++    $ac_shift
++    case $ac_optarg in
++    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
++    esac
++    as_fn_append CONFIG_FILES " '$ac_optarg'"
++    ac_need_defaults=false;;
++  --header | --heade | --head | --hea )
++    $ac_shift
++    case $ac_optarg in
++    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
++    esac
++    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
++    ac_need_defaults=false;;
++  --he | --h)
++    # Conflict between --help and --header
++    as_fn_error "ambiguous option: \`$1'
++Try \`$0 --help' for more information.";;
++  --help | --hel | -h )
++    $as_echo "$ac_cs_usage"; exit ;;
++  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
++  | -silent | --silent | --silen | --sile | --sil | --si | --s)
++    ac_cs_silent=: ;;
++
++  # This is an error.
++  -*) as_fn_error "unrecognized option: \`$1'
++Try \`$0 --help' for more information." ;;
++
++  *) as_fn_append ac_config_targets " $1"
++     ac_need_defaults=false ;;
++
++  esac
++  shift
++done
++
++ac_configure_extra_args=
++
++if $ac_cs_silent; then
++  exec 6>/dev/null
++  ac_configure_extra_args="$ac_configure_extra_args --silent"
++fi
++
++if $ac_cs_recheck; then
++  set X '/bin/sh' './configure'  '--build=x86_64-unknown-linux-gnu' '--host=x86_64-unknown-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' 'build_alias=x86_64-unknown-linux-gnu' 'host_alias=x86_64-unknown-linux-gnu' 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic' 'LDFLAGS=-Wl,-z,relro ' $ac_configure_extra_args --no-create --no-recursion
++  shift
++  $as_echo "running CONFIG_SHELL=/bin/sh $*" >&6
++  CONFIG_SHELL='/bin/sh'
++  export CONFIG_SHELL
++  exec "$@"
++fi
++
++exec 5>>config.log
++{
++  echo
++  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
++## Running $as_me. ##
++_ASBOX
++  $as_echo "$ac_log"
++} >&5
++
++
++# Handling of arguments.
++for ac_config_target in $ac_config_targets
++do
++  case $ac_config_target in
++    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
++    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
++
++  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
++  esac
++done
++
++
++# If the user did not use the arguments to specify the items to instantiate,
++# then the envvar interface is used.  Set only those that are not.
++# We use the long form for the default assignment because of an extremely
++# bizarre bug on SunOS 4.1.3.
++if $ac_need_defaults; then
++  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
++  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
++fi
++
++# Have a temporary directory for convenience.  Make it in the build tree
++# simply because there is no reason against having it here, and in addition,
++# creating and moving files from /tmp can sometimes cause problems.
++# Hook for its removal unless debugging.
++# Note that there is a small window in which the directory will not be cleaned:
++# after its creation but before its name has been assigned to `$tmp'.
++$debug ||
++{
++  tmp=
++  trap 'exit_status=$?
++  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
++' 0
++  trap 'as_fn_exit 1' 1 2 13 15
++}
++# Create a (secure) tmp directory for tmp files.
++
++{
++  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
++  test -n "$tmp" && test -d "$tmp"
++}  ||
++{
++  tmp=./conf$$-$RANDOM
++  (umask 077 && mkdir "$tmp")
++} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
++
++# Set up the scripts for CONFIG_FILES section.
++# No need to generate them if there are no CONFIG_FILES.
++# This happens for instance with `./config.status config.h'.
++if test -n "$CONFIG_FILES"; then
++
++
++ac_cr=`echo X | tr X '\015'`
++# On cygwin, bash can eat \r inside `` if the user requested igncr.
++# But we know of no other shell where ac_cr would be empty at this
++# point, so we can use a bashism as a fallback.
++if test "x$ac_cr" = x; then
++  eval ac_cr=\$\'\\r\'
++fi
++ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
++if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
++  ac_cs_awk_cr='\r'
++else
++  ac_cs_awk_cr=$ac_cr
++fi
++
++echo 'BEGIN {' >"$tmp/subs1.awk" &&
++cat >>"$tmp/subs1.awk" <<\_ACAWK &&
++S["LTLIBOBJS"]=""
++S["OPTFLAGS"]=" -DUSE_IPV6=1"
++S["LIBOBJS"]=""
++S["EGREP"]="/usr/bin/grep -E"
++S["GREP"]="/usr/bin/grep"
++S["CPP"]="gcc -E"
++S["INSTALL_DATA"]="${INSTALL} -m 644"
++S["INSTALL_SCRIPT"]="${INSTALL}"
++S["INSTALL_PROGRAM"]="${INSTALL}"
++S["OBJEXT"]="o"
++S["EXEEXT"]=""
++S["ac_ct_CC"]="gcc"
++S["CPPFLAGS"]=""
++S["LDFLAGS"]="-Wl,-z,relro "
++S["CFLAGS"]="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic"
++S["CC"]="gcc"
++S["target_alias"]=""
++S["host_alias"]="x86_64-unknown-linux-gnu"
++S["build_alias"]="x86_64-unknown-linux-gnu"
++S["LIBS"]="-lresolv -lnsl -lpcap -lncurses "
++S["ECHO_T"]=""
++S["ECHO_N"]="-n"
++S["ECHO_C"]=""
++S["DEFS"]="-DHAVE_CONFIG_H"
++S["mandir"]="/usr/share/man"
++S["localedir"]="${datarootdir}/locale"
++S["libdir"]="/usr/lib64"
++S["psdir"]="${docdir}"
++S["pdfdir"]="${docdir}"
++S["dvidir"]="${docdir}"
++S["htmldir"]="${docdir}"
++S["infodir"]="/usr/share/info"
++S["docdir"]="${datarootdir}/doc/${PACKAGE_TARNAME}"
++S["oldincludedir"]="/usr/include"
++S["includedir"]="/usr/include"
++S["localstatedir"]="/var"
++S["sharedstatedir"]="/var/lib"
++S["sysconfdir"]="/etc"
++S["datadir"]="/usr/share"
++S["datarootdir"]="${prefix}/share"
++S["libexecdir"]="/usr/libexec"
++S["sbindir"]="/usr/sbin"
++S["bindir"]="/usr/bin"
++S["program_transform_name"]="s,x,x,"
++S["prefix"]="/usr"
++S["exec_prefix"]="/usr"
++S["PACKAGE_URL"]=""
++S["PACKAGE_BUGREPORT"]="BUG-REPORT-ADDRESS"
++S["PACKAGE_STRING"]="FULL-PACKAGE-NAME VERSION"
++S["PACKAGE_VERSION"]="VERSION"
++S["PACKAGE_TARNAME"]="full-package-name"
++S["PACKAGE_NAME"]="FULL-PACKAGE-NAME"
++S["PATH_SEPARATOR"]=":"
++S["SHELL"]="/bin/sh"
++_ACAWK
++cat >>"$tmp/subs1.awk" <<_ACAWK &&
++  for (key in S) S_is_set[key] = 1
++  FS = ""
++
++}
++{
++  line = $ 0
++  nfields = split(line, field, "@")
++  substed = 0
++  len = length(field[1])
++  for (i = 2; i < nfields; i++) {
++    key = field[i]
++    keylen = length(key)
++    if (S_is_set[key]) {
++      value = S[key]
++      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
++      len += length(value) + length(field[++i])
++      substed = 1
++    } else
++      len += 1 + keylen
++  }
++
++  print line
++}
++
++_ACAWK
++if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
++  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
++else
++  cat
++fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
++  || as_fn_error "could not setup config files machinery" "$LINENO" 5
++fi # test -n "$CONFIG_FILES"
++
++# Set up the scripts for CONFIG_HEADERS section.
++# No need to generate them if there are no CONFIG_HEADERS.
++# This happens for instance with `./config.status Makefile'.
++if test -n "$CONFIG_HEADERS"; then
++cat >"$tmp/defines.awk" <<\_ACAWK ||
++BEGIN {
++D["PACKAGE_NAME"]=" \"FULL-PACKAGE-NAME\""
++D["PACKAGE_TARNAME"]=" \"full-package-name\""
++D["PACKAGE_VERSION"]=" \"VERSION\""
++D["PACKAGE_STRING"]=" \"FULL-PACKAGE-NAME VERSION\""
++D["PACKAGE_BUGREPORT"]=" \"BUG-REPORT-ADDRESS\""
++D["PACKAGE_URL"]=" \"\""
++D["HAVE_LIBNCURSES"]=" 1"
++D["HAVE_LIBPCAP"]=" 1"
++D["HAVE_LIBNSL"]=" 1"
++D["HAVE_LIBRESOLV"]=" 1"
++D["STDC_HEADERS"]=" 1"
++D["HAVE_SYS_TYPES_H"]=" 1"
++D["HAVE_SYS_STAT_H"]=" 1"
++D["HAVE_STDLIB_H"]=" 1"
++D["HAVE_STRING_H"]=" 1"
++D["HAVE_MEMORY_H"]=" 1"
++D["HAVE_STRINGS_H"]=" 1"
++D["HAVE_INTTYPES_H"]=" 1"
++D["HAVE_STDINT_H"]=" 1"
++D["HAVE_UNISTD_H"]=" 1"
++D["HAVE_ARPA_INET_H"]=" 1"
++D["HAVE_NETDB_H"]=" 1"
++D["HAVE_NETINET_IN_H"]=" 1"
++D["HAVE_STDINT_H"]=" 1"
++D["HAVE_STDLIB_H"]=" 1"
++D["HAVE_STRING_H"]=" 1"
++D["HAVE_SYS_PARAM_H"]=" 1"
++D["HAVE_SYS_SOCKET_H"]=" 1"
++D["HAVE_SYS_TIME_H"]=" 1"
++D["HAVE_UNISTD_H"]=" 1"
++D["HAVE_ENDIAN_H"]=" 1"
++D["HAVE_ARPA_NAMESER_COMPAT_H"]=" 1"
++D["HAVE_NET_IF_ARP_H"]=" 1"
++D["HAVE_NET_IF_H"]=" 1"
++D["HAVE_NETINET_IF_ETHER_H"]=" 1"
++D["HAVE_NET_IF_PPP_H"]=" 1"
++D["TIME_WITH_SYS_TIME"]=" 1"
++D["HAVE_STDLIB_H"]=" 1"
++D["HAVE_MALLOC"]=" 1"
++D["HAVE_SYS_SELECT_H"]=" 1"
++D["HAVE_SYS_SOCKET_H"]=" 1"
++D["SELECT_TYPE_ARG1"]=" int"
++D["SELECT_TYPE_ARG234"]=" (fd_set *)"
++D["SELECT_TYPE_ARG5"]=" (struct timeval *)"
++D["RETSIGTYPE"]=" void"
++D["LSTAT_FOLLOWS_SLASHED_SYMLINK"]=" 1"
++D["HAVE_MEMSET"]=" 1"
++D["HAVE_SELECT"]=" 1"
++D["HAVE_STRCHR"]=" 1"
++D["HAVE_STRDUP"]=" 1"
++D["HAVE_STRRCHR"]=" 1"
++D["HAVE_STRSTR"]=" 1"
++  for (key in D) D_is_set[key] = 1
++  FS = ""
++}
++/^[\t ]*#[\t ]*(define|undef)[\t ]+[_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ][_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]*([\t (]|$)/ {
++  line = $ 0
++  split(line, arg, " ")
++  if (arg[1] == "#") {
++    defundef = arg[2]
++    mac1 = arg[3]
++  } else {
++    defundef = substr(arg[1], 2)
++    mac1 = arg[2]
++  }
++  split(mac1, mac2, "(") #)
++  macro = mac2[1]
++  prefix = substr(line, 1, index(line, defundef) - 1)
++  if (D_is_set[macro]) {
++    # Preserve the white space surrounding the "#".
++    print prefix "define", macro P[macro] D[macro]
++    next
++  } else {
++    # Replace #undef with comments.  This is necessary, for example,
++    # in the case of _POSIX_SOURCE, which is predefined and required
++    # on some systems where configure will not decide to define it.
++    if (defundef == "undef") {
++      print "/*", prefix defundef, macro, "*/"
++      next
++    }
++  }
++}
++{ print }
++_ACAWK
++  as_fn_error "could not setup config headers machinery" "$LINENO" 5
++fi # test -n "$CONFIG_HEADERS"
++
++
++eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
++shift
++for ac_tag
++do
++  case $ac_tag in
++  :[FHLC]) ac_mode=$ac_tag; continue;;
++  esac
++  case $ac_mode$ac_tag in
++  :[FHL]*:*);;
++  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
++  :[FH]-) ac_tag=-:-;;
++  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
++  esac
++  ac_save_IFS=$IFS
++  IFS=:
++  set x $ac_tag
++  IFS=$ac_save_IFS
++  shift
++  ac_file=$1
++  shift
++
++  case $ac_mode in
++  :L) ac_source=$1;;
++  :[FH])
++    ac_file_inputs=
++    for ac_f
++    do
++      case $ac_f in
++      -) ac_f="$tmp/stdin";;
++      *) # Look for the file first in the build tree, then in the source tree
++	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
++	 # because $ac_f cannot contain `:'.
++	 test -f "$ac_f" ||
++	   case $ac_f in
++	   [\\/$]*) false;;
++	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
++	   esac ||
++	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
++      esac
++      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
++      as_fn_append ac_file_inputs " '$ac_f'"
++    done
++
++    # Let's still pretend it is `configure' which instantiates (i.e., don't
++    # use $as_me), people would be surprised to read:
++    #    /* config.h.  Generated by config.status.  */
++    configure_input='Generated from '`
++	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
++	`' by configure.'
++    if test x"$ac_file" != x-; then
++      configure_input="$ac_file.  $configure_input"
++      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
++$as_echo "$as_me: creating $ac_file" >&6;}
++    fi
++    # Neutralize special characters interpreted by sed in replacement strings.
++    case $configure_input in #(
++    *\&* | *\|* | *\\* )
++       ac_sed_conf_input=`$as_echo "$configure_input" |
++       sed 's/[\\\\&|]/\\\\&/g'`;; #(
++    *) ac_sed_conf_input=$configure_input;;
++    esac
++
++    case $ac_tag in
++    *:-:* | *:-) cat >"$tmp/stdin" \
++      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
++    esac
++    ;;
++  esac
++
++  ac_dir=`$as_dirname -- "$ac_file" ||
++$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
++	 X"$ac_file" : 'X\(//\)[^/]' \| \
++	 X"$ac_file" : 'X\(//\)$' \| \
++	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
++$as_echo X"$ac_file" |
++    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
++	    s//\1/
++	    q
++	  }
++	  /^X\(\/\/\)[^/].*/{
++	    s//\1/
++	    q
++	  }
++	  /^X\(\/\/\)$/{
++	    s//\1/
++	    q
++	  }
++	  /^X\(\/\).*/{
++	    s//\1/
++	    q
++	  }
++	  s/.*/./; q'`
++  as_dir="$ac_dir"; as_fn_mkdir_p
++  ac_builddir=.
++
++case "$ac_dir" in
++.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
++*)
++  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
++  # A ".." for each directory in $ac_dir_suffix.
++  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
++  case $ac_top_builddir_sub in
++  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
++  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
++  esac ;;
++esac
++ac_abs_top_builddir=$ac_pwd
++ac_abs_builddir=$ac_pwd$ac_dir_suffix
++# for backward compatibility:
++ac_top_builddir=$ac_top_build_prefix
++
++case $srcdir in
++  .)  # We are building in place.
++    ac_srcdir=.
++    ac_top_srcdir=$ac_top_builddir_sub
++    ac_abs_top_srcdir=$ac_pwd ;;
++  [\\/]* | ?:[\\/]* )  # Absolute name.
++    ac_srcdir=$srcdir$ac_dir_suffix;
++    ac_top_srcdir=$srcdir
++    ac_abs_top_srcdir=$srcdir ;;
++  *) # Relative name.
++    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
++    ac_top_srcdir=$ac_top_build_prefix$srcdir
++    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
++esac
++ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
++
++
++  case $ac_mode in
++  :F)
++  #
++  # CONFIG_FILE
++  #
++
++  case $INSTALL in
++  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
++  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
++  esac
++# If the template does not know about datarootdir, expand it.
++# FIXME: This hack should be removed a few years after 2.60.
++ac_datarootdir_hack=; ac_datarootdir_seen=
++ac_sed_dataroot='
++/datarootdir/ {
++  p
++  q
++}
++/@datadir@/p
++/@docdir@/p
++/@infodir@/p
++/@localedir@/p
++/@mandir@/p'
++case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
++*datarootdir*) ac_datarootdir_seen=yes;;
++*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
++  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
++$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
++  ac_datarootdir_hack='
++  s&@datadir@&/usr/share&g
++  s&@docdir@&${datarootdir}/doc/${PACKAGE_TARNAME}&g
++  s&@infodir@&/usr/share/info&g
++  s&@localedir@&${datarootdir}/locale&g
++  s&@mandir@&/usr/share/man&g
++  s&\${datarootdir}&${prefix}/share&g' ;;
++esac
++ac_sed_extra="/^[	 ]*VPATH[	 ]*=/{
++s/:*\$(srcdir):*/:/
++s/:*\${srcdir}:*/:/
++s/:*@srcdir@:*/:/
++s/^\([^=]*=[	 ]*\):*/\1/
++s/:*$//
++s/^[^=]*=[	 ]*$//
++}
++
++:t
++/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
++s|@configure_input@|$ac_sed_conf_input|;t t
++s&@top_builddir@&$ac_top_builddir_sub&;t t
++s&@top_build_prefix@&$ac_top_build_prefix&;t t
++s&@srcdir@&$ac_srcdir&;t t
++s&@abs_srcdir@&$ac_abs_srcdir&;t t
++s&@top_srcdir@&$ac_top_srcdir&;t t
++s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
++s&@builddir@&$ac_builddir&;t t
++s&@abs_builddir@&$ac_abs_builddir&;t t
++s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
++s&@INSTALL@&$ac_INSTALL&;t t
++$ac_datarootdir_hack
++"
++eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
++  || as_fn_error "could not create $ac_file" "$LINENO" 5
++
++test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
++  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
++  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
++  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
++which seems to be undefined.  Please make sure it is defined." >&5
++$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
++which seems to be undefined.  Please make sure it is defined." >&2;}
++
++  rm -f "$tmp/stdin"
++  case $ac_file in
++  -) cat "$tmp/out" && rm -f "$tmp/out";;
++  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
++  esac \
++  || as_fn_error "could not create $ac_file" "$LINENO" 5
++ ;;
++  :H)
++  #
++  # CONFIG_HEADER
++  #
++  if test x"$ac_file" != x-; then
++    {
++      $as_echo "/* $configure_input  */" \
++      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
++    } >"$tmp/config.h" \
++      || as_fn_error "could not create $ac_file" "$LINENO" 5
++    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
++      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
++$as_echo "$as_me: $ac_file is unchanged" >&6;}
++    else
++      rm -f "$ac_file"
++      mv "$tmp/config.h" "$ac_file" \
++	|| as_fn_error "could not create $ac_file" "$LINENO" 5
++    fi
++  else
++    $as_echo "/* $configure_input  */" \
++      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
++      || as_fn_error "could not create -" "$LINENO" 5
++  fi
++ ;;
++
++
++  esac
++
++done # for ac_tag
++
++
++as_fn_exit 0
+diff -rN -U20 dnstop-20121017.orig/dnstop.c dnstop-20121017/dnstop.c
+--- dnstop-20121017.orig/dnstop.c	2012-10-17 09:38:06.000000000 -0700
++++ dnstop-20121017/dnstop.c	2013-02-17 13:35:26.132786982 -0800
+@@ -1,40 +1,42 @@
+ /*
+  * $Id: dnstop.c,v 1.114 2012/10/17 16:37:23 wessels Exp $
+  * 
+  * http://dnstop.measurement-factory.com/
+  * 
+  * Copyright (c) 2002, The Measurement Factory, Inc.  All rights reserved.  See
+  * the LICENSE file for details.
+  */
+ 
+ static const char *Version = "20121017";
+ 
+ #include "config.h"
+ 
+ #include <sys/types.h>
+ #include <sys/time.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
+ 
+ #include <netinet/in.h>
+ 
++#include <err.h>
++#include <errno.h>
+ #include <pcap.h>
+ #include <signal.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+ #include <unistd.h>
+ #include <time.h>
+ #include <ctype.h>
+ #include <curses.h>
+ #include <assert.h>
+ #include <arpa/inet.h>
+ #include <arpa/nameser.h>
+ #ifdef HAVE_ARPA_NAMESER_COMPAT_H
+ #include <arpa/nameser_compat.h>
+ #endif
+ 
+ #include <sys/socket.h>
+ #include <net/if_arp.h>
+ #include <net/if.h>
+ #include <netinet/if_ether.h>
+@@ -330,46 +332,50 @@
+     }
+ 
+     if (-1 == entropy_fd) {
+ 	entropy_fd = open("/dev/urandom", 0);
+ 	if (-1 == entropy_fd) {
+ 	    entropy_fd = open("/dev/random", 0);
+ 	    if (-1 == entropy_fd) {
+ 		fprintf(stderr, "failed to open /dev/urandom or /dev/random");
+ 		exit(1);
+ 	    }
+ 	}
+     }
+     if (ptr == NULL) {
+ 	char buf[16];
+ 	ptr = (ip_list_t *) malloc(sizeof(ip_list_t) + sizeof(inX_addr));
+ 	if (ptr == NULL)
+ 	    return;
+ 	ptr->addr = *orig_addr;
+ 	ptr->data = (void *)(ptr + 1);
+ 	if (4 == inXaddr_version(orig_addr)) {
+-	    read(entropy_fd, buf, 4);
++	    ssize_t rd = read(entropy_fd, buf, 4);
++	    if (rd < 4)
++		err(errno, "read entropy");
+ 	    inXaddr_assign_v4(ptr->data, (struct in_addr *)buf);
+ 	}
+ #if USE_IPV6
+ 	else {
+-	    read(entropy_fd, buf, 16);
++	    ssize_t rd = read(entropy_fd, buf, 16);
++	    if (rd < 16)
++		err(errno, "read entropy");
+ 	    inXaddr_assign_v6(ptr->data, (struct in6_addr *)buf);
+ 	}
+ #endif
+ 	ptr->next = list;
+ 	list = ptr;
+     }
+     *anon_addr = *(inX_addr *) ptr->data;
+ }
+ 
+ const char *
+ anon_inet_ntoa(const inX_addr * addr)
+ {
+     static char buffer[INET6_ADDRSTRLEN];
+     inX_addr anon_addr;
+     if (anon_flag) {
+ 	allocate_anonymous_address(&anon_addr, addr);
+ 	addr = &anon_addr;
+     }
+     return inXaddr_ntop(addr, buffer, sizeof(buffer));
+ }
+@@ -1352,48 +1358,48 @@
+ }
+ 
+ void
+ Domain_report(void)
+ {
+     if (cur_level > max_level) {
+ 	print_func("\tYou must start %s with -l %d\n", progname, cur_level);
+ 	print_func("\tto collect this level of domain stats.\n", progname);
+ 	return;
+     }
+     StringCounter_report(Domains[cur_level], "Query Name");
+ }
+ 
+ const char *
+ Qtype_col_fmt(const SortItem * si)
+ {
+     return si->ptr;
+ }
+ 
+ void
+-Simple_report(unsigned int a[], unsigned int max, const char *name, strify * to_str)
++Simple_report(int a[], unsigned int max, const char *name, strify * to_str)
+ {
+     unsigned int i;
+     unsigned int sum = 0;
+     unsigned int sortsize = 0;
+     SortItem *sortme = calloc(max, sizeof(SortItem));
+     for (i = 0; i < max; i++) {
+-	if (0 == a[i])
++	if (0 >= a[i])
+ 	    continue;
+ 	sum += a[i];
+ 	sortme[sortsize].cnt = a[i];
+ 	sortme[sortsize].ptr = to_str(i);
+ 	sortsize++;
+     }
+     qsort(sortme, sortsize, sizeof(SortItem), SortItem_cmp);
+     Table_report(sortme, sortsize,
+ 	name, NULL,
+ 	Qtype_col_fmt, NULL,
+ 	sum);
+     free(sortme);
+ }
+ 
+ void
+ Qtypes_report(void)
+ {
+     Simple_report(qtype_counts, T_MAX, "Query Type", qtype_str);
+ }
+ 
+Binary files dnstop-20121017.orig/hashtbl.o and dnstop-20121017/hashtbl.o differ
+Binary files dnstop-20121017.orig/inX_addr.o and dnstop-20121017/inX_addr.o differ
+Binary files dnstop-20121017.orig/lookup3.o and dnstop-20121017/lookup3.o differ
+diff -rN -U20 dnstop-20121017.orig/Makefile dnstop-20121017/Makefile
+--- dnstop-20121017.orig/Makefile	1969-12-31 16:00:00.000000000 -0800
++++ dnstop-20121017/Makefile	2013-02-17 13:35:06.118026115 -0800
+@@ -0,0 +1,61 @@
++PROG=dnstop
++
++OPTFLAGS= -DUSE_IPV6=1
++CC=gcc
++CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic ${OPTFLAGS}
++LIBS=-lresolv -lnsl -lpcap -lncurses 
++LDFLAGS=-Wl,-z,relro 
++
++prefix=/usr
++exec_prefix=/usr
++bindir=/usr/bin
++datarootdir=${prefix}/share
++datadir=/usr/share
++mandir=/usr/share/man
++
++SRCS=	$(PROG).c \
++	hashtbl.c hashtbl.h \
++	inX_addr.c inX_addr.h \
++	known_tlds.h \
++	lookup3.c
++
++OBJS=	$(PROG).o \
++	hashtbl.o \
++	inX_addr.o \
++	lookup3.o
++
++all: $(PROG)
++
++$(PROG): $(OBJS)
++	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) ${LIBS}
++
++clean:
++	rm -f $(PROG) $(OBJS) $(PROG).core $(PROG).c~
++
++distclean: clean
++	rm -rf autom4te.cache
++	rm -f config.h
++	rm -f config.log
++	rm -f config.status
++	rm -f config.status.lineno
++	rm -f Makefile
++
++tar:
++	DATE=`date +%Y%m%d` && \
++	mkdir $(PROG)-$$DATE && \
++	cp -p LICENSE CHANGES $(SRCS) $(PROG).8 $(PROG)-$$DATE && \
++	cp -p configure Makefile.in config.h.in install-sh $(PROG)-$$DATE && \
++	cp -p configure.scan $(PROG)-$$DATE/configure.ac && \
++	perl -pi -e "s/\@VERSION\@/$$DATE/" $(PROG)-$$DATE/dnstop.c && \
++	tar czvf $(PROG)-$$DATE.tar.gz $(PROG)-$$DATE && \
++	chmod 444 $(PROG)-$$DATE.tar.gz && \
++	rm -rf $(PROG)-$$DATE && \
++	md5 *.gz > MD5s.txt
++
++install: $(PROG)
++	install -m 755 $(PROG) ${DESTDIR}${bindir}
++	install -m 644 $(PROG).8 ${DESTDIR}${mandir}/man8
++
++uninstall:
++	rm -f ${DESTDIR}${bindir}/$(PROG)
++	rm -f ${DESTDIR}${mandir}/man8/$(PROG).8
diff --git a/dnstop.spec b/dnstop.spec
index 1e5700c..326a472 100644
--- a/dnstop.spec
+++ b/dnstop.spec
@@ -6,6 +6,12 @@ Group:          Applications/System
 License:        BSD
 URL:            http://dns.measurement-factory.com/tools/dnstop/
 Source0:        http://dns.measurement-factory.com/tools/dnstop/src/dnstop-%{version}.tar.gz
+
+# At one point int[] arrays are passed to a uint* function; since all
+# callers are signed, changed function to take signed ints.
+# Also, check read(2) for entropy data and abort on short reads.
+Patch0:         dnstop-20121017-fix-warnings.diff
+
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:  libpcap-devel
 BuildRequires:  ncurses-devel
@@ -26,6 +32,7 @@ tcpdump savefile.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %configure
@@ -56,6 +63,7 @@ rm -rf $RPM_BUILD_ROOT
 * Sun Feb 17 2013 Conrad Meyer <cemeyer at uw.edu> - 20121017-1
 - Bump to latest upstream version
 - Fix build (latest dnstop correctly prefixes mandir, bindir with DESTDIR)
+- Fix warnings (pointer target signedness, unchecked read(2))
 
 * Wed Feb 13 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 20110502-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild


More information about the scm-commits mailing list