LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 05-11-2011, 01:56 PM   #1
green_dood
Member
 
Registered: Nov 2007
Location: Puebla, Mexico
Distribution: Ubuntu, DSL, Fedora
Posts: 45
Blog Entries: 1

Rep: Reputation: 15
Question Compiling wireless compat for kernel 2.6.38-9


Hi guys!

I have been trying to compile the latest version of wireless compat (2011-05-05) listed here

http://wireless.kernel.org/download/...-wireless-2.6/

With the kernel shipped with Ubuntu Natty ( 2.6.38-9-generic ). I also applied the patches needed for WEP cracking

wl_frag+ack_v1.patch
nel-negative-one-maxim.patch

The problem is, the compliation process always return error, I tried going back with gcc 4.4 (as ubuntu 11.04 uses 4.5), it complies about some functions not declared. Here is the error:


Code:
CC [M]  /home/saeioul/compat-wireless-2011-05-04/net/mac80211/agg-tx.o
/home/saeioul/compat-wireless-2011-05-04/net/mac80211/agg-tx.c: In function ‘___ieee80211_stop_tx_ba_session’:
/home/saeioul/compat-wireless-2011-05-04/net/mac80211/agg-tx.c:158: error: implicit declaration of function ‘kfree_rcu’
/home/saeioul/compat-wireless-2011-05-04/net/mac80211/agg-tx.c:158: error: ‘rcu_head’ undeclared (first use in this function)
/home/saeioul/compat-wireless-2011-05-04/net/mac80211/agg-tx.c:158: error: (Each undeclared identifier is reported only once
/home/saeioul/compat-wireless-2011-05-04/net/mac80211/agg-tx.c:158: error: for each function it appears in.)
/home/saeioul/compat-wireless-2011-05-04/net/mac80211/agg-tx.c: In function ‘ieee80211_tx_ba_session_handle_start’:
/home/saeioul/compat-wireless-2011-05-04/net/mac80211/agg-tx.c:317: error: ‘rcu_head’ undeclared (first use in this function)
/home/saeioul/compat-wireless-2011-05-04/net/mac80211/agg-tx.c: In function ‘ieee80211_stop_tx_ba_cb’:
/home/saeioul/compat-wireless-2011-05-04/net/mac80211/agg-tx.c:696: error: ‘rcu_head’ undeclared (first use in this function)
Before upgrading to Natty, I could compile the compat wireless. I should point out that I used an older version of wireless-compat, but that version also does not compile under the new kernel, and thats the reason I tried with the new version.

Any help will be appreciated, thanks in advance
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 05-12-2011, 07:45 AM   #2
corp769
Guru
 
Registered: Apr 2005
Posts: 5,814

Rep: Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001
Hello,

See here regarding this issue: http://comments.gmane.org/gmane.linu....general/69332

Cheers,

Josh
 
2 members found this post helpful.
Old 05-13-2011, 12:12 PM   #3
green_dood
Member
 
Registered: Nov 2007
Location: Puebla, Mexico
Distribution: Ubuntu, DSL, Fedora
Posts: 45
Blog Entries: 1

Original Poster
Rep: Reputation: 15
I will give it a shot later, thanks!
 
Old 05-13-2011, 12:15 PM   #4
corp769
Guru
 
Registered: Apr 2005
Posts: 5,814

Rep: Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001
Quote:
Originally Posted by green_dood View Post
I will give it a shot later, thanks!
No problem man! If you have any questions regarding compat-wireless, ask away

Josh
 
Old 05-13-2011, 12:26 PM   #5
green_dood
Member
 
Registered: Nov 2007
Location: Puebla, Mexico
Distribution: Ubuntu, DSL, Fedora
Posts: 45
Blog Entries: 1

Original Poster
Rep: Reputation: 15
Exclamation Patch didn't work

Hi!

I tried to apply the patch listed in your post, but it refuses to work. It gives me this error

Code:
saeioul@saeioul-natty:~/compat-wireless-2011-05-05$ patch -p1 < tip-core-rcu-71-86-net-rcu-convert-call_rcu-kfree_tid_tx-to-kfree_rcu.patch 
patching file net/mac80211/agg-tx.c
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] y
Hunk #1 FAILED at 136.
Hunk #2 FAILED at 163.
Hunk #3 FAILED at 322.
Hunk #4 FAILED at 701.
4 out of 4 hunks FAILED -- saving rejects to file net/mac80211/agg-tx.c.rej
Perhaps I have to patch against a different wireless compat version, maybe one of before may? (as the patch has that date)
 
Old 05-13-2011, 12:32 PM   #6
green_dood
Member
 
Registered: Nov 2007
Location: Puebla, Mexico
Distribution: Ubuntu, DSL, Fedora
Posts: 45
Blog Entries: 1

Original Poster
Rep: Reputation: 15
Patch is ... ignored?

Hi, I also tried to patch against a version dated before may (the date of the patch), but unlike the other patches applied, this one does not list the offset or the lines that changed. Of course, it does not compile.

Any direction you can point to check for another patch maybe?

Thanks!!
 
Old 05-13-2011, 12:37 PM   #7
corp769
Guru
 
Registered: Apr 2005
Posts: 5,814

Rep: Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001
Hello,

Have you tried an older version? I know the version I have listed in my blog worked without a hitch for me, and I used it for compiling many drivers for different chipsets. I would definitely try that before you go trying to apply a different version of a patch, and/or just a different patch in general.

Edit - Or, you can do what I did and modify the file manually and insert the changes by hand. The file might be a bit different, and that might be why it is giving you problems.
 
1 members found this post helpful.
Old 05-13-2011, 12:48 PM   #8
green_dood
Member
 
Registered: Nov 2007
Location: Puebla, Mexico
Distribution: Ubuntu, DSL, Fedora
Posts: 45
Blog Entries: 1

Original Poster
Rep: Reputation: 15
Question Perhaps the dates are correct ...

Quote:
Originally Posted by corp769 View Post
No problem man! If you have any questions regarding compat-wireless, ask away

Josh
Thanks very MUCHO for the link with the patch.

I have read the information, and seems correct, because the date is May the 5th, the same date on the wireless compat package. I'm starting to think that maybe I'm not applying correctly the patch. I have always patched like this:

Code:
 patch -p1 < diff_file.patch
Maybe there is something wrong with this.
 
Old 05-13-2011, 12:50 PM   #9
green_dood
Member
 
Registered: Nov 2007
Location: Puebla, Mexico
Distribution: Ubuntu, DSL, Fedora
Posts: 45
Blog Entries: 1

Original Poster
Rep: Reputation: 15
Choosing a version

Quote:
Originally Posted by corp769 View Post
Hello,

Have you tried an older version? I know the version I have listed in my blog worked without a hitch for me, and I used it for compiling many drivers for different chipsets. I would definitely try that before you go trying to apply a different version of a patch, and/or just a different patch in general.

Edit - Or, you can do what I did and modify the file manually and insert the changes by hand. The file might be a bit different, and that might be why it is giving you problems.
Yep, I tried older versions of the wireless compat. I will try to introduce the changes by hand. In the meanwhile, can you tell me which version you used to compile?

Best regards!
 
Old 05-13-2011, 12:50 PM   #10
corp769
Guru
 
Registered: Apr 2005
Posts: 5,814

Rep: Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001
To be completely honest with you, I normally look at the original file and hand edit like I said before. Could you post both the original file and the patch file? I can take a look to see if there is any compatibility issues, and even patch it for you and test it.
 
Old 05-13-2011, 12:59 PM   #11
green_dood
Member
 
Registered: Nov 2007
Location: Puebla, Mexico
Distribution: Ubuntu, DSL, Fedora
Posts: 45
Blog Entries: 1

Original Poster
Rep: Reputation: 15
Thumbs up Attachments

Quote:
Originally Posted by corp769 View Post
To be completely honest with you, I normally look at the original file and hand edit like I said before. Could you post both the original file and the patch file? I can take a look to see if there is any compatibility issues, and even patch it for you and test it.

Okay, here we go. It would be great if you can tell me how to read those patch files so I can do this in the future. The only thing I get is that the diff file has the offset in which the changes go.

The attachments are in .txt , as .c and .patch are not accepted.
Attached Files
File Type: txt agg-tx.c.txt (22.5 KB, 2 views)
File Type: txt mac80211.compat08082009.wl_frag+ack_v1.patch.txt (1.0 KB, 1 views)
 
Old 05-13-2011, 01:00 PM   #12
green_dood
Member
 
Registered: Nov 2007
Location: Puebla, Mexico
Distribution: Ubuntu, DSL, Fedora
Posts: 45
Blog Entries: 1

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by corp769 View Post
To be completely honest with you, I normally look at the original file and hand edit like I said before. Could you post both the original file and the patch file? I can take a look to see if there is any compatibility issues, and even patch it for you and test it.
I missed the correct file, this is the patch!!

Sorry for the inconvenience
 
Old 05-13-2011, 01:09 PM   #13
corp769
Guru
 
Registered: Apr 2005
Posts: 5,814

Rep: Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001
As I look through the files right now as I type, the way I do is open both the patch file and original file in two separate terminals, and I swithc between them, looking at the patch file and navigating to the lines identified in the file. From there, I just match the text that correlates with the correct position, and then I copy and paste. I hope that makes sense to you, I'm a horrible explainer
 
Old 05-13-2011, 01:10 PM   #14
green_dood
Member
 
Registered: Nov 2007
Location: Puebla, Mexico
Distribution: Ubuntu, DSL, Fedora
Posts: 45
Blog Entries: 1

Original Poster
Rep: Reputation: 15
Exclamation Check this out

Perhaps the patch you gave is already applied in the 2011-05-05 version I'm using.

http://www.spinics.net/lists/linux-w.../msg69073.html

The discussion stops where someone reverted the patch, I will try that, will tell later if works.
 
Old 05-13-2011, 01:17 PM   #15
corp769
Guru
 
Registered: Apr 2005
Posts: 5,814

Rep: Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001
Haha, you beat me to it. The patch IS already applied. Maybe try reverting back to a previous version and go from there? It might be a compatibility issue, since compat-wireless is built around compatibility itself.
 
  


Reply

Tags
compile error, ubuntu+11.04, wirelessnetworking


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] compat-wireless compile error kaz2100 Linux - Software 1 10-24-2010 09:36 AM
Compile Compat-wireless mah454 Linux - Networking 2 09-25-2010 11:55 AM
Compat-wireless-old File-Not Found, phenyloxime Linux - Laptop and Netbook 2 04-30-2010 08:03 PM
COMPAT-WIRELESS location? lxquestions000019 Linux - Newbie 0 08-24-2009 06:31 PM
compat-wireless error... ott0disk Linux - Wireless Networking 5 12-30-2008 02:38 AM


All times are GMT -5. The time now is 06:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration