LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 01-27-2008, 03:44 PM   #1
gvp87
Member
 
Registered: Mar 2007
Location: Boston
Distribution: Ubuntu Gutsy
Posts: 50

Rep: Reputation: 15
Issues compiling source code on Ubuntu Gutsy


I've been having a problem compiling source code on my system. Every time i run "make", the source code is printed to the console screen. Is that weird?? and then when i run "make install" there's tons of errors. I have the build-essential package, but I don't know what else I should have.

I'm trying to compile a driver for my wireless ethernet card. I got the source code from the manufacturer's web page. The problem that i'm having with this is a little bit different. Here's the output:

giusi@giusiAndTheDell:~/Desktop/b44-1.00g$ make
make -C /lib/modules/2.6.22-14-generic/build SUBDIRS=/home/giusi/Desktop/b44-1.00g modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.22-14-generic'
CC [M] /home/giusi/Desktop/b44-1.00g/b44.o
/home/giusi/Desktop/b44-1.00g/b44.c:10:26: error: linux/config.h: No such file or directory
/home/giusi/Desktop/b44-1.00g/b44.c: In function ‘b44_open’:
/home/giusi/Desktop/b44-1.00g/b44.c:1546: warning: ‘deprecated_irq_flag’ is deprecated (declared at include/linux/interrupt.h:66)
/home/giusi/Desktop/b44-1.00g/b44.c:1546: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
/home/giusi/Desktop/b44-1.00g/b44.c: In function ‘b44_resume’:
/home/giusi/Desktop/b44-1.00g/b44.c:2563: warning: ‘deprecated_irq_flag’ is deprecated (declared at include/linux/interrupt.h:66)
/home/giusi/Desktop/b44-1.00g/b44.c:2563: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
/home/giusi/Desktop/b44-1.00g/b44.c: In function ‘b44_init’:
/home/giusi/Desktop/b44-1.00g/b44.c:2599: warning: implicit declaration of function ‘pci_module_init’
make[2]: *** [/home/giusi/Desktop/b44-1.00g/b44.o] Error 1
make[1]: *** [_module_/home/giusi/Desktop/b44-1.00g] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.22-14-generic'
make: *** [default] Error 2

I dont know what's wrong..it's really frustrating because I haven't been able to compile anything from source.
Any thoughts or tips would be great!

giuseppe
 
Old 01-27-2008, 03:53 PM   #2
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 2,635

Rep: Reputation: 47
Kernel headers are not installed?
 
Old 01-27-2008, 04:07 PM   #3
Ephracis
Senior Member
 
Registered: Sep 2004
Location: Sweden
Distribution: Ubuntu, Debian
Posts: 1,109

Rep: Reputation: 49
Quote:
error: linux/config.h: No such file or directory
When you get errors while running "make" it will tell you what's wrong. You can ignore the warnings most of the time but as you see, there is one error here.

As Emerson pointed out this may mean that the kernel headers probably are not installed.

The problem here is that in kernel 2.6.19 the file linux/config.h was removed. So it seems that the driver you are trying to compile is too old for the standard gutsy kernel (which is 2.6.22).

So unless you want to downgrade to an older kernel version (which I do not recommend, since it probably will break your whole system) you should try to find out if there is a more recent version of the driver which will work with a more recent kernel.

Regards,

Last edited by Ephracis; 01-27-2008 at 04:09 PM.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Toshiba A215-S7422. Ubuntu Gutsy 7.10. Sound issues. Help! Roasted Linux - Laptop and Netbook 16 12-23-2008 12:56 AM
Ubuntu amd64 (x86_64)version 7.04 issues with compiling php from source LDZ420 Linux - Software 5 08-23-2007 08:24 AM
LXer: Ubuntu 7.10 (Gutsy Gibbon) Release Dates and Mark Shuttleworth About Gutsy LXer Syndicated Linux News 0 04-12-2007 04:31 PM
compiling source code BoredStudent Linux - Desktop 1 10-26-2006 08:09 AM
compiling source code bishalpoudyal Linux - Software 1 04-08-2006 03:40 AM


All times are GMT -5. The time now is 01:00 PM.

Main Menu
 
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
Open Source Consulting | Domain Registration