Hi,
after downloading the latest
http://linuxwireless.org/download/compat-wireless-2.6/compat-wireless-2.6.tar.bz2
today (2.3.2008) I got these errors during make:
CC [M]
.../compat-wireless-2.6/drivers/net/wireless/rt2x00/rt2x00firmware.o
.../compat-wireless-2.6/drivers/net/wireless/rt2x00/rt2x00firmware.c:116:
Fehler: Redefinition von »rt2x00lib_load_firmware«
= Error: redefiniton of »rt2x00lib_load_firmware«
.../compat-wireless-2.6/drivers/net/wireless/rt2x00/rt2x00lib.h:129:
Fehler: Vorherige Definition von »rt2x00lib_load_firmware« war hier
= Error: previous definition of »rt2x00lib_load_firmware« was here
.../compat-wireless-2.6/drivers/net/wireless/rt2x00/rt2x00firmware.c:138:
Fehler: Redefinition von »rt2x00lib_free_firmware«
.../compat-wireless-2.6/drivers/net/wireless/rt2x00/rt2x00lib.h:133:
Fehler: Vorherige Definition von »rt2x00lib_free_firmware« war hier
make[4]: ***
[.../compat-wireless-2.6/drivers/net/wireless/rt2x00/rt2x00firmware.o]
Fehler 1
My environment (Ubuntu gutsy):
kernel: 2.6.22-14-generic #1 SMP Tue Feb 12 07:42:25 UTC 2008 i686 GNU/Linux
cc: gcc-Version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
wlan card: MSI PC54G2 ... RaLink rt2500 chip
When I tried to "export CONFIG_CRC_ITU_T=y" before "make",
rt2x00firmware.c compiled fine. (Probably this is not a good idea. I
just wanted to see, if it compiles then.)
-----------------
... but a bit later I got this error:
CC [M] .../compat-wireless-2.6/net/mac80211/mesh.o
.../compat-wireless-2.6/net/mac80211/mesh.c: In Funktion »ieee80211s_init«:
.../compat-wireless-2.6/net/mac80211/mesh.c:28:
Fehler: Zu wenige Argumente für Funktion »kmem_cache_create«
= Error: Not enough arguments for function »kmem_cache_create«
In /usr/src/linux-headers-2.6.22-14/include/linux/slab.h I found:
struct kmem_cache *kmem_cache_create(const char *, size_t, size_t,
unsigned long,
void (*)(void *, struct kmem_cache *, unsigned long),
void (*)(void *, struct kmem_cache *, unsigned long));
i.e. the old, 6-parameter version.
So, IMHO the #define kmem_cache_create in
- compat-wireless-2.6/include/net/compat.h, line 120 and
- compat-wireless-2.6/compat/compat.h, line 120
should be moved 2 lines downwards into the block named
/* Compat work for 2.6.22 and 2.6.23 */
Then it compiles fine.
Best regards,
Franz
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html