Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 May 2006 23:49:08 +0100
From:      John Murphy <sub02@freeode.co.uk>
To:        freebsd-mobile@freebsd.org
Subject:   acx100 build fails in if_acxifnet.c
Message-ID:  <bq0i6295kgl37s02g6eelo0cppcjsdo4ph@4ax.com>

next in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bq0i6295kgl37s02g6eelo0cppcjsdo4ph>