From owner-freebsd-mobile@FreeBSD.ORG Mon May 15 22:49:11 2006 Return-Path: X-Original-To: freebsd-mobile@freebsd.org Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5BBEF16AE5E for ; Mon, 15 May 2006 22:49:11 +0000 (UTC) (envelope-from sub02@freeode.co.uk) Received: from mail.freeode.co.uk (213-162-123-162.johnmu221.adsl.metronet.co.uk [213.162.123.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC35D43D58 for ; Mon, 15 May 2006 22:49:09 +0000 (GMT) (envelope-from sub02@freeode.co.uk) Received: from lexx.freeode.co.uk (lexx.freeode.co.uk [10.10.10.2]) by mail.freeode.co.uk (8.13.4/8.13.4) with ESMTP id k4FMn8CQ008191 for ; Mon, 15 May 2006 23:49:08 +0100 (BST) (envelope-from sub02@freeode.co.uk) From: John Murphy To: freebsd-mobile@freebsd.org Date: Mon, 15 May 2006 23:49:08 +0100 Message-ID: X-Mailer: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: acx100 build fails in if_acxifnet.c X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: sub02@freeode.co.uk List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 May 2006 22:49:13 -0000 I have a laptop running FreeBSD-6.1 and I'm trying to get a D-Link DWL-650+ pcmcia card working. I have kernel sources installed and the ports tree was updated with cvsup last night. Running make install in /usr/ports/net/acx100 proceeds ok up to: cc -O2 -fno-strict-aliasing -pipe -ggdb -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I- -I./include -I. -I@ -I@/contrib/altq -I@/../include -I/usr/include -finlin e-limit=8000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Wall -Wredundant-decls -W nested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winlin e -Wcast-qual -fformat-extensions -std=c99 -c if_acxifnet.c if_acxifnet.c: In function `acx_ifnet_attach': if_acxifnet.c:58: error: structure has no member named `ic_if' if_acxifnet.c:114: warning: passing arg 1 of `ieee80211_ifattach' from incompati ble pointer type if_acxifnet.c:117: warning: assignment from incompatible pointer type if_acxifnet.c:118: warning: assignment from incompatible pointer type if_acxifnet.c:121: warning: passing arg 1 of `ieee80211_media_init' from incompa tible pointer type if_acxifnet.c: In function `acx_ifnet_detach': if_acxifnet.c:183: error: structure has no member named `ic_if' if_acxifnet.c:184: warning: passing arg 1 of `ieee80211_ifdetach' from incompati ble pointer type if_acxifnet.c: In function `acx_ifnet_start_scan': if_acxifnet.c:200: warning: passing arg 1 of `ieee80211_begin_scan' from incompa tible pointer type if_acxifnet.c:200: error: too few arguments to function `ieee80211_begin_scan' if_acxifnet.c: In function `acx_ifnet_callout_next_scan': if_acxifnet.c:229: warning: passing arg 1 of `ieee80211_next_scan' from incompat ible pointer type if_acxifnet.c: In function `acx_ifnet_ioctl': if_acxifnet.c:273: warning: passing arg 1 of `ieee80211_ioctl' from incompatible pointer type if_acxifnet.c:312: error: `IFF_RUNNING' undeclared (first use in this function) if_acxifnet.c:312: error: (Each undeclared identifier is reported only once if_acxifnet.c:312: error: for each function it appears in.) if_acxifnet.c: In function `acx_ifnet_init': if_acxifnet.c:366: error: structure has no member named `ic_if' if_acxifnet.c:369: error: `IFF_RUNNING' undeclared (first use in this function) if_acxifnet.c: In function `acx_ifnet_up': if_acxifnet.c:405: error: `IFF_RUNNING' undeclared (first use in this function) if_acxifnet.c:406: error: `IFF_OACTIVE' undeclared (first use in this function) if_acxifnet.c: In function `acx_ifnet_down': if_acxifnet.c:423: error: `IFF_RUNNING' undeclared (first use in this function) if_acxifnet.c:424: error: `IFF_OACTIVE' undeclared (first use in this function) if_acxifnet.c: In function `acx_ifnet_newstate': if_acxifnet.c:436: error: structure has no member named `ic_if' *** Error code 1 Stop in /usr/ports/net/acx100/work/acx100. *** Error code 1 A few lines from 'if_acxifnet.c' showing line 58 which is where the first error is reported (line 58 is the last one shown): /* * attach a generic network interface to the system */ void acx_ifnet_attach(struct acx_softc *sc) { struct ieee80211com *ic; struct ifnet *ifp; /* extract some useful vars */ ic = &sc->ic; ifp = &ic->ic_if; The portversion number is: 20040701 I've tried 'locate ic_if' on an updated locate database; and I tried a google search for 'ic_if' which lead me to build /usr/ports/net/iwi-firmware but it didn't help. Also looked at http://dev.kewl.org/acx100/HEADER which mentions a discussion forum, but I can't seem to find it. Any help would be greatly appreciated. -- John.