LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-11-2004, 12:27 AM   #1
Khang
Member
 
Registered: Aug 2004
Distribution: Debian, Linux 2.6
Posts: 88

Rep: Reputation: 15
Errors from 'make xconfig' with kernel 2.6.7


Hi there. I've just been trying to compile a kernel (first time I might add), and I'm running into errors when I run 'make xconfig', or 'make menuconfig' etc.. To be honest, I have no idea what the problems is. I'm hoping that the error actually means something to somebody around here, and that somebody can tell me what my problem is... Because I'm damned if I know.

Quote:
root@jez64:/usr/src/linux# make xconfig
HOSTCC scripts/basic/fixdep
In file included from /usr/include/sys/socket.h:35,
from /usr/include/netinet/in.h:24,
from scripts/basic/fixdep.c:107:
/usr/include/bits/socket.h:305:24: asm/socket.h: No such file or directory
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
What should I have done before getting to the stage of running make? All I've done is extracted the new kernel to /usr/src/linux-2.6.7 and recreated the link 'linux' to point to that directory. Then (as an article I was going through advised) I put the Knoppix .config file in /usr/src/linux and ran 'make xconfig'. Now, that all sounds a bit too easy to be true, to me... So I wouldn't be surprised if I'm missing something vitally important out. As I say, I've merely been following a little guide.

I'm new to this, so go easy on me. Hope you can help. Thanks
 
Old 08-11-2004, 01:07 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
What is the default Knoppix kernel is it 2.6.x or 2.4.x . It seems like you are trying to compile into the kernel something that doesn't exist. It might be that Knoppix is running kernel 2.4 whilst you are trying to compile a 2.6 based kernel and hence your problems maybe due to the .config file you copied. Sometimes it's not always good to copy a .config from default kernels because a lot of unnecessary modules are installed.
 
Old 08-11-2004, 03:18 AM   #3
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

did u try 'make config'

also i think the linux source package is incomplete
get a new source and extract it and try again

regards
gaurav
 
Old 08-11-2004, 11:41 AM   #4
Khang
Member
 
Registered: Aug 2004
Distribution: Debian, Linux 2.6
Posts: 88

Original Poster
Rep: Reputation: 15
Your theory about the kernel source being incomplete sounds probable... I may have to download it again as you suggest, although I'd rather not since I'm on a slow connection. Oh well. I'll just have to be patient

reddazz: I was using the Knoppix 2.6.6 .config file. And I'm trying to compile 2.6.7. Not a major difference there. But you think that could be the problem? I guess it probably could.


Let me get this straight: 'make xconfig' and such, are used to create a .config file, right? So if I just ditch the Knoppix config file and start from scratch, I should still end up with a valid .config file at the end of it, right? I think I'll try that... Only thing is I have no idea what to expect from the configuration program. I'm expecting something horribly complicated... Let's hope I'm wrong .

Oh, and I'm 90% sure I tried 'make config', but I was doing this late last night and my memory of it is a bit fuzzy . I'll try it again just to be sure.

Thanks for the replies
 
Old 08-11-2004, 12:55 PM   #5
Khang
Member
 
Registered: Aug 2004
Distribution: Debian, Linux 2.6
Posts: 88

Original Poster
Rep: Reputation: 15
I tried deleting the Knoppix .config file but I'm still getting the same error, so that's not the problem.

Just looked over the error message and realised I'd actually misread it previously. I had overlooked the slashes at the beginning of some of the file paths. I had thought it was looking for files in /usr/src/linux/usr/include/whatever (which actually doesn't exist), but it's actually looking for it in /usr/include/whatever.

So it seems like I'm missing some files out of there... Any ideas why?
 
Old 08-12-2004, 01:29 AM   #6
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi

if u delete the knoppix .config file it will load up a default .config file and it should work
make xconfig will automatically load up the default .config file untill u have done something else
i think it will only help u if u get a new kernel source from kernel.org


regards
 
Old 08-12-2004, 12:02 PM   #7
Khang
Member
 
Registered: Aug 2004
Distribution: Debian, Linux 2.6
Posts: 88

Original Poster
Rep: Reputation: 15
As I say, deleting the Knoppix .config file didn't make any difference. I still get exactly the same error.

Quote:
i think it will only help u if u get a new kernel source from kernel.org
If you mean that you think my kernel source might be a partial download or something, then I suppose it's possible a few bits and bytes wandered off somewhere, so yeah, I think I'll probably re-download it. However, if you mean that you're unsure my copy came from kernel.org, well, it did.

I'll get this download over with today I guess. Damn my slow connection .

Update: Downloaded the whole thing again. I'm still getting exactly the same error. I seem to be missing some files and stuff, but I don't know what these files are, or where to get them (bearing in mind I have no Internet access from within Linux at the moment. Only in Windows).

Last edited by Khang; 08-12-2004 at 08:30 PM.
 
Old 08-12-2004, 11:01 PM   #8
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
what i propose is that u get ur further queries posted to the
newbie guide to kernel compiling by Dr Ozz in the linux general section.
there u can get better advice and help by linux gurus


regards
gaurav
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
make xconfig errors dred Linux - General 1 01-17-2005 09:10 AM
errors with make xconfig dred Mandriva 1 01-15-2005 04:06 AM
make xconfig fails with a LONG list of errors awreneau Linux - Software 2 06-11-2004 01:03 PM
Kernel Compile Problem / xconfig / QT ERRORS muzicman82 Linux - General 1 02-18-2004 03:41 PM
kernel 2.6.0test7 make xconfig Joey.Dale Linux - General 7 10-26-2003 09:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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