Subject: pkg/24173: wistumbler (current) doesn't build (2 patches included)
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <netbsd-install@home.nl>
List: netbsd-bugs
Date: 01/20/2004 22:38:41
>Number:         24173
>Category:       pkg
>Synopsis:       wistumbler (current) doesn't build (2 patches included)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 20 22:39:02 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Noud de Brouwer
>Release:        1.6ZG
>Organization:
none
>Environment:
NetBSD host016.template 1.6ZG NetBSD 1.6ZG (GENERIC.MP) #0: Sun Jan 18 17:43:12 CET 2004  root@:/usr/src/sys/arch/i386/compile/GENERIC.MP i386

>Description:
gcc -O2 -I/usr/pkg/include -I/usr/X11R6/include -g -O2 -Wall `gtk-config --cflags` -c stumbler.c
stumbler.c:43:31: net/if_ieee80211.h: No such file or directory
stumbler.c: In function `print_clist':
stumbler.c:183: error: `IEEE80211_CAPINFO_PRIVACY' undeclared (first use in this function)

>How-To-Repeat:
clean install + pkgsrc.tar.gz dated 20040117
cd /usr/pkgsrc/net/wistumbler; make
>Fix:
following 2 patches
(i'm not sure about __NetBSD_Version__'s value):

--- stumbler.c     2004-01-20 22:58:07.000000000 +0100
+++ stumbler.c.new  2004-01-20 22:58:41.000000000 +0100
@@ -40,7 +40,11 @@
 #include <net/if.h>
 #include <netinet/in.h>
 #include <netinet/if_ether.h>
-#include <net/if_ieee80211.h> 
+# if __NetBSD_Version__ > 106220000
+  #include <net80211/ieee80211.h>
+# else
+  #include <net/if_ieee80211.h> 
+# endif
 #include <dev/ic/wi_ieee.h>
 #include <stdio.h>
 #include <string.h> 



--- wicontrol.c    2004-01-20 22:59:43.000000000 +0100
+++ wicontrol.c.new 2004-01-20 23:00:12.000000000 +0100
@@ -59,7 +59,11 @@
 #include <netinet/in.h>
 #include <netinet/if_ether.h>
 #ifdef __NetBSD__
-#include <net/if_ieee80211.h>
+# if __NetBSD_Version__ > 106220000
+  #include <net80211/ieee80211.h>
+# else
+  #include <net/if_ieee80211.h>
+# endif
 #include <dev/ic/wi_ieee.h>
 #else
 #include <dev/pcmcia/if_wavelan_ieee.h>

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