LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-01-2004, 09:46 PM   #1
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
error in "make zImage" during 2.6.4 kernel compliation


Evening everybody!

I decided to test my linux skills by attempt to upgrade my kernel from 2.4.20-8 to 2.6.4. I'm following the directions to the letter, but I've hit a rather serious wall. I'm nearing the end of the compilation, but I can't make either a zImage or bzImage of the new kernel. Here is the output from the shell when I give the make zImage command:

[root@jimb linux-2.6.4]# make zImage
Makefile:392: .config: No such file or directory
HOSTCC scripts/fixdep
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/limits.h:132,
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/syslimits.h:7,
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/limits.h:11,
from scripts/fixdep.c:105:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
In file included from /usr/include/netinet/in.h:214,
from scripts/fixdep.c:107:
/usr/include/bits/socket.h:305:24: asm/socket.h: No such file or directory
scripts/fixdep.c: In function `use_config':
scripts/fixdep.c:193: `PATH_MAX' undeclared (first use in this function)
scripts/fixdep.c:193: (Each undeclared identifier is reported only once
scripts/fixdep.c:193: for each function it appears in.)
scripts/fixdep.c:193: warning: unused variable `s'
scripts/fixdep.c: In function `parse_dep_file':
scripts/fixdep.c:289: `PATH_MAX' undeclared (first use in this function)
scripts/fixdep.c:289: warning: unused variable `s'
make[1]: *** [scripts/fixdep] Error 1
make: *** [scripts] Error 2

after that it simply returns to the shell. I though it may be that I needed make bzImage, but that give a nearly identical output, with the same 2 errors at the end, then it quits.

I may have the machinestuck between kernels, but maybe not since I didn't even completely make the new kernel image. I'd like to know how to get around this problem, but I'd also like to understand the output of the make zImage command, because I don't understand most of it.

Thanks for your time,
JimBass
 
Old 04-01-2004, 09:54 PM   #2
wiBo
Member
 
Registered: Aug 2003
Location: Saint-Georges de Beauce
Distribution: Gentoo soon..
Posts: 193

Rep: Reputation: 30
You have some missing files dude

Quote:
Makefile:392: .config: No such file or directory
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
/usr/include/bits/socket.h:305:24: asm/socket.h: No such file or directory
1st: What is the /usr/include/bits directory? i never saw that before :/

Let me Google it, i'll be back w/ infos , maybe another member will have answer you before

EDIT : Glibc, you have a problem with the GLibc's files ..
** Search In Progress

Last edited by wiBo; 04-01-2004 at 09:55 PM.
 
Old 04-01-2004, 10:03 PM   #3
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Original Poster
Rep: Reputation: 49
I have no idea what either the /usr/include bits directory is, nor what Glibc is.

When I installed RH9, I put every package on the 3 CDs on my machine, so I would be somewhat surprised if it was a dependency issue.

Thanks for the help so far, and hopefully your googling skills far surpass mine, because I didn't find jack. I tend to strike out on goole. I too often phrase my questions like I am speaking to a human, and as good as Google's engine is, it still can't "yet" deal with me as a human being. Soon for that, I hope!

Peace,
JimBass
 
Old 04-01-2004, 10:12 PM   #4
wiBo
Member
 
Registered: Aug 2003
Location: Saint-Georges de Beauce
Distribution: Gentoo soon..
Posts: 193

Rep: Reputation: 30
For the trick, i only tapped:

/usr/include/bits

i have founded in the top of the page:

[glibc 2.1.3] /usr/include/bits/socket.h

So i have deduced it will be a glibc problem
 
Old 04-01-2004, 10:32 PM   #5
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Gentoo
Posts: 1,372

Rep: Reputation: 47
2.6.x is not like 2.4, first you do the make mrproper then make menuconfig (xconfig if u like that better), then you simply type make, just "make" it will make a bzImage for you, make zimage and make bzImage are not necessary, and make dep is gone all together. then do a make modules and make modules_install for the modules.
 
Old 04-01-2004, 10:34 PM   #6
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Original Poster
Rep: Reputation: 49
Cool. I'm trying to get glibc from rpmfind, and the redhat 9 rpms are all giving "too many user" errors. As soon as I can get a copy of it, I'll install it and see if that improves the situation.

Thanks for your help so far.

Peace,
JimBass
 
Old 04-01-2004, 10:40 PM   #7
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Original Poster
Rep: Reputation: 49
Exodist,

I did a mrproper and a make config prior to getting the errors I talked about above. Here is the output from just "make"

[root@jimb linux-2.6.4]# make
Makefile:392: .config: No such file or directory
HOSTCC scripts/fixdep
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/limits.h:132,
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/syslimits.h:7,
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/limits.h:11,
from scripts/fixdep.c:105:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
In file included from /usr/include/netinet/in.h:214,
from scripts/fixdep.c:107:
/usr/include/bits/socket.h:305:24: asm/socket.h: No such file or directory
scripts/fixdep.c: In function `use_config':
scripts/fixdep.c:193: `PATH_MAX' undeclared (first use in this function)
scripts/fixdep.c:193: (Each undeclared identifier is reported only once
scripts/fixdep.c:193: for each function it appears in.)
scripts/fixdep.c:193: warning: unused variable `s'
scripts/fixdep.c: In function `parse_dep_file':
scripts/fixdep.c:289: `PATH_MAX' undeclared (first use in this function)
scripts/fixdep.c:289: warning: unused variable `s'
make[1]: *** [scripts/fixdep] Error 1
make: *** [scripts] Error 2
[root@jimb linux-2.6.4]#

doing a make menuconfig gives a similiar string of garbage:

[jim@jimb linux-2.6.4]$ make menuconfig
HOSTCC scripts/fixdep
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/limits.h:132,
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/syslimits.h:7,
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/limits.h:11,
from scripts/fixdep.c:105:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
In file included from /usr/include/netinet/in.h:214,
from scripts/fixdep.c:107:
/usr/include/bits/socket.h:305:24: asm/socket.h: No such file or directory
scripts/fixdep.c: In function `use_config':
scripts/fixdep.c:193: `PATH_MAX' undeclared (first use in this function)
scripts/fixdep.c:193: (Each undeclared identifier is reported only once
scripts/fixdep.c:193: for each function it appears in.)
scripts/fixdep.c:193: warning: unused variable `s'
scripts/fixdep.c: In function `parse_dep_file':
scripts/fixdep.c:289: `PATH_MAX' undeclared (first use in this function)
scripts/fixdep.c:289: warning: unused variable `s'
make[1]: *** [scripts/fixdep] Error 1
make: *** [scripts/fixdep] Error 2
[jim@jimb linux-2.6.4]$

Thanks for helping in any case.

Peace,
JimBass

Last edited by JimBass; 04-01-2004 at 10:45 PM.
 
Old 04-01-2004, 10:41 PM   #8
wiBo
Member
 
Registered: Aug 2003
Location: Saint-Georges de Beauce
Distribution: Gentoo soon..
Posts: 193

Rep: Reputation: 30
np

Thx for the kernel 2.6.x trick exodist, do you have a website for kernel 2.6.x install doc?
 
Old 04-01-2004, 10:55 PM   #9
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Gentoo
Posts: 1,372

Rep: Reputation: 47
ok, I should have read more of the other poss, but my info will hopefully help when u get further :-P

wiBo, no, no links. just experiance, when I started 5 years ago I got slackware 7.1 witht he 50 or so page essentals guide, it talked about the kernel and gave the basic 5 lines of instructions for compiling it, compiling my kernel was the first thing I ever did in linux cause I love features and customisation. so when 2.6.x-test came out I jumped on it, I did the make mrproper; make menuconfig and then make dep and it said there is no make dep just type make, so I did, then the modules stuff I did eventhough I may not need to. it just kinda made sence to me.

on another note, get your install cd's and install all the development tools rpm's. that should fix the /usr/include dependancies

Last edited by exodist; 04-01-2004 at 10:56 PM.
 
Old 04-01-2004, 10:57 PM   #10
wiBo
Member
 
Registered: Aug 2003
Location: Saint-Georges de Beauce
Distribution: Gentoo soon..
Posts: 193

Rep: Reputation: 30
Quote:
Originally posted by exodist
ok, I should have read more of the other poss, but my info will hopefully help when u get further :-P

wiBo, no, no links. just experiance, when I started 5 years ago I got slackware 7.1 witht he 50 or so page essentals guide, it talked about the kernel and gave the basic 5 lines of instructions for compiling it, compiling my kernel was the first thing I ever did in linux cause I love features and customisation. so when 2.6.x-test came out I jumped on it, I did the make mrproper; make menuconfig and then make dep and it said there is no make dep just type make, so I did, then the modules stuff I did eventhough I may not need to. it just kinda made sence to me.

on another note, get your install cd's and install all the development tools rpm's. that should fix the /usr/include dependancies

CooooOOOL

Thanks
 
Old 04-01-2004, 11:47 PM   #11
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Original Poster
Rep: Reputation: 49
Now things are getting strange.

I downloaded glibc-2.3.2-27.9.7.i386.rpm, tried to install it, and got the message package glibc-2.3.2-27.9.7 is already installed. I thought maybe there was a problem with it in some way, so I'd remove it, and then reinstall it. I tried using the command apt-get remove glibc, and after much work it reported:

0 packages upgraded, 0 newly installed, 1341 removed and 0 not upgraded.
Need to get 0B of archives.
After unpacking 4076MB disk space will be freed.

I didn't go through with that, as that would be about half of my machine!

Any suggestions as to what my next step should be would be greatly appreciated.

By the way, I installed EVERY package when I installed redhat, so there is nothing that I should be missing, development tools or otherwise.

Thanks,
JimBass

Last edited by JimBass; 04-01-2004 at 11:50 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



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel compilation error : in "make modules_install" b0nd Linux - Newbie 6 05-27-2015 01:53 PM
kernel compilation:throwing error related with sound during "make bzImage" b0nd Linux - Newbie 1 08-19-2005 09:16 AM
Kernel make bzImage error "undefined reference" w/ Prism2.5 USB driver under 2.6 joachimvb Mandriva 1 09-24-2004 07:43 PM
kernel 2.6.0 compliation problems: "parse error before 'va_list'" sohmc Linux - General 6 12-21-2003 04:45 AM
LFS 4.1: Stalled at Perl, "missing seperator" error from "make" SparceMatrix Linux From Scratch 1 06-07-2003 03:31 PM


All times are GMT -5. The time now is 04:12 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration