linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Franz Apeltauer <franz.apeltauer@gmx.at>
To: linux-wireless@vger.kernel.org
Subject: 2 compile errors: rt2x00firmware.c and mesh.c
Date: Mon, 03 Mar 2008 00:42:22 +0100	[thread overview]
Message-ID: <47CB3B5E.4020701@gmx.at> (raw)

Hi,

after downloading the latest
http://linuxwireless.org/download/compat-wireless-2.6/compat-wireless-2=
=2E6.tar.bz2
today (2.3.2008) I got these errors during make:

   CC [M]
=2E../compat-wireless-2.6/drivers/net/wireless/rt2x00/rt2x00firmware.o
=2E../compat-wireless-2.6/drivers/net/wireless/rt2x00/rt2x00firmware.c:=
116:
=46ehler: Redefinition von =BBrt2x00lib_load_firmware=AB
=3D Error: redefiniton of  =BBrt2x00lib_load_firmware=AB
=2E../compat-wireless-2.6/drivers/net/wireless/rt2x00/rt2x00lib.h:129:
=46ehler: Vorherige Definition von =BBrt2x00lib_load_firmware=AB war hi=
er
=3D Error: previous definition of  =BBrt2x00lib_load_firmware=AB was he=
re
=2E../compat-wireless-2.6/drivers/net/wireless/rt2x00/rt2x00firmware.c:=
138:
=46ehler: Redefinition von =BBrt2x00lib_free_firmware=AB
=2E../compat-wireless-2.6/drivers/net/wireless/rt2x00/rt2x00lib.h:133:
=46ehler: Vorherige Definition von =BBrt2x00lib_free_firmware=AB war hi=
er
make[4]: ***
[.../compat-wireless-2.6/drivers/net/wireless/rt2x00/rt2x00firmware.o]
=46ehler 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=3Dy" before "make",=20
rt2x00firmware.c compiled fine. (Probably this is not a good idea. I=20
just wanted to see, if it compiles then.)

-----------------
=2E.. but a bit later I got this error:

   CC [M]  .../compat-wireless-2.6/net/mac80211/mesh.o
=2E../compat-wireless-2.6/net/mac80211/mesh.c: In Funktion =BBieee80211=
s_init=AB:
=2E../compat-wireless-2.6/net/mac80211/mesh.c:28:
=46ehler: Zu wenige Argumente f=FCr Funktion =BBkmem_cache_create=AB
=3D Error: Not enough arguments for function =BBkmem_cache_create=AB

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,
=46ranz
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles=
s" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

             reply	other threads:[~2008-03-02 23:42 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-02 23:42 Franz Apeltauer [this message]
2008-03-03  0:32 ` 2 compile errors: rt2x00firmware.c and mesh.c Johannes Berg
2008-03-03  3:52   ` Luis R. Rodriguez
2008-03-05 23:12     ` Franz Apeltauer
2008-03-05 23:15       ` Johannes Berg
2008-03-05 23:25         ` Franz Apeltauer
2008-03-05 23:34           ` Johannes Berg
2008-03-10 23:09             ` Franz Apeltauer
2008-03-08  2:59       ` Luis R. Rodriguez
2008-03-10 21:41         ` Franz Apeltauer
2008-03-10 22:21           ` Ivo van Doorn
2008-03-10 23:33             ` Luis R. Rodriguez
2008-03-11  0:07               ` Franz Apeltauer
2008-03-11  1:26                 ` Luis R. Rodriguez
2008-03-11 20:06                   ` Hauke Mehrtens
2008-03-11 21:24                     ` Luis R. Rodriguez
2008-03-11 22:14                   ` Franz Apeltauer
2008-03-11 22:22                     ` Ivo van Doorn
2008-03-11 23:01                       ` Franz Apeltauer
2008-03-11 23:09                         ` Ivo van Doorn
2008-03-16  0:33                           ` Franz Apeltauer
2008-03-17 17:12                             ` Luis R. Rodriguez
2008-03-03  9:37   ` Ivo Van Doorn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47CB3B5E.4020701@gmx.at \
    --to=franz.apeltauer@gmx.at \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).