From: Pat Erley <pat-lkml@erley.org>
To: Hin-Tak Leung <hintak.leung@gmail.com>
Cc: Bringfried Stecklum <stecklum@tls-tautenburg.de>,
linux-wireless@vger.kernel.org
Subject: Re: compile error compat-wireless
Date: Sun, 17 May 2009 20:03:12 -0400 [thread overview]
Message-ID: <4A10A5C0.7090107@erley.org> (raw)
In-Reply-To: <3ace41890905171600i3308f799n2a643e61fd954d4f@mail.gmail.com>
Hin-Tak Leung wrote:
> On Sun, May 17, 2009 at 12:29 PM, Bringfried Stecklum
> <stecklum@tls-tautenburg.de> wrote:
>> When trying to compile the latest compat-wireless package on an Ubuntu 8.10
>> 64bit system running linux kernel 2.6.27-12 I get the following error
>>
>> stecklum@extragalactix:~/System/src/compat-wireless-2009-05-17$ make
>> ...
>
> You have missed some important info here. - most likely you don't have
> the kernel header package installed.
>
>> CC [M]
>> /home/stecklum/System/src/compat-wireless-2009-05-17/net/mac80211/tx.o
>> CC [M]
>> /home/stecklum/System/src/compat-wireless-2009-05-17/net/mac80211/key.o
>> /home/stecklum/System/src/compat-wireless-2009-05-17/net/mac80211/key.c: In
>> function ‘ieee80211_key_alloc’:
>> /home/stecklum/System/src/compat-wireless-2009-05-17/net/mac80211/key.c:326:
>> error: implicit declaration of function ‘get_unaligned_le32’
>> /home/stecklum/System/src/compat-wireless-2009-05-17/net/mac80211/key.c:328:
>> error: implicit declaration of function ‘get_unaligned_le16’
>> make[3]: ***
>> [/home/stecklum/System/src/compat-wireless-2009-05-17/net/mac80211/key.o]
>> Error 1
>> make[2]: ***
>> [/home/stecklum/System/src/compat-wireless-2009-05-17/net/mac80211] Error 2
>> make[1]: *** [_module_/home/stecklum/System/src/compat-wireless-2009-05-17]
>> Error 2
>> make[1]: Leaving directory `/usr/src/linux-headers-2.6.27-12-mygeneric'
>> make: *** [modules] Error 2
>>
>> Regards,
>>
>> Bringfried
>
>
> Those two are defined in
> <kernel_source>/include/linux/unaligned/le_byteshift.h since about
> 2.6.26, I just checked.
>
> make sure /lib/modules/<kernel_ver>/source/ points to some kernel
> source tree (you probably need to install some package called
> kernel-dev or linux-dev).
>
I got this as well, fixed it by adding #include <asm/unaligned.h> to key.c
I have been running compat-wireless for months, so it's not a missing package
thing, I suspect it's an outdated headers thing. My system has 2.6.27 headers
right now.
Pat Erley
next prev parent reply other threads:[~2009-05-18 0:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-17 11:29 compile error compat-wireless Bringfried Stecklum
2009-05-17 23:00 ` Hin-Tak Leung
2009-05-18 0:03 ` Pat Erley [this message]
2009-05-18 1:09 ` Hin-Tak Leung
2009-05-18 2:30 ` Luis R. Rodriguez
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=4A10A5C0.7090107@erley.org \
--to=pat-lkml@erley.org \
--cc=hintak.leung@gmail.com \
--cc=linux-wireless@vger.kernel.org \
--cc=stecklum@tls-tautenburg.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.