Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Nov 2005 01:55:33 GMT
From:      Andrew Novikov <freebsd@iconsultant.biz>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/89098: security/dsniff does not build
Message-ID:  <200511160155.jAG1tXrE028865@www.freebsd.org>
Resent-Message-ID: <200511160200.jAG20ZJZ054683@freefall.freebsd.org>

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

>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 <sys/types.h>
 #include <openssl/ssl.h>
+#include <openssl/blowfish.h>
+#include <openssl/des.h>

 #include <err.h>
 #include <stdio.h>

>Release-Note:
>Audit-Trail:
>Unformatted:



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