diff -u -r dnscap.orig/Makefile dnscap/Makefile
--- dnscap.orig/Makefile	2007-05-03 17:07:36.000000000 +0200
+++ dnscap/Makefile	2007-05-03 16:53:54.000000000 +0200
@@ -8,7 +8,7 @@
 	-Wunused -Wshadow -Wmissing-noreturn -Wswitch-enum -Wformat-nonliteral
 CFLAGS= ${CDEBUG} ${CWARN}
 
-LDLIBS= -lpcap
+LDLIBS= -lpcap -lresolv
 LDFLAGS=
 
 all: ${ALL}
@@ -17,7 +17,7 @@
 .c.o:
 	@echo \(compile $< w/ ${CDEBUG}\) && \
 		${CC} ${CFLAGS} \
-		`PATH=/usr/local/bin:$PATH isc-config.sh --cflags isc` \
+		`PATH=/usr/local/bin:$$PATH isc-config.sh --cflags isc` \
 		-c $<
 
 DNSCAP_OBJ= dnscap.o
diff -u -r dnscap.orig/dnscap.c dnscap/dnscap.c
--- dnscap.orig/dnscap.c	2007-05-03 17:07:36.000000000 +0200
+++ dnscap/dnscap.c	2007-05-03 17:03:35.000000000 +0200
@@ -208,6 +208,14 @@
 static int v6bug = FALSE;
 static int main_exit = FALSE;
 
+#ifdef __linux__
+/* Not found by the linker??? */
+void
+ns_put32(u_long src, u_char *dst) {
+  NS_PUT32(src, dst);
+}
+#endif
+
 /* Public. */
 
 int
