tcpdump mailing list archives

Some open issues with Linux build


From: Joerg Mayer <jmayer () loplof de>
Date: Sun, 19 Mar 2017 09:33:34 +0100

Hello,

this is not a real patch for now but more of a documentation of open issues.
I needed to make the changes below to compile and link rpcapd on openSUSE 13.2.

Ciao
   Jörg

diff --git a/rpcapd/Makefile.in b/rpcapd/Makefile.in
index 5738912..86f66c5 100644
--- a/rpcapd/Makefile.in
+++ b/rpcapd/Makefile.in
@@ -54,7 +54,7 @@ INCLS = -I. -I.. -I@srcdir@ -I@srcdir@/.. @V_INCLS@
 DEFS = -DBUILDING_PCAP @DEFS@ @V_DEFS@
 ADDLOBJS = @ADDLOBJS@
 ADDLARCHIVEOBJS = @ADDLARCHIVEOBJS@
-LIBS = @LIBS@
+LIBS = @LIBS@ -lcrypt -lpthread
 CROSSFLAGS=
 CFLAGS = @CFLAGS@   ${CROSSFLAGS}
 LDFLAGS = @LDFLAGS@ ${CROSSFLAGS}
diff --git a/rpcapd/daemon.c b/rpcapd/daemon.c
index 3b2ab01..d83516b 100755
--- a/rpcapd/daemon.c
+++ b/rpcapd/daemon.c
@@ -51,6 +51,7 @@
 #endif
 
 #ifdef linux
+#include <crypt.h>
 #include <shadow.h>            // for password management
 #endif
 
-- 
Joerg Mayer                                           <jmayer () loplof de>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.
_______________________________________________
tcpdump-workers mailing list
tcpdump-workers () lists tcpdump org
https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers

Current thread: