From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 2 06:22:49 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E8D2E16A4D2 for ; Fri, 2 Apr 2004 06:22:49 -0800 (PST) Received: from mail.rdstm.ro (mail.rdstm.ro [193.231.233.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4BC7843D46 for ; Fri, 2 Apr 2004 06:22:49 -0800 (PST) (envelope-from aanton@reversedhell.net) Received: from reversedhell.net (casa_auto [81.196.32.25]) by mail.rdstm.ro (8.12.10/8.12.1) with ESMTP id i32EMlUa000800 for ; Fri, 2 Apr 2004 17:22:47 +0300 Message-ID: <406D69B4.6050601@reversedhell.net> Date: Fri, 02 Apr 2004 16:25:08 +0300 From: Anton Alin-Adrian User-Agent: Mozilla Thunderbird 0.5 (X11/20040303) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org X-Enigmail-Version: 0.83.3.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: wireless usb atmel driver X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Apr 2004 14:22:50 -0000 Hi folks! I am killing myself trying to compile http://www.vitsch.net/bsd/atuwi/ driver on 5.2.1-RELEASE. The driver is written for 5.1. I also received working sources from the author, for 5.2.1-RELEASE but they don't compile. I would really appreciate any hints. I want to ask you if there is any difference between and , because I had to modify the source and use the later, so I wonder if this could be affecting the compilation. Also, after fixing the include I get stuck at this point: In file included from /usr/src/sys/dev/usb/if_atuwi.c:82: @/dev/usb/if_atuwireg.h:275: warning: declaration does not declare anything Where one can easely look and see that line 275 is: ---cut--- SLIST_HEAD(atuwi_list_head, atuwi_chain); ---cut--- That is part of the following context: ---cut--- struct atuwi_chain { struct atuwi_softc *atuwi_sc; usbd_xfer_handle atuwi_xfer; char *atuwi_buf; struct mbuf *atuwi_mbuf; u_int8_t atuwi_idx; u_int16_t atuwi_length; #ifdef ATUWI_LAZY_TX_NETISR u_int8_t atuwi_not_freed; #endif /* ATUWI_LAZY_TX_NETISR */ SLIST_ENTRY(atuwi_chain) atuwi_list; }; struct atuwi_cdata { struct atuwi_chain atuwi_tx_chain[ATUWI_TX_LIST_CNT]; struct atuwi_chain atuwi_rx_chain[ATUWI_RX_LIST_CNT]; struct atuwi_chain atuwi_mgmt_chain[ATUWI_MGMT_LIST_CNT]; SLIST_HEAD(atuwi_list_head, atuwi_chain); /* <-- HERE */ struct atuwi_list_head atuwi_rx_free; struct atuwi_list_head atuwi_tx_free; struct atuwi_list_head atuwi_mgmt_free; u_int8_t atuwi_tx_inuse; u_int8_t atuwi_tx_last_idx; }; ---cut--- The complete error barking: ---cut--- Warning: Object directory not changed from original /usr/src/sys/modules/atuwi cc -O -pipe -mcpu=pentiumpro -D_KERNEL -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -DKLD_MODULE -nostdinc -I- -I. -I@ -I@/../include -finline-limit=15000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -c /usr/src/sys/modules/atuwi/../../dev/usb/if_atuwi.c In file included from /usr/src/sys/dev/usb/if_atuwi.c:82: @/dev/usb/if_atuwireg.h:275: warning: declaration does not declare anything /usr/src/sys/dev/usb/if_atuwi.c: In function `atuwi_attach': /usr/src/sys/dev/usb/if_atuwi.c:2021: error: invalid application of `sizeof' to an incomplete type /usr/src/sys/dev/usb/if_atuwi.c: In function `atuwi_handle_mgmt_packet': /usr/src/sys/dev/usb/if_atuwi.c:2392: error: `IEEE80211_CAPINFO_SHORT_PREAMBLE' undeclared (first use in this function) /usr/src/sys/dev/usb/if_atuwi.c:2392: error: (Each undeclared identifier is reported only once /usr/src/sys/dev/usb/if_atuwi.c:2392: error: for each function it appears in.) *** Error code 1 Stop in /usr/src/sys/modules/atuwi. ---cut--- I tried replacing line 275 with: ---cut--- SLIST_HEAD(atuwi_list_head, atuwi_chain) atuwi_list; ---cut--- And the error output from the compilation attempt becomes: ---cut--- Warning: Object directory not changed from original /usr/src/sys/modules/atuwi cc -O -pipe -mcpu=pentiumpro -D_KERNEL -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -DKLD_MODULE -nostdinc -I- -I. -I@ -I@/../include -finline-limit=15000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -c /usr/src/sys/modules/atuwi/../../dev/usb/if_atuwi.c /usr/src/sys/dev/usb/if_atuwi.c: In function `atuwi_attach': /usr/src/sys/dev/usb/if_atuwi.c:2021: error: invalid application of `sizeof' to an incomplete type /usr/src/sys/dev/usb/if_atuwi.c: In function `atuwi_handle_mgmt_packet': /usr/src/sys/dev/usb/if_atuwi.c:2392: error: `IEEE80211_CAPINFO_SHORT_PREAMBLE' undeclared (first use in this function) /usr/src/sys/dev/usb/if_atuwi.c:2392: error: (Each undeclared identifier is reported only once /usr/src/sys/dev/usb/if_atuwi.c:2392: error: for each function it appears in.) *** Error code 1 Stop in /usr/src/sys/modules/atuwi. ---cut--- So no more error on line 275 from if_atuwireg.h, but I don't know if that is the correct fix, and I don't know why it is still not compiling (and if those 2 incompatibilities are related or not). If anyone is kind enough to share me a hand of help, it is heavely appreciated. Thanks! Best Regards, -- Alin-Adrian Anton Reversed Hell Networks GPG keyID 0x1E2FFF2E (2963 0C11 1AF1 96F6 0030 6EE9 D323 639D 1E2F FF2E) gpg --keyserver pgp.mit.edu --recv-keys 1E2FFF2E