NetBSD Problem Report #39062
From www@NetBSD.org Sat Jun 28 20:22:55 2008
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id ABE6D63B970
for <gnats-bugs@gnats.netbsd.org>; Sat, 28 Jun 2008 20:22:55 +0000 (UTC)
Message-Id: <20080628202255.46C5E63B89E@narn.NetBSD.org>
Date: Sat, 28 Jun 2008 20:22:55 +0000 (UTC)
From: jdbaker@mylinuxisp.com
Reply-To: jdbaker@mylinuxisp.com
To: gnats-bugs@NetBSD.org
Subject: security/dsniff-nox11 build fails on MacOS 10.4.11
X-Send-Pr-Version: www-1.0
>Number: 39062
>Category: pkg
>Synopsis: security/dsniff-nox11 build fails on MacOS 10.4.11
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: sevan
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jun 28 20:25:00 +0000 2008
>Closed-Date: Mon Jan 26 16:17:20 +0000 2015
>Last-Modified: Mon Jan 26 16:17:20 +0000 2015
>Originator: John D. Baker
>Release: MacOS X 10.4.11 pkgsrc-2008Q1
>Organization:
>Environment:
Darwin aardvark-2.local 8.11.1 Darwin Kernel Version 8.11.1: Wed Oct 10 18:23:28 PDT 2007; root:xnu-792.25.20~1/RELEASE_I386 i386 i386
>Description:
security/dsniff fails building with:
[...]
gcc -pipe -O2 -I/usr/include -I/usr/pkg/include/libnet10 -I/usr/pkg/include -D_BSD_SOURCE -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I./missing -c ./dnsspoof.c
./dnsspoof.c: In function 'dns_spoof':
./dnsspoof.c:183: error: 'HEADER' undeclared (first use in this function)
./dnsspoof.c:183: error: (Each undeclared identifier is reported only once
./dnsspoof.c:183: error: for each function it appears in.)
./dnsspoof.c:183: error: 'dns' undeclared (first use in this function)
./dnsspoof.c:192: error: parse error before ')' token
./dnsspoof.c:199: error: 'QUERY' undeclared (first use in this function)
./dnsspoof.c:210: error: 'C_IN' undeclared (first use in this function)
./dnsspoof.c:215: error: 'T_A' undeclared (first use in this function)
./dnsspoof.c:224: error: 'T_PTR' undeclared (first use in this function)
./dnsspoof.c:225: warning: pointer targets in assignment differ in signedness
./dnsspoof.c:229: warning: pointer targets in passing argument 1 of 'res_9_dn_comp' differ in signedness
./dnsspoof.c:245: error: parse error before ')' token
*** Error code 1
[...]
>How-To-Repeat:
Attempt to build security/dsniff-nox11 on MacOS X 10.4.11
>Fix:
work/dsniff-2.3/dnsspoof.c includes <arpa/nameser.h>. On MacOS X 10.4.11,
this supports the BIND9 API, but "dsniff-nox11" and friends are written
for BIND 8 or earlier, only.
There is a conditional include of <arpa/nameser8_compat.h> that depends
on BIND_8_COMPAT being defined.
As a workaround, [b]make configure, then adding
#define BIND_8_COMPAT
to work/dsniff-2.3/config.h allows it to compile.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->darwin-pkg-people
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Sun, 29 Jun 2008 00:58:36 +0000
Responsible-Changed-Why:
Darwin problem.
Responsible-Changed-From-To: darwin-pkg-people->macos-pkg-people
Responsible-Changed-By: dholland@NetBSD.org
Responsible-Changed-When: Wed, 07 Mar 2012 07:38:01 +0000
Responsible-Changed-Why:
darwin-pkg-people has been changed to macos-pkg-people
Responsible-Changed-From-To: macos-pkg-people->sevan
Responsible-Changed-By: sevan@NetBSD.org
Responsible-Changed-When: Thu, 22 Jan 2015 16:03:53 +0000
Responsible-Changed-Why:
Taking this to resolve
State-Changed-From-To: open->analyzed
State-Changed-By: sevan@NetBSD.org
State-Changed-When: Thu, 22 Jan 2015 16:03:53 +0000
State-Changed-Why:
Rather than patch src as suggested, It's possible to use CFLAGS to achieve intended declaration
Just need to work out the scope of operating systems/versions to clamp this to
From: "Sevan Janiyan" <sevan@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/39062 CVS commit: pkgsrc/security/dsniff-nox11
Date: Mon, 26 Jan 2015 16:05:04 +0000
Module Name: pkgsrc
Committed By: sevan
Date: Mon Jan 26 16:05:04 UTC 2015
Modified Files:
pkgsrc/security/dsniff-nox11: Makefile
Log Message:
On Darwin define BIND_8_COMPAT to resolve build issue as dsniff utilises the
BIND8 API, not the v9 API.
Closes PR pkg/39062
Reviewed by wiz@
To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 pkgsrc/security/dsniff-nox11/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: analyzed->closed
State-Changed-By: sevan@NetBSD.org
State-Changed-When: Mon, 26 Jan 2015 16:17:20 +0000
State-Changed-Why:
BIND_8_COMPAT is now defined when building on Darwin
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.