pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/29678: devel/libnet fails to build: no low level packet interface



The following reply was made to PR pkg/29678; it has been noted by GNATS.

From: Jukka Salmi <j+nbsd%2005.salmi.ch@localhost>
To: pkgsrc-bugs%netbsd.org@localhost
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--
 



Home | Main Index | Thread Index | Old Index