Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 166300 - madwifi-old-0.0.1417.20060128 fails to compile under 2.6.20+
Summary: madwifi-old-0.0.1417.20060128 fails to compile under 2.6.20+
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
: 168407 (view as bug list)
Depends on:
Blocks: kernel-2.6.20
  Show dependency tree
 
Reported: 2007-02-11 07:22 UTC by Itay Greenspon
Modified: 2007-02-26 07:27 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to help madwifi-old compile with kernel 2.6.20 (ieee80211_crypto_ccmp.patch,309 bytes, patch)
2007-02-11 13:59 UTC, Itay Greenspon
Details | Diff
Apply it manualy (ieee80211_crypto_ccmp.patch,309 bytes, text/plain)
2007-02-13 08:41 UTC, Itay Greenspon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Itay Greenspon 2007-02-11 07:22:17 UTC
Offending module: ieee80211_crypto_ccmp.c

Error Message:
ieee80211_crypto_ccmp.c:290: error: invalid use of undefined type 'struct page'
ieee80211_crypto_ccmp.c:294: error: invalid use of undefined type 'struct page'

Code reference:
static void
rijndael_encrypt(struct crypto_tfm *tfm, const void *src, void *dst) {
{
        struct scatterlist sg_src;
        struct scatterlist sg_dst;

----->  sg_src.page = virt_to_page(src);   <---------------- ERROR
        sg_src.offset = offset_in_page(src);
        sg_src.length = AES_BLOCK_LEN;

----->  sg_dst.page = virt_to_page(dst);   <---------------- ERROR
        sg_dst.offset = offset_in_page(dst);
        sg_dst.length = AES_BLOCK_LEN;
        crypto_cipher_encrypt(tfm, &sg_dst, &sg_src, AES_BLOCK_LEN);
}

I believe this is not the only file with the problem (i assume dot1x would be similairly affected)

Additional Problems:
The Sandbox violation also exists in this version (there is a seperate bug for this)
The header file "config.h" has been removed from /usr/src/linux/include/linux/config.h, but is required by madwifi-old. (should be fixed as this is a stub header file for <linux/autoconf.h>)
Comment 1 Stefan Schweizer (RETIRED) gentoo-dev 2007-02-11 12:52:05 UTC
care to provide a patch for the problem? I dont think anyone else cares enough to write one.
Comment 2 Itay Greenspon 2007-02-11 13:59:04 UTC
Created attachment 109847 [details, diff]
Patch to help madwifi-old compile with kernel 2.6.20
Comment 3 Stefan Schweizer (RETIRED) gentoo-dev 2007-02-12 23:04:54 UTC
sorry, does not apply here. Can you please give an ebuild for applying it too?
Comment 4 Itay Greenspon 2007-02-13 08:41:39 UTC
Created attachment 110043 [details]
Apply it manualy

Hi, 
This is corrected version.

Apply it manually by moving into the madwifi-old work-dir:
cd /var/tmp/portage/net-wireless/madwifi-old-0.0.1417.20060128/work/madwifi-old-r1417-20060128/

madwifi-old-r1417-20060128 # patch -p0 < [path to where you saved ieee80211_crypto_ccmp.patch]


The driver will then compile, however... it is unstable.
I think it's best to move to madwifi-ng if possible.
(I'll give it another try.. though it didn't work for me at first)
Comment 5 Stefan Schweizer (RETIRED) gentoo-dev 2007-02-19 21:33:49 UTC
thanks, I committed this.
Comment 6 A. Person 2007-02-25 22:32:50 UTC
I get a failed patch error for patch 2.6.20 when trying to emerge madwifi-old.  Is that related to this?
Comment 7 Stefan Schweizer (RETIRED) gentoo-dev 2007-02-26 00:31:24 UTC
seems I got the wrong patch, should work now, thanks.
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2007-02-26 07:27:11 UTC
*** Bug 168407 has been marked as a duplicate of this bug. ***