NetBSD Problem Report #29678
From jukka+moray@salmi.ch Sat Mar 12 14:57:48 2005
Return-Path: <jukka+moray@salmi.ch>
Received: from mx1.salmi.ch (mx1.salmi.ch [212.254.26.68])
by narn.netbsd.org (Postfix) with ESMTP id E564263B116
for <gnats-bugs@gnats.NetBSD.org>; Sat, 12 Mar 2005 14:57:47 +0000 (UTC)
Message-Id: <20050312145731.88159FE37@moray.salmi.ch>
Date: Sat, 12 Mar 2005 15:57:31 +0100 (CET)
From: j+nbsd@2005.salmi.ch
To: gnats-bugs@netbsd.org
Subject: devel/libnet fails to build: no low level packet interface
X-Send-Pr-Version: 3.95
>Number: 29678
>Category: pkg
>Synopsis: devel/libnet fails to build: no low level packet interface
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: adrianp
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Mar 12 14:58:00 +0000 2005
>Closed-Date: Fri Mar 25 17:56:18 +0000 2005
>Last-Modified: Fri Mar 25 17:56:18 +0000 2005
>Originator: Jukka Salmi
>Release: NetBSD 2.99.16
>Organization:
>Environment:
System: NetBSD moray.salmi.ch 2.99.16 NetBSD 2.99.16 (GENERIC.APM) #1: Thu Mar 3 12:32:39 CET 2005 build@moray.salmi.ch:/build/nbsd/i386/sys/arch/i386/compile/GENERIC.APM i386
Architecture: i386
Machine: i386
>Description:
Using current pkgsrc, devel/libnet fails to build because configure can't find
a low level packet interface.
>How-To-Repeat:
$ cd pkgsrc/devel/libnet && make
[..]
checking low-level packet interface type... configure: warning: could not find a low level packet interface
configure: warning: low level packet creation API will not be added to the library
[...]
checking for sys/sockio.h... grep: conftest.out: No such file or directory
yes
[...]
ln -s ../libnet_error.o src
make: don't know how to make src/libnet_link_null.o. Stop
make: stopped in /build/pkg/devel/libnet/work/Libnet-1.0.1b
*** Error code 2
Stop.
[...]
>Fix:
Unknown
>Release-Note:
>Audit-Trail:
From: Jukka Salmi <j+nbsd@2005.salmi.ch>
To: pkgsrc-bugs@netbsd.org
Cc:
Subject: Re: pkg/29678: devel/libnet fails to build: no low level packet interface
Date: Sat, 12 Mar 2005 16:08:46 +0100
--ibTvN161/egqYuK8
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
The problem is that on current it's /dev/bpf, and configure checks for
/dev/bpf0. The attached patch should fix the problem.
Cheers, Jukka
--
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~
--ibTvN161/egqYuK8
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="bpf.patch"
--- configure.orig 1999-10-27 20:47:27.000000000 +0200
+++ configure 2005-03-12 16:04:13.000000000 +0100
@@ -1209,7 +1209,7 @@
echo $ac_n "checking low-level packet interface type""... $ac_c" 1>&6
echo "configure:1211: checking low-level packet interface type" >&5
-if test -r /dev/bpf0 ; then
+if test -r /dev/bpf0 -o -r /dev/bpf ; then
LL_INT_TYPE=bpf
echo "$ac_t""found bpf" 1>&6
elif test -r /usr/include/net/pfilt.h ; then
@@ -1340,7 +1340,7 @@
fi
-elif test -c /dev/bpf0 ; then # check again in case not readable
+elif test -c /dev/bpf0 -o -c /dev/bpf ; then # check again in case not readable
LL_INT_TYPE=bpf
echo "$ac_t""found bpf" 1>&6
elif test -c /dev/enet ; then # check again in case not readable
--ibTvN161/egqYuK8--
Responsible-Changed-From-To: pkg-manager->adrianp
Responsible-Changed-By: wiz@netbsd.org
Responsible-Changed-When: Mon, 14 Mar 2005 14:37:21 +0000
Responsible-Changed-Why:
Over to libnet11 maintainer.
From: Adrian Portelli <adrianp@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/29678 CVS commit: pkgsrc/devel/libnet
Date: Fri, 25 Mar 2005 17:52:32 +0000 (UTC)
Module Name: pkgsrc
Committed By: adrianp
Date: Fri Mar 25 17:52:32 UTC 2005
Modified Files:
pkgsrc/devel/libnet: Makefile distinfo
Added Files:
pkgsrc/devel/libnet/patches: patch-ac
Log Message:
- Fix for systems where /dev/bpf is present but not /dev/bpf0
- Bumb to nb5
- Issue spotted and patch provided by Jukka Salmi in PR# 29678
Thanks for the PR and patch.
To generate a diff of this commit:
cvs rdiff -r1.21 -r1.22 pkgsrc/devel/libnet/Makefile
cvs rdiff -r1.4 -r1.5 pkgsrc/devel/libnet/distinfo
cvs rdiff -r0 -r1.1 pkgsrc/devel/libnet/patches/patch-ac
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: adrianp@netbsd.org
State-Changed-When: Fri, 25 Mar 2005 17:56:18 +0000
State-Changed-Why:
Fix applied to pkgsrc and tested ok.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.