From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Nov 16 02:00:36 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 DD23916A420 for ; Wed, 16 Nov 2005 02:00:35 +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 529C543D45 for ; Wed, 16 Nov 2005 02:00:35 +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 jAG20ZYF054684 for ; Wed, 16 Nov 2005 02:00:35 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jAG20ZJZ054683; Wed, 16 Nov 2005 02:00:35 GMT (envelope-from gnats) Resent-Date: Wed, 16 Nov 2005 02:00:35 GMT Resent-Message-Id: <200511160200.jAG20ZJZ054683@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 5B56116A41F for ; Wed, 16 Nov 2005 01:55:34 +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 D43E343D4C for ; Wed, 16 Nov 2005 01:55:33 +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 jAG1tXwa028936 for ; Wed, 16 Nov 2005 01:55:33 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id jAG1tXrE028865; Wed, 16 Nov 2005 01:55:33 GMT (envelope-from nobody) Message-Id: <200511160155.jAG1tXrE028865@www.freebsd.org> Date: Wed, 16 Nov 2005 01:55:33 GMT From: Andrew Novikov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: ports/89098: security/dsniff does not build 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 02:00:36 -0000 >Number: 89098 >Category: ports >Synopsis: security/dsniff does not build >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 02:00:34 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. The same problem was reproduced on gcc-3.4.5 (ports) and gcc-2.95 (base) The problem is caused by incorrect includes. See patch below. Please feel free to ask me any further questions. (Note: this PR is different from 89097) >How-To-Repeat: 1) cvsup ports-security 2) portinstall security/dsniff (version 2.3_1) >Fix: Patch: --- sshcrypto.c.orig Wed Nov 16 02:49:42 2005 +++ sshcrypto.c Wed Nov 16 02:44:59 2005 @@ -14,6 +14,8 @@ #include #include +#include +#include #include #include >Release-Note: >Audit-Trail: >Unformatted: