Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 26th May 2009, 15:52
cryma cryma is offline
Junior Member
 
Join Date: May 2009
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Exclamation HowTo compile a kernel: Ubuntu way - problem with kernel sources

Hi,

I'm having trouble with the .deb files obtained as the HowTo describes.

I've created the two .deb on a machine, which rebooted on the new kernel with no problem. Then I installed the two .deb on a second machine and also this one booted on the new kernel with no problem.

But, on the second machine, when i try to compile modules, such as madwifi, the compilation fails with pretty strange errors (errors attached). Errors seems related to kernel source files missing or different. I did install the headers.deb too.

On the machine where the .deb have been obtained madwifi compiles. However, I noticed that on that machine
Code:
/lib/modules/linux-my-kernel/build
and
Code:
/lib/modules/linux-my-kernel/source
link to the folder where I had compiled the kernel and not to the source folder obtained through the .deb

If i do change those links to point to the source folder obtained from the .deb, as it is on the second machine, then madwifi does not compile anymore. I attach the diff of the two folders.

I'm currently re-doing the compilation process to be sure I did not skip any step (I already know I did not create a link to /usr/src/linux, but could that alone explain the problem?). I'll let you know the outcome of this second try.

Last piece of info: the kernel I'm compiling is the vanilla kernel 2.6.24.7 patched to install click as a kernel module (http://read.cs.ucla.edu/click/click-1.7.0rc1.tar.gz, click-1.7.0rc1/etc/linux-2.6.24.7-patch). Madwifi is version 0.9.4, svn revisions 4007.


Any idea?

Thanks
Attached Files
File Type: txt make-madwifi-err.txt (5.5 KB, 217 views)
File Type: txt diff.txt (2.6 KB, 220 views)
Reply With Quote
Sponsored Links
  #2  
Old 26th May 2009, 18:15
cryma cryma is offline
Junior Member
 
Join Date: May 2009
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

I just finished to rebuild the .deb and install them on both the original and the second machine. Same problem as before.

The only other hint that I can give you is the output of:
Code:
sudo dpkg -i linux-image-2.6.24.7-click_2.6.24.7-click-10.00.Custom_i386.deb
Code:
sudo dpkg -i linux-image-2.6.24.7-click_2.6.24.7-click-10.00.Custom_i386.deb
[stripped]
Setting up linux-image-2.6.24.7-click (2.6.24.7-click-10.00.Custom) ...

 Hmm. There is a symbolic link /lib/modules/2.6.24.7-click/build
 However, I can not read it: No such file or directory
 Therefore, I am deleting /lib/modules/2.6.24.7-click/build


 Hmm. The package shipped with a symbolic link /lib/modules/2.6.24.7-click/source
 However, I can not read the target: No such file or directory
 Therefore, I am deleting /lib/modules/2.6.24.7-click/source

[stripped]
However, /lib/modules/mykernel/build points to the right sources (installed by the deb). However with those sources I cannot compile madwifi.
Reply With Quote
Reply

Bookmarks

Tags
compile kernel, kernel sources, ubuntu

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
upgraded Ubuntu 8.10 to Ubuntu 9.04, mail receiving problem. jtt General 1 10th May 2009 21:51
Ispconfig IE7 Xen aurelius Installation/Configuration 8 19th October 2008 10:46
Installing truecrypt on Ubuntu 6.06 Virtuozzo VPS - kernel header problem adrenalinic Installation/Configuration 5 14th September 2007 14:22
High Availability Samba cluster - DRBD + Heartbeat djalex Server Operation 58 25th May 2007 19:38
xen not booting qiu HOWTO-Related Questions 11 2nd May 2006 10:20


All times are GMT +2. The time now is 19:33.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.