Author Topic: Error compiling kernel 2.6.16  (Read 3168 times)

cymon

  • Member
  • **
  • Posts: 354
  • Kudos: 172
Error compiling kernel 2.6.16
« on: 15 June 2006, 04:43 »
After unpacking the sources into /usr/src/linux-2.6.16 and cleaning up the build directory with make mrproper, I get this error message when I go to configure it with make menuconfig.  This also comes up with make xconfig and make config. Sadly, xterm doesn't allow cut and paste.

make: *** [scripts_basic] Error 2

I don't know what that means, but if it's fixable, I'd like to try and fix it.

piratePenguin

  • VIP
  • Member
  • ***
  • Posts: 3,027
  • Kudos: 775
    • http://piratepenguin.is-a-geek.com/~declan/
Re: Error compiling kernel 2.6.16
« Reply #1 on: 15 June 2006, 17:54 »
You can copy and paste with xterm. Select the text and it'll be copied, then middle click to paste.
If you could give us the whole output we'd probably have a better chance of knowing what's up..
"What you share with the world is what it keeps of you."
 - Noah And The Whale: Give a little love



a poem by my computer, Macintosh Vigilante
Macintosh amends a damned around the requested typewriter. Macintosh urges a scarce design. Macintosh postulates an autobiography. Macintosh tolls the solo variant. Why does a winter audience delay macintosh? The maker tosses macintosh. Beneath female suffers a double scum. How will a rat cube the heavier cricket? Macintosh calls a method. Can macintosh nest opposite the headache? Macintosh ties the wrong fairy. When can macintosh stem the land gang? Female aborts underneath macintosh. Inside macintosh waffles female. Next to macintosh worries a well.

cymon

  • Member
  • **
  • Posts: 354
  • Kudos: 172
Re: Error compiling kernel 2.6.16
« Reply #2 on: 15 June 2006, 19:22 »
Code: [Select]
statenburg:/home/ben# cd /usr/src/linux-2.6.16
statenburg:/usr/src/linux-2.6.16# make menuconfig
  HOSTCC  scripts/basic/fixdep
In file included from /usr/include/bits/posix1_lim.h:153,
                 from /usr/include/limits.h:144,
                 from /usr/lib/gcc-lib/i486-linux-gnu/3.3.6/include/limits.h:122,
                 from /usr/lib/gcc-lib/i486-linux-gnu/3.3.6/include/syslimits.h:7,
                 from /usr/lib/gcc-lib/i486-linux-gnu/3.3.6/include/limits.h:11,
                 from scripts/basic/fixdep.c:113:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
In file included from /usr/include/sys/socket.h:35,
                 from /usr/include/netinet/in.h:24,
                 from /usr/include/arpa/inet.h:23,
                 from scripts/basic/fixdep.c:115:
/usr/include/bits/socket.h:304:24: asm/socket.h: No such file or directory
scripts/basic/fixdep.c: In function `use_config':
scripts/basic/fixdep.c:214: error: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:214: error: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:214: error: for each function it appears in.)
scripts/basic/fixdep.c:214: warning: unused variable `s'
scripts/basic/fixdep.c: In function `parse_dep_file':
scripts/basic/fixdep.c:310: error: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:310: warning: unused variable `s'
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2


There it is.

piratePenguin

  • VIP
  • Member
  • ***
  • Posts: 3,027
  • Kudos: 775
    • http://piratepenguin.is-a-geek.com/~declan/
Re: Error compiling kernel 2.6.16
« Reply #3 on: 15 June 2006, 23:46 »
Install linux-kernel-headers, I think.

EDIT: http://kernel.org/
You might prefer to use 2.6.16.20, it'll have ALOT of bugfixes (not all will apply to your system/setup, obviously) - you could download the patch, uncompress it and run 'sudo patch -p1 < /path/to/patch-2.6.16.20' (IIRC), if you want.
"What you share with the world is what it keeps of you."
 - Noah And The Whale: Give a little love



a poem by my computer, Macintosh Vigilante
Macintosh amends a damned around the requested typewriter. Macintosh urges a scarce design. Macintosh postulates an autobiography. Macintosh tolls the solo variant. Why does a winter audience delay macintosh? The maker tosses macintosh. Beneath female suffers a double scum. How will a rat cube the heavier cricket? Macintosh calls a method. Can macintosh nest opposite the headache? Macintosh ties the wrong fairy. When can macintosh stem the land gang? Female aborts underneath macintosh. Inside macintosh waffles female. Next to macintosh worries a well.

cymon

  • Member
  • **
  • Posts: 354
  • Kudos: 172
Re: Error compiling kernel 2.6.16
« Reply #4 on: 16 June 2006, 05:08 »
I got the tarball of the source directly from kernel.org.  Also, this is my first kernel compile, so I'd like to keep this simple, without a lot of patching.

Apt has linux-kernel-headers at latest version.

piratePenguin

  • VIP
  • Member
  • ***
  • Posts: 3,027
  • Kudos: 775
    • http://piratepenguin.is-a-geek.com/~declan/
Re: Error compiling kernel 2.6.16
« Reply #5 on: 16 June 2006, 20:52 »
The kernel headers are installed?
Maybe something in this thread will help: http://www.linuxforums.org/forum/linux-kernel/22858-make-xconfig-error.html (try making the link)
"What you share with the world is what it keeps of you."
 - Noah And The Whale: Give a little love



a poem by my computer, Macintosh Vigilante
Macintosh amends a damned around the requested typewriter. Macintosh urges a scarce design. Macintosh postulates an autobiography. Macintosh tolls the solo variant. Why does a winter audience delay macintosh? The maker tosses macintosh. Beneath female suffers a double scum. How will a rat cube the heavier cricket? Macintosh calls a method. Can macintosh nest opposite the headache? Macintosh ties the wrong fairy. When can macintosh stem the land gang? Female aborts underneath macintosh. Inside macintosh waffles female. Next to macintosh worries a well.

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
Re: Error compiling kernel 2.6.16
« Reply #6 on: 18 June 2006, 00:05 »
Your using debian eh?

Why not just use apt to upgrade your kernel.

Anyways...when i compiled a kernel in debian, I couldnt get menuconfig or xconfig to work either. I ended up copying my config file from my fedora machine and using "make config" to configure anything that i wanted different.

Although i had a completely different error i think.


EDIT: actually, yea that wont work.

Erm... there is some files the error says it cant find... try to locate them...
# locate limits.h
Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

H_TeXMeX_H

  • Member
  • **
  • Posts: 1,988
  • Kudos: 494
    • http://draconishinobi.50webs.com/
Re: Error compiling kernel 2.6.16
« Reply #7 on: 18 June 2006, 04:20 »
Why compile anything when you don't have to ... especially a kernel

Orethrius

  • Member
  • **
  • Posts: 1,783
  • Kudos: 982
Re: Error compiling kernel 2.6.16
« Reply #8 on: 18 June 2006, 05:50 »
Quote from: H_TeXMeX_H
Why compile anything when you don't have to ... especially a kernel

 Performance gains?  Smaller kernel?

Proudly posted from a Gentoo Linux system.

Quote from: Calum
even if you're renting you've got more rights than if you're using windows.

System Vitals

cymon

  • Member
  • **
  • Posts: 354
  • Kudos: 172
Re: Error compiling kernel 2.6.16
« Reply #9 on: 18 June 2006, 06:54 »
Quote from: H_TeXMeX_H
Why compile anything when you don't have to ... especially a kernel


Mainly because I'd like to know how to do it.  Unless you'd like me to go back to Windows?

pofnlice

  • Member
  • **
  • Posts: 999
  • Kudos: 650
Re: Error compiling kernel 2.6.16
« Reply #10 on: 18 June 2006, 13:20 »
I found that when I was fuckering up my suse distro with all the extras to put on, a kernel recompile fixed a lot of what I was fuckin up. I even got step by step help from Voidmain. I bet worker201 remembers that! I had fuckered Suse up so much, I actually had to reinstall it...Void was impressed, he said he had never seen that before! Worker201 couldn't  believe it either..
Quote from: "Orethrius"
After all, running Windows without a decent anti-virus is like walking through a Red Light District after eating five metric tonnes of Viagra.

H_TeXMeX_H

  • Member
  • **
  • Posts: 1,988
  • Kudos: 494
    • http://draconishinobi.50webs.com/
Re: Error compiling kernel 2.6.16
« Reply #11 on: 18 June 2006, 18:32 »
Quote from: cymon
Mainly because I'd like to know how to do it.  Unless you'd like me to go back to Windows?

That's respectable ... but don't be too flustered if it don't work. You'll probably need someone to take you through step by step like pofnlice :)

I don't quite see what this has to do with Window$ ... I never compiled my kernel ... nor would I want to ... it's a pain in the ass

mobrien_12

  • VIP
  • Member
  • ***
  • Posts: 2,138
  • Kudos: 711
    • http://www.geocities.com/mobrien_12
Re: Error compiling kernel 2.6.16
« Reply #12 on: 18 June 2006, 22:40 »
Building a kernel is a really good thing to do even just for the experience.  

The first thing i'd suggest is to build a kernel  from the stock kernel sources that come with the distro.   Then you can make sure you have all the dependencies and the method right.  Just get it, and the modules, built.... you don't have to use it.

Then try the latest kernel.org sources.

Also, make sure to check the readme from kernel.org.  They sometimes require you to update parts of your system before it will build.
In brightest day, in darkest night, no evil shall escape my sight....

mobrien_12

  • VIP
  • Member
  • ***
  • Posts: 2,138
  • Kudos: 711
    • http://www.geocities.com/mobrien_12
Re: Error compiling kernel 2.6.16
« Reply #13 on: 18 June 2006, 22:44 »
By the way, 2.6.17 came out today :)
In brightest day, in darkest night, no evil shall escape my sight....

worker201

  • Global Moderator
  • Member
  • ***
  • Posts: 2,810
  • Kudos: 703
    • http://www.triple-bypass.net
Re: Error compiling kernel 2.6.16
« Reply #14 on: 19 June 2006, 03:54 »
A quick Google search suggests that your glibc is not up to date:
http://www.google.com/search?q=%2Fusr%2Finclude%2Fbits%2Fsocket.h&start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.mozilla:en-US:official

I can see how this might be a problem.  Fortunately, once things work properly, building a kernel is really not that hard.  I learned how to do it from Slackware:
http://www.slackbook.org/html/system-configuration-kernel.html#SYSTEM-CONFIGURATION-KERNEL-COMPILE

Should be similar on your system.