Code Monkey home page Code Monkey logo

rpcapd-linux's Introduction

Update: libpcap v1.9.0 now has rpcapd

An rpcapd executable is generated in libpcap v1.9.0 and later, when compiled with the --enable-remote flag (./configure --enable-remote && make). That should be used instead of this fork.

rpcapd utility for Linux

rpcapd is a daemon that provides remote traffic capture for Windows version of Wireshark protocol analyzer. It is shipped with WinPcap network capture library for Windows but is absent from libpcap older than 1.9.0 in Linux.

This is a fork of rpcapd modified to compile and work in Linux.

It is still quite messy and may not compile or work.

Building

This fork ships with a patched libpcap version found in WinPcap library.

Installation under Ubuntu Linux:

sudo apt-get build-dep libpcap
cd rpcapd/libpcap
./configure && make
cd ../
make

Installation under Centos/Fedora/Redhat Linux:

libcrypt.a in glibc-static is broken in ,remove -static in Makefile

 yum install -y byacc glibc-static libgcrypt-devel
 cd rpcapd/libpcap
 ./configure && make
 cd ../
 make

Using

This tool is to be used with Windows clients connecting to the linux box. Launch this tool using

sudo ./rpcapd -4 -n -p <chosen_port>

You can specify a data transfer port rather than a random port by default.

sudo ./rpcapd -4 -n -t <data_transfer_port> -p <chosen_port>

Root privileges are needed to capture the interfaces.

There are two ways to connect from a Windows box:

  1. Use GUI in Wireshark Capture Options dialog. Tested on Wireshark 1.7.1.
  2. Invoke wireshark from commnd line specifying capture interface directly:
wireshark -k -i rpcapd://<capture_box_ip>:<rpcapd_port>/<interface_to_capture>

-k means start capture immedietly and -i stands for interface. You can create a Windows shortcut or something afterwards.

rpcapd-linux's People

Contributors

frgtn avatar joakimsoderberg avatar lukastribus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rpcapd-linux's Issues

Questions on Linux usage

Hi, thanks for the port. I have been looking for a tool like this for a long time on Linux. Few queries:

  1. I could compile it on Ubuntu 17.04 by linking it directly to systems libpcap. I see that you have a patched version of libpcap, is this required? Would this work if I directly link to system libpcap?

  2. I saw the disclaimers but do you have know of any production usage to passively capture traffic and relay it to other hosts?

Any inputs will be appreciated. This is exactly the tool I am looking for but not sure about the stability and support etc.

exit from the child loop

I got it compiled successfully, but when I ran it and use wireshark to capture the interface, I got the rpcapd exiting.
My command is ./rpcapd -n
The stdout is:
Press CTRL + C to stop the server...
bind(): Address already in use (code 98)
I'm exiting from the child loop
The other host terminated the connection.
Child terminated

On the wireshark, it give the error which includes something like
"the interface name has not been specified in the source string"
when I started capturing on this interface.

Could you help me figure out this problem?

Problem compiling on CentOS / Fedora

It won't compile on Centos 6.5

326 yum install wireshark
327 yum search libpcap
328 yum install libpcap libpcap-devel
351 yum install flex
354 yum search bison
355 yum install bison bison-devel
356 yum search bison
359 yum install yacc
360 yum search yacc
361 yum install byacc
368 yum install glibc-devel
369 yum search libssl
370 yum search ssl
371 yum install openssl-devel
372 yum provides libcrypt
373 yum install libtool-ltdl-devel
376 yum install glibc-static

~/rpcapd/rpcapd-linux# make
gcc -pthread -D_DEBUG -g -Wall -DHAVE_REMOTE -DHAVE_SNPRINTF -static -Ilibpcap/ -c rpcapd.c
gcc -pthread -D_DEBUG -g -Wall -DHAVE_REMOTE -DHAVE_SNPRINTF -static -Ilibpcap/ -c daemon.c
daemon.c: In function ‘daemon_AuthUserPwd’:
daemon.c:684: warning: implicit declaration of function ‘crypt’
daemon.c:684: warning: cast to pointer from integer of different size
daemon.c: In function ‘daemon_startcapture’:
daemon.c:1070: warning: pointer targets in passing argument 3 of ‘daemon_unpackapplyfilter’ differ in signedness
daemon.c:68: note: expected ‘int ’ but argument is of type ‘uint32 *’
daemon.c: In function ‘daemon_updatefilter’:
daemon.c:1270: warning: pointer targets in passing argument 3 of ‘daemon_unpackapplyfilter’ differ in signedness
daemon.c:1199: note: expected ‘int *’ but argument is of type ‘uint32 *’
gcc -pthread -D_DEBUG -g -Wall -DHAVE_REMOTE -DHAVE_SNPRINTF -static -Ilibpcap/ -c utils.c
gcc -pthread -D_DEBUG -g -Wall -DHAVE_REMOTE -DHAVE_SNPRINTF -static -Ilibpcap/ -c fileconf.c
gcc -pthread -D_DEBUG -g -Wall -DHAVE_REMOTE -DHAVE_SNPRINTF -static -Ilibpcap/ -c libpcap/pcap-remote.c
libpcap/pcap-remote.c: In function ‘pcap_read_nocb_remote’:
libpcap/pcap-remote.c:327: warning: pointer targets in passing argument 2 of ‘sock_recv’ differ in signedness
libpcap/sockutils.h:211: note: expected ‘char *’ but argument is of type ‘u_char *’
libpcap/pcap-remote.c: In function ‘pcap_startcapture_remote’:
libpcap/pcap-remote.c:1129: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness
/usr/include/sys/socket.h:190: note: expected ‘socklen_t * restrict’ but argument is of type ‘int *’
gcc -pthread -D_DEBUG -g -Wall -DHAVE_REMOTE -DHAVE_SNPRINTF -static -Ilibpcap/ -c libpcap/sockutils.c
gcc -pthread -D_DEBUG -g -Wall -DHAVE_REMOTE -DHAVE_SNPRINTF -static -Ilibpcap/ -c libpcap/pcap-new.c
gcc -pthread -D_DEBUG -g -Wall -DHAVE_REMOTE -DHAVE_SNPRINTF -static -Ilibpcap/ -o rpcapd rpcapd.o daemon.o utils.o fileconf.o pcap-remote.o sockutils.o pcap-new.o -Llibpcap/ -lpcap -lcrypt
daemon.o: In function daemon_AuthUserPwd': /root/rpcapd/rpcapd-linux/daemon.c:670: warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking pcap-remote.o: In functionrpcap_remoteact_getsock':
/root/rpcapd/rpcapd-linux/libpcap/pcap-remote.c:2051: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libpthread.a(libpthread.o): In function sem_open': (.text+0x774d): warning: the use ofmktemp' is dangerous, better use mkstemp' daemon.o: In functiondaemon_AuthUserPwd':
/root/rpcapd/rpcapd-linux/daemon.c:678: warning: Using 'getspnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
libpcap//libpcap.a(nametoaddr.o): In function pcap_nametoaddr': nametoaddr.c:(.text+0x475): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking libpcap//libpcap.a(nametoaddr.o): In functionpcap_nametonetaddr':
nametoaddr.c:(.text+0x405): warning: Using 'getnetbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
libpcap//libpcap.a(nametoaddr.o): In function pcap_nametoproto': nametoaddr.c:(.text+0x215): warning: Using 'getprotobyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking libpcap//libpcap.a(nametoaddr.o): In functionpcap_nametoport':
nametoaddr.c:(.text+0x259): warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(md5-crypt.o): In function __md5_crypt_r': (.text+0xbb): undefined reference toNSSLOW_Init'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(md5-crypt.o): In function __md5_crypt_r': (.text+0xd5): undefined reference toNSSLOWHASH_NewContext'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(md5-crypt.o): In function __md5_crypt_r': (.text+0xe9): undefined reference toNSSLOWHASH_Begin'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(md5-crypt.o): In function __md5_crypt_r': (.text+0xfc): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(md5-crypt.o): In function __md5_crypt_r': (.text+0x10e): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(md5-crypt.o): In function __md5_crypt_r': (.text+0x121): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(md5-crypt.o): In function __md5_crypt_r': (.text+0x12f): undefined reference toNSSLOWHASH_NewContext'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(md5-crypt.o): In function __md5_crypt_r': (.text+0x147): undefined reference toNSSLOWHASH_Begin'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(md5-crypt.o): In function __md5_crypt_r': (.text+0x155): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(md5-crypt.o): In function __md5_crypt_r': (.text+0x163): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(md5-crypt.o): In function __md5_crypt_r': (.text+0x171): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(md5-crypt.o): In function __md5_crypt_r': (.text+0x185): undefined reference toNSSLOWHASH_End'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(md5-crypt.o): In function __md5_crypt_r': (.text+0x18d): undefined reference toNSSLOWHASH_Destroy'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(md5-crypt.o): In function __md5_crypt_r': (.text+0x1b0): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(md5-crypt.o): In function __md5_crypt_r': (.text+0x1d9): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(md5-crypt.o): In function __md5_crypt_r': (.text+0x1fc): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(md5-crypt.o): In function __md5_crypt_r': (.text+0x215): undefined reference toNSSLOWHASH_End'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(md5-crypt.o): In function __md5_crypt_r': (.text+0x21f): undefined reference toNSSLOWHASH_Destroy'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(md5-crypt.o): In function __md5_crypt_r': (.text+0x23a): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(md5-crypt.o): In function __md5_crypt_r': (.text+0x2a3): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(md5-crypt.o): In function __md5_crypt_r': (.text+0x2bb): undefined reference toNSSLOWHASH_End'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(md5-crypt.o): In function __md5_crypt_r': (.text+0x2c3): undefined reference toNSSLOWHASH_Destroy'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(md5-crypt.o): In function __md5_crypt_r': (.text+0x2de): undefined reference toNSSLOWHASH_NewContext'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(md5-crypt.o): In function __md5_crypt_r': (.text+0x2ee): undefined reference toNSSLOWHASH_Begin'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(md5-crypt.o): In function __md5_crypt_r': (.text+0x30c): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(md5-crypt.o): In function __md5_crypt_r': (.text+0x322): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(md5-crypt.o): In function __md5_crypt_r': (.text+0x33a): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(md5-crypt.o): In function __md5_crypt_r': (.text+0x353): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(md5-crypt.o): In function __md5_crypt_r': (.text+0x434): undefined reference toNSSLOW_Shutdown'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(md5-crypt.o): In function __md5_crypt_r': (.text+0x7ea): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(md5-crypt.o): In function __md5_crypt_r': (.text+0x834): undefined reference toNSSLOWHASH_Destroy'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0xe2): undefined reference toNSSLOW_Init'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0xff): undefined reference toNSSLOWHASH_NewContext'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0x113): undefined reference toNSSLOWHASH_Begin'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0x12c): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0x141): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0x152): undefined reference toNSSLOWHASH_NewContext'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0x16e): undefined reference toNSSLOWHASH_Begin'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0x183): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0x195): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0x1aa): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0x1c2): undefined reference toNSSLOWHASH_End'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0x1ce): undefined reference toNSSLOWHASH_Destroy'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0x208): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0x23e): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0x27c): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0x294): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0x2be): undefined reference toNSSLOWHASH_End'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0x2c6): undefined reference toNSSLOWHASH_Destroy'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0x2d7): undefined reference toNSSLOWHASH_NewContext'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0x2ef): undefined reference toNSSLOWHASH_Begin'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0x331): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0x368): undefined reference toNSSLOWHASH_End'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0x374): undefined reference toNSSLOWHASH_Destroy'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0x406): undefined reference toNSSLOWHASH_NewContext'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0x41a): undefined reference toNSSLOWHASH_Begin'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0x44a): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0x480): undefined reference toNSSLOWHASH_End'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0x488): undefined reference toNSSLOWHASH_Destroy'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0x532): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0x59e): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0x5b6): undefined reference toNSSLOWHASH_End'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0x5be): undefined reference toNSSLOWHASH_Destroy'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0x5dc): undefined reference toNSSLOWHASH_NewContext'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0x5f0): undefined reference toNSSLOWHASH_Begin'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0x612): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0x62a): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0x642): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0x661): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0x6d9): undefined reference toNSSLOW_Shutdown'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0xef2): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0xf28): undefined reference toNSSLOWHASH_End'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0xf34): undefined reference toNSSLOWHASH_Destroy'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha256-crypt.o): In function __sha256_crypt_r': (.text+0xf55): undefined reference toNSSLOWHASH_Destroy'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0xf1): undefined reference toNSSLOW_Init'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x10e): undefined reference toNSSLOWHASH_NewContext'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x122): undefined reference toNSSLOWHASH_Begin'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x13b): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x154): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x165): undefined reference toNSSLOWHASH_NewContext'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x17d): undefined reference toNSSLOWHASH_Begin'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x18e): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x19f): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x1b0): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x1c4): undefined reference toNSSLOWHASH_End'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x1cc): undefined reference toNSSLOWHASH_Destroy'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x1f8): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x227): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x254): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x26d): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x28d): undefined reference toNSSLOWHASH_End'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x295): undefined reference toNSSLOWHASH_Destroy'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x2a6): undefined reference toNSSLOWHASH_NewContext'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x2ba): undefined reference toNSSLOWHASH_Begin'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x2ea): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x319): undefined reference toNSSLOWHASH_End'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x321): undefined reference toNSSLOWHASH_Destroy'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x3d2): undefined reference toNSSLOWHASH_NewContext'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x3e9): undefined reference toNSSLOWHASH_Begin'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x409): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x435): undefined reference toNSSLOWHASH_End'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x43d): undefined reference toNSSLOWHASH_Destroy'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x512): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x57e): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x596): undefined reference toNSSLOWHASH_End'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x59e): undefined reference toNSSLOWHASH_Destroy'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x5bc): undefined reference toNSSLOWHASH_NewContext'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x5d0): undefined reference toNSSLOWHASH_Begin'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x5f2): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x60a): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x622): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x641): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x6c9): undefined reference toNSSLOW_Shutdown'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x14ff): undefined reference toNSSLOWHASH_Update'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x1537): undefined reference toNSSLOWHASH_End'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x153f): undefined reference toNSSLOWHASH_Destroy'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libcrypt.a(sha512-crypt.o): In function __sha512_crypt_r': (.text+0x1568): undefined reference toNSSLOWHASH_Destroy'
collect2: ld returned 1 exit status
make: *
* [rpcapd] Error 1

Running make command on Ubuntu 20.10 have some issues

I have executed the command: ./configure --build=aarch64-unknown-linux-gnu --enable-remote && make
followed by cd ..\
runningmake command after that, encountered following issues. Any solution:

~/rpcapd-linux$ make gcc -pthread -D_DEBUG -g -Wall -DHAVE_REMOTE -DHAVE_SNPRINTF -static -Ilibpcap/ -o rpcapd rpcapd.o daemon.o utils.o fileconf.o pcap-remote.o sockutils.o pcap-new.o -Llibpcap/ -lpcap -lcrypt /usr/bin/ld: pcap-new.o:/home/ubuntu/rpcapd-linux/libpcap/pcap-new.c:60: multiple definition of sockmain'; rpcapd.o:/home/ubuntu/rpcapd-linux/rpcapd.c:62: first defined here
/usr/bin/ld: daemon.o: in function daemon_AuthUserPwd': /home/ubuntu/rpcapd-linux/daemon.c:672: warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/bin/ld: pcap-remote.o: in function rpcap_remoteact_getsock':
/home/ubuntu/rpcapd-linux/libpcap/pcap-remote.c:2051: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: daemon.o: in function daemon_AuthUserPwd': /home/ubuntu/rpcapd-linux/daemon.c:680: warning: Using 'getspnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/bin/ld: libpcap//libpcap.a(nametoaddr.o): in function pcap_nametoaddr':
nametoaddr.c:(.text+0x8): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: libpcap//libpcap.a(nametoaddr.o): in function pcap_nametonetaddr': nametoaddr.c:(.text+0xc8): warning: Using 'getnetbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/bin/ld: libpcap//libpcap.a(nametoaddr.o): in function pcap_nametoproto':
nametoaddr.c:(.text+0x34c): warning: Using 'getprotobyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: libpcap//libpcap.a(nametoaddr.o): in function pcap_nametoport': nametoaddr.c:(.text+0x114): warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking collect2: error: ld returned 1 exit status make: *** [Makefile:24: rpcapd] Error 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.