Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Nov 2005 01:47:18 GMT
From:      Andrew Novikov <freebsd@iconsultant.biz>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/89097: security/dsniff does not build when net/libpcap is installed
Message-ID:  <200511160147.jAG1lIw4018812@www.freebsd.org>
Resent-Message-ID: <200511160150.jAG1oG3v054220@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         89097
>Category:       ports
>Synopsis:       security/dsniff does not build when net/libpcap is installed
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 16 01:50:16 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Andrew Novikov
>Release:        4.11-STABLE
>Organization:
iConsultant.biz
>Environment:
FreeBSD sandfang.iconsultant.biz 4.11-STABLE FreeBSD 4.11-STABLE #0: Tue Oct  4 13:55:56 EEST 2005     root@sandfang.iconsultant.biz:/usr/obj/usr/src/sys/SANDFANG  i386
>Description:
security/dsniff version 2.3_1 does not build on 4.11-STABLE
Error message:

[root@sandfang:/usr/ports/security/dsniff]>make
===>  Building for dsniff-2.3_1
/usr/local/bin/gcc34 -O -pipe -march=pentiumpro -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DHAVE_SOCKADDR_SA_LEN -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/local/lib/\" -I. -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include   -I/usr/X11R6/include  -I./missing -c ./pcaputil.c
./pcaputil.c: In function `bpf_immediate':
./pcaputil.c:26: error: `BIOCIMMEDIATE' undeclared (first use in this function)
./pcaputil.c:26: error: (Each undeclared identifier is reported only once
./pcaputil.c:26: error: for each function it appears in.)
*** Error code 1

Stop in /usr/ports/security/dsniff/work/dsniff-2.3.
*** Error code 1

Stop in /usr/ports/security/dsniff.


I have net/libpcap version 0.8.3_1 installed from ports. It seems to use incorrect pcap.h from /usr/local/include/ instead of /usr/include/

[root@sandfang:/usr/ports/security/dsniff]>locate pcap | grep include
/usr/include/pcap-int.h
/usr/include/pcap-namedb.h
/usr/include/pcap.h
/usr/local/include/nessus/pcap-namedb.h
/usr/local/include/nessus/pcap.h
/usr/local/include/pcap-bpf.h
/usr/local/include/pcap-namedb.h
/usr/local/include/pcap.h


Note that I use gcc-3.4.5_20051108 from ports (installed into /usr/local) with following lines added to /etc/make.conf:
CFLAGS= -O -pipe
COPTFLAGS= -O -pipe
CC=/usr/local/bin/gcc34
CXX=/usr/local/bin/c++34
CPP=/usr/local/bin/cpp34

dsniff does build if I use gcc-2.95 from base with only this line in /etc/make.conf:
CFLAGS= -O -pipe

>How-To-Repeat:
1) cvsup ports-net and ports-security
2) portinstall net/libpcap
3) portinstall security/dsniff   
>Fix:
A temporary workaround:
1) rename /usr/local/include/pcap.h
2) portinstall security/dsniff
3) rename back /usr/local/include/pcap.h
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511160147.jAG1lIw4018812>