From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Nov 16 01:50:17 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 79A0116A420 for ; Wed, 16 Nov 2005 01:50:17 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D73E143D4C for ; Wed, 16 Nov 2005 01:50:16 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jAG1oGlm054221 for ; Wed, 16 Nov 2005 01:50:16 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jAG1oG3v054220; Wed, 16 Nov 2005 01:50:16 GMT (envelope-from gnats) Resent-Date: Wed, 16 Nov 2005 01:50:16 GMT Resent-Message-Id: <200511160150.jAG1oG3v054220@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Andrew Novikov Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2E38216A420 for ; Wed, 16 Nov 2005 01:47:19 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id B2DA743D49 for ; Wed, 16 Nov 2005 01:47:18 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id jAG1lI87018813 for ; Wed, 16 Nov 2005 01:47:18 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id jAG1lIw4018812; Wed, 16 Nov 2005 01:47:18 GMT (envelope-from nobody) Message-Id: <200511160147.jAG1lIw4018812@www.freebsd.org> Date: Wed, 16 Nov 2005 01:47:18 GMT From: Andrew Novikov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: ports/89097: security/dsniff does not build when net/libpcap is installed X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Nov 2005 01:50:17 -0000 >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: