error compiling dsniff on FreeBSD, with the correct version of netlib

Moon Michael michael.moon at Bedfordshire.pnn.Police.uk
Thu Aug 24 15:14:54 UTC 2006


Any ideas what I am doing wrong ?
I even had a look in the libnet functions and they are defined so I
don't understand what's happening, anyone else who has come across this
and found a solution please let me know
 make
===>  WARNING: Vulnerability database out of date, checking anyway
===>  Extracting for dsniff-2.3_1
=> MD5 Checksum OK for dsniff-2.3.tar.gz.
=> SHA256 Checksum OK for dsniff-2.3.tar.gz.
===>  Patching for dsniff-2.3_1
===>  Applying FreeBSD patches for dsniff-2.3_1
===>   dsniff-2.3_1 depends on package: libnet*<=1.1.0,1 - found
===>   dsniff-2.3_1 depends on file: /usr/local/lib/libnids.a - found
===>   dsniff-2.3_1 depends on shared library: X11.6 - found
===>  Configuring for dsniff-2.3_1
creating cache ./config.cache
checking for gcc... cc
checking whether the C compiler (cc -O2 -fno-strict-aliasing -pipe  )
works... y
es
checking whether the C compiler (cc -O2 -fno-strict-aliasing -pipe  ) is
a cross
-compiler... no
checking whether we are using GNU C... yes
checking whether cc accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c -o root -g
wheel
checking for ranlib... ranlib
checking how to run the C preprocessor... cc -E
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for ANSI C header files... yes
checking for err.h... yes
checking for fcntl.h... yes
checking for sys/ioctl.h... yes
checking for sys/queue.h... yes
checking for unistd.h... yes
checking for libgen.h... yes
checking for net/if_tun.h... yes
checking for MIN and MAX in sys/param.h... yes
checking for working const... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for u_int32_t... yes
checking for u_int64_t... yes
checking for in_addr_t... yes
checking whether cc needs -traditional... no
checking for 8-bit clean memcmp... yes
checking return type of signal handlers... void
checking for strftime... yes
checking for gethostname... yes
checking for socket... yes
checking for strdup... yes
checking for strstr... yes
checking for xdr_fhstatus in -lrpcsvc... yes
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... no
checking for dn_expand in -lresolv... no
checking for dirname... yes
checking for strlcpy... yes
checking for strlcat... yes
checking for strsep... yes
checking for MD5Update... no
checking for warnx... yes
checking for ether_ntoa... yes
checking for Berkeley DB with 1.85 compatibility... yes
checking for libpcap... yes
checking for libnet... yes
checking for libnids... yes
checking whether libnids version is good... yes
checking for OpenSSL... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h
===>  Building for dsniff-2.3_1
cc -O2 -fno-strict-aliasing -pipe  -D_BSD_SOURCE -DLIBNET_BSDISH_OS
-DLIBNET_BSD
_BYTE_SWAP -DHAVE_SOCKADDR_SA_LEN -DLIBNET_LIL_ENDIAN
-DDSNIFF_LIBDIR=\"/usr/loc
al/lib/\" -I. -I/usr/include -I/usr/local/include  -I/usr/local/include
-I/usr
/X11R6/include  -I./missing -c ./missing/dummy.c
cc -O2 -fno-strict-aliasing -pipe  -D_BSD_SOURCE -DLIBNET_BSDISH_OS
-DLIBNET_BSD
_BYTE_SWAP -DHAVE_SOCKADDR_SA_LEN -DLIBNET_LIL_ENDIAN
-DDSNIFF_LIBDIR=\"/usr/loc
al/lib/\" -I. -I/usr/include -I/usr/local/include  -I/usr/local/include
-I/usr
/X11R6/include  -I./missing -c ./missing/md5.c
ar -cr libmissing.a dummy.o  md5.o
ranlib libmissing.a
cc -O2 -fno-strict-aliasing -pipe  -D_BSD_SOURCE -DLIBNET_BSDISH_OS
-DLIBNET_BSD
_BYTE_SWAP -DHAVE_SOCKADDR_SA_LEN -DLIBNET_LIL_ENDIAN
-DDSNIFF_LIBDIR=\"/usr/loc
al/lib/\" -I. -I/usr/include -I/usr/local/include  -I/usr/local/include
-I/usr
/X11R6/include  -I./missing -c ./arpspoof.c
cc -O2 -fno-strict-aliasing -pipe  -D_BSD_SOURCE -DLIBNET_BSDISH_OS
-DLIBNET_BSD
_BYTE_SWAP -DHAVE_SOCKADDR_SA_LEN -DLIBNET_LIL_ENDIAN
-DDSNIFF_LIBDIR=\"/usr/loc
al/lib/\" -I. -I/usr/include -I/usr/local/include  -I/usr/local/include
-I/usr
/X11R6/include  -I./missing -c ./arp.c
cc  -o arpspoof arpspoof.o arp.o -lrpcsvc  -L. -lmissing -lpcap
-L/usr/local/lib
-lnet
arpspoof.o(.text+0xce): In function `arp_send':
: undefined reference to `libnet_host_lookup'
arpspoof.o(.text+0x122): In function `arp_send':
: undefined reference to `libnet_write_link_layer'
arpspoof.o(.text+0x14b): In function `arp_send':
: undefined reference to `libnet_get_ipaddr'
arpspoof.o(.text+0x181): In function `arp_send':
: undefined reference to `libnet_host_lookup'
arpspoof.o(.text+0x192): In function `arp_send':
: undefined reference to `libnet_host_lookup'
arpspoof.o(.text+0x360): In function `main':
: undefined reference to `libnet_name_resolve'
arpspoof.o(.text+0x391): In function `main':
: undefined reference to `libnet_open_link_interface'
arpspoof.o(.text+0x42e): In function `main':
: undefined reference to `libnet_name_resolve'
arpspoof.o(.text+0x480): In function `main':
: undefined reference to `libnet_host_lookup'
*** Error code 1
 
Stop in /usr/ports/security/dsniff/work/dsniff-2.3.
*** Error code 1
 
Stop in /usr/ports/security/dsniff.

 
  

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
********************************************************************************
Internet email is not to be treated as a secure means of communication.
Bedfordshire Police monitors all Internet email activity and content.
For the latest news on local police and criminal activity, visit Bedfordshire's Prime Crime Website: www.operationscorpion.org.uk
********************************************************************************


More information about the freebsd-ports mailing list