From owner-freebsd-current@FreeBSD.ORG Wed Sep 24 23:39:22 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 721AA1065700 for ; Wed, 24 Sep 2008 23:39:22 +0000 (UTC) (envelope-from stephen@math.missouri.edu) Received: from cauchy.math.missouri.edu (cauchy.math.missouri.edu [128.206.184.213]) by mx1.freebsd.org (Postfix) with ESMTP id 1FD4C8FC2A for ; Wed, 24 Sep 2008 23:39:22 +0000 (UTC) (envelope-from stephen@math.missouri.edu) Received: from cauchy.math.missouri.edu (localhost [127.0.0.1]) by cauchy.math.missouri.edu (8.14.3/8.14.3) with ESMTP id m8ONdJXl074052; Wed, 24 Sep 2008 18:39:19 -0500 (CDT) (envelope-from stephen@math.missouri.edu) Received: from localhost (redmail@localhost) by cauchy.math.missouri.edu (8.14.3/8.14.3/Submit) with ESMTP id m8ONdJ7a073953; Wed, 24 Sep 2008 18:39:19 -0500 (CDT) (envelope-from stephen@math.missouri.edu) X-Authentication-Warning: cauchy.math.missouri.edu: redmail owned process doing -bs Date: Wed, 24 Sep 2008 18:39:19 -0500 (CDT) From: Stephen Montgomery-Smith X-X-Sender: redmail@cauchy.math.missouri.edu To: Flavio Junior In-Reply-To: <58aa8d780809241601i724ec7c2p5fd13a3b18027a64@mail.gmail.com> Message-ID: References: <58aa8d780809241601i724ec7c2p5fd13a3b18027a64@mail.gmail.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-current@freebsd.org Subject: Re: iwn: Errors during make iwn.ko X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Sep 2008 23:39:22 -0000 On Wed, 24 Sep 2008, Flavio Junior wrote: > And trying to compile iwn driver from http://www.clearchain.com/wiki/Iwn Why are you trying to compile this iwn driver, when iwn is already a part of FreeBSD-CURRENT? > Here is how pciconf shows me my wlan card: > none1@pci0:2:0:0: class=0x028000 card=0x11008086 chip=0x42298086 > rev=0x61 hdr=0x00 > vendor = 'Intel Corporation' > device = 'Intel 4965AGN Intel(R) Wireless WiFi Link > 4965AGN(supporting 802.11a/b/g/Draft-N)' > class = network > > I'll post logs here: > # cc --version > cc (GCC) 4.2.1 20070719 [FreeBSD] > Copyright (C) 2007 Free Software Foundation, Inc. > > # unzip iwn.zip > Archive: iwn.zip > creating: iwn/ > creating: iwn/dev/ > creating: iwn/dev/iwn/ > inflating: iwn/dev/iwn/if_iwn.c > inflating: iwn/dev/iwn/if_iwnreg.h > inflating: iwn/dev/iwn/if_iwnvar.h > inflating: iwn/README > creating: iwn/share/ > creating: iwn/share/doc/ > creating: iwn/share/doc/legal/ > creating: iwn/share/doc/legal/intel_iwn/ > inflating: iwn/share/doc/legal/intel_iwn/Makefile > extracting: iwn/share/doc/legal/Makefile > creating: iwn/sys/ > creating: iwn/sys/contrib/ > creating: iwn/sys/contrib/dev/ > creating: iwn/sys/contrib/dev/iwn/ > inflating: iwn/sys/contrib/dev/iwn/iwlwifi-4965-4.44.17.fw.uu > inflating: iwn/sys/contrib/dev/iwn/LICENSE > creating: iwn/sys/dev/ > creating: iwn/sys/dev/iwn/ > inflating: iwn/sys/dev/iwn/if_iwn.c > inflating: iwn/sys/dev/iwn/if_iwnreg.h > inflating: iwn/sys/dev/iwn/if_iwnvar.h > creating: iwn/sys/modules/ > creating: iwn/sys/modules/iwn/ > creating: iwn/sys/modules/iwnfw/ > inflating: iwn/sys/modules/iwnfw/Makefile > inflating: iwn/sys/modules/iwn/Makefile > # cd iwn/sys/modules/iwnfw > # make > Warning: Object directory not changed from original /root/iwn/sys/modules/iwnfw > uudecode -p /root/iwn/sys/modules/iwnfw/../../contrib/dev/iwn/iwlwifi-4965-4.44.17.fw.uu >> iwlwifi-4965-4.44.17.fw > @ -> /usr/src/sys > machine -> /usr/src/sys/i386/include > iwlwifi-4965-4.44.17.fw iwlwifi-4965-4.44.17.fw > awk -f @/tools/fw_stub.awk iwlwifi-4965-4.44.17.fw:iwnfw:44417 -miwnfw > -ciwnfw.c -lintel_iwn > cc -O2 -fno-strict-aliasing -pipe -march=prescott -Werror -D_KERNEL > -DKLD_MODULE -std=c99 -nostdinc -I. -I@ -I@/contrib/altq > -finline-limit=8000 --param inline-unit-growth=100 --param > large-function-growth=1000 -fno-common -mno-align-long-strings > -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 > -mno-sse3 -ffreestanding -fstack-protector -fstack-protector -Wall > -Wredundant-decls -Wnested-externs -Wstrict-prototypes > -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef > -Wno-pointer-sign -fformat-extensions -c iwnfw.c > ld -d -warn-common -r -d -o iwnfw.kld iwlwifi-4965-4.44.17.fw.fwo iwnfw.o > :> export_syms > awk -f /sys/conf/kmod_syms.awk iwnfw.kld export_syms | xargs -J% > objcopy % iwnfw.kld > ld -Bshareable -d -warn-common -o iwnfw.ko iwnfw.kld > objcopy --strip-debug iwnfw.ko > > # make install > install -o root -g wheel -m 555 iwnfw.ko /boot/kernel > kldxref /boot/kernel > #cd ../iwn > # make > Warning: Object directory not changed from original /root/iwn/sys/modules/iwn > @ -> /usr/src/sys > machine -> /usr/src/sys/i386/include > :> opt_bdg.h > awk -f @/tools/makeobjops.awk @/kern/device_if.m -h > awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h > awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h > cc -O2 -fno-strict-aliasing -pipe -march=prescott -g -DWITNESS > -DINVARIANT_SUPPORT -DINVARIANTS -Werror -D_KERNEL -DKLD_MODULE > -std=c99 -nostdinc -I/root/iwn/sys/modules/iwn/../../ -I. -I@ > -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 > --param large-function-growth=1000 -fno-common > -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx > -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding > -fstack-protector -fstack-protector -Wall -Wredundant-decls > -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes > -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign > -fformat-extensions -c > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function 'iwn_attach': > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:366: error: 'struct > ieee80211com' has no member named 'ic_state' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:370: error: > 'IEEE80211_C_WEP' undeclared (first use in this function) > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:370: error: (Each > undeclared identifier is reported only once > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:370: error: for each > function it appears in.) > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:409: error: 'struct > ieee80211com' has no member named 'ic_bmissthreshold' > cc1: warnings being treated as errors > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:410: warning: > assignment from incompatible pointer type > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:416: warning: > assignment from incompatible pointer type > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:417: warning: > assignment from incompatible pointer type > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:420: error: 'struct > ieee80211com' has no member named 'ic_newstate' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:421: error: 'struct > ieee80211com' has no member named 'ic_newstate' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:422: error: too many > arguments to function 'ieee80211_media_init' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:426: warning: passing > argument 2 of 'ieee80211_amrr_init' from incompatible pointer type > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:426: error: too few > arguments to function 'ieee80211_amrr_init' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function 'iwn_newassoc': > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:910: error: too few > arguments to function 'ieee80211_amrr_node_init' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function 'iwn_newstate': > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:940: error: 'struct > ieee80211com' has no member named 'ic_state' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:950: error: 'struct > ieee80211com' has no member named 'ic_state' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:954: error: 'struct > ieee80211com' has no member named 'ic_state' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function > 'iwn_calib_timeout': > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:1279: error: 'struct > ieee80211com' has no member named 'ic_state' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:1283: error: 'struct > ieee80211com' has no member named 'ic_fixed_rate' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:1287: error: 'struct > ieee80211com' has no member named 'ic_bss' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function 'iwn_iter_func': > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:1309: warning: > passing argument 1 of 'ieee80211_amrr_choose' from incompatible > pointer type > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:1309: warning: > passing argument 2 of 'ieee80211_amrr_choose' from incompatible > pointer type > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:1309: error: too many > arguments to function 'ieee80211_amrr_choose' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function 'iwn_rx_intr': > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:1443: error: 'struct > ieee80211com' has no member named 'ic_state' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:1467:45: error: macro > "ieee80211_input" passed 6 arguments, but takes just 5 > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:1467: error: > 'ieee80211_input' undeclared (first use in this function) > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function > 'iwn_rx_statistics': > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:1482: error: 'struct > ieee80211com' has no member named 'ic_state' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function 'iwn_notif_intr': > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:1652: error: 'struct > ieee80211com' has no member named 'ic_state' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:1654: error: 'struct > ieee80211com' has no member named 'ic_bmissthreshold' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function 'iwn_tx_data': > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:1835: error: 'struct > ieee80211com' has no member named 'ic_mcast_rate' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:1836: error: 'struct > ieee80211com' has no member named 'ic_fixed_rate' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:1837: error: 'struct > ieee80211com' has no member named 'ic_fixed_rate' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:1843: warning: > passing argument 1 of 'ieee80211_crypto_encap' from incompatible > pointer type > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:1843: warning: > passing argument 2 of 'ieee80211_crypto_encap' from incompatible > pointer type > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:1843: error: too many > arguments to function 'ieee80211_crypto_encap' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:1877: error: 'struct > ieee80211com' has no member named 'ic_rtsthreshold' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function 'iwn_start': > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:2026: error: 'struct > ieee80211com' has no member named 'ic_mgtq' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:2035: error: 'struct > ieee80211com' has no member named 'ic_mgtq' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:2035: error: 'struct > ieee80211com' has no member named 'ic_mgtq' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:2035: error: 'struct > ieee80211com' has no member named 'ic_mgtq' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:2035: error: 'struct > ieee80211com' has no member named 'ic_mgtq' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:2035: error: 'struct > ieee80211com' has no member named 'ic_mgtq' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:2035: error: 'struct > ieee80211com' has no member named 'ic_mgtq' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:2043: error: 'struct > ieee80211com' has no member named 'ic_state' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:2053: warning: > passing argument 1 of 'ieee80211_cancel_scan' from incompatible > pointer type > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:2062: warning: > passing argument 1 of 'ieee80211_find_txnode' from incompatible > pointer type > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:2068: warning: > passing argument 1 of 'ieee80211_classify' from incompatible pointer > type > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:2068: error: too many > arguments to function 'ieee80211_classify' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:2083: warning: > passing argument 1 of 'ieee80211_encap' from incompatible pointer type > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:2083: error: too many > arguments to function 'ieee80211_encap' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:2087: error: 'struct > ieee80211com' has no member named 'ic_rawbpf' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:2088: error: 'struct > ieee80211com' has no member named 'ic_rawbpf' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function 'iwn_ioctl': > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:2148: warning: > passing argument 1 of 'ieee80211_ioctl' from incompatible pointer type > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:2153: error: 'struct > ieee80211com' has no member named 'ic_roaming' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function > 'iwn_power_calibration': > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:2674: error: 'struct > ieee80211com' has no member named 'ic_state' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function 'iwn_auth': > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:3205: error: 'struct > ieee80211com' has no member named 'ic_bss' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function 'iwn_run': > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:3297: error: 'struct > ieee80211com' has no member named 'ic_bss' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:3385: error: 'struct > ieee80211com' has no member named 'ic_bss' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function 'iwn_scan': > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:3486: error: 'struct > ieee80211com' has no member named 'ic_des_ssid' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:3487: error: 'struct > ieee80211com' has no member named 'ic_des_ssid' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:3487: error: 'struct > ieee80211com' has no member named 'ic_des_ssid' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:3507: error: 'struct > ieee80211com' has no member named 'ic_des_ssid' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:3508: error: 'struct > ieee80211com' has no member named 'ic_des_ssid' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:3508: error: 'struct > ieee80211com' has no member named 'ic_des_ssid' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:3509: error: 'struct > ieee80211com' has no member named 'ic_des_ssid' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:3541: error: 'struct > ieee80211com' has no member named 'ic_des_ssid' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function 'iwn_init': > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:3988: error: 'struct > ieee80211com' has no member named 'ic_roaming' > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:3989: warning: > passing argument 1 of 'ieee80211_new_state' from incompatible pointer > type > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:3991: warning: > passing argument 1 of 'ieee80211_new_state' from incompatible pointer > type > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function 'iwn_stop': > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:4015: warning: > passing argument 1 of 'ieee80211_new_state' from incompatible pointer > type > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function 'iwn_ops': > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:4150: warning: > passing argument 1 of 'ieee80211_scan_next' from incompatible pointer > type > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:4157: warning: > passing argument 1 of 'ieee80211_cancel_scan' from incompatible > pointer type > /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:4173: warning: > passing argument 1 of 'ieee80211_cancel_scan' from incompatible > pointer type > *** Error code 1 > > Stop in /root/iwn/sys/modules/iwn. > > > > Any help will be appreciated. Thanks. > > -- > > Fl?vio do Carmo J?nior > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >