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

mobrien_12

  • VIP
  • Member
  • ***
  • Posts: 2,138
  • Kudos: 711
    • http://www.geocities.com/mobrien_12
Re: Error compiling kernel 2.6.16
« Reply #15 on: 20 June 2006, 03:17 »
[mobrien@hariel ~]$ rpm -qf /usr/include/bits/socket.h
glibc-headers-2.3.6-3


Do you have your glibc headers installed?
In brightest day, in darkest night, no evil shall escape my sight....

cymon

  • Member
  • **
  • Posts: 354
  • Kudos: 172
Re: Error compiling kernel 2.6.16
« Reply #16 on: 20 June 2006, 04:27 »
output from locate limits.h

Code: [Select]
/root/linux-2.6.8/include/asm-arm26/limits.h
/root/linux-2.6.8/include/asm-arm/limits.h
/root/linux-2.6.8/include/asm-i386/mach-default/irq_vectors_limits.h
/root/linux-2.6.8/include/asm-i386/mach-generic/irq_vectors_limits.h
/root/linux-2.6.8/include/asm-i386/mach-summit/irq_vectors_limits.h
/root/linux-2.6.8/include/linux/limits.h
/usr/include/asm-i486/mach-default/irq_vectors_limits.h
/usr/include/asm-i486/mach-generic/irq_vectors_limits.h
/usr/include/asm-i486/mach-summit/irq_vectors_limits.h
/usr/include/limits.h
/usr/lib/gcc-lib/i486-linux-gnu/3.3.6/include/limits.h
/usr/lib/gcc-lib/i486-linux-gnu/3.3.6/include/syslimits.h
/usr/src/linux-2.6.16/include/asm-arm26/limits.h
/usr/src/linux-2.6.16/include/asm-arm/limits.h
/usr/src/linux-2.6.16/include/asm-i386/mach-default/irq_vectors_limits.h
/usr/src/linux-2.6.16/include/asm-i386/mach-generic/irq_vectors_limits.h
/usr/src/linux-2.6.16/include/asm-i386/mach-summit/irq_vectors_limits.h
/usr/src/linux-2.6.16/include/linux/limits.h

piratePenguin

  • VIP
  • Member
  • ***
  • Posts: 3,027
  • Kudos: 775
    • http://piratepenguin.is-a-geek.com/~declan/
Re: Error compiling kernel 2.6.16
« Reply #17 on: 20 June 2006, 05:24 »
Quote from: cymon
output from locate limits.h

Code: [Select]
/root/linux-2.6.8/include/asm-arm26/limits.h
/root/linux-2.6.8/include/asm-arm/limits.h
/root/linux-2.6.8/include/asm-i386/mach-default/irq_vectors_limits.h
/root/linux-2.6.8/include/asm-i386/mach-generic/irq_vectors_limits.h
/root/linux-2.6.8/include/asm-i386/mach-summit/irq_vectors_limits.h
/root/linux-2.6.8/include/linux/limits.h
/usr/include/asm-i486/mach-default/irq_vectors_limits.h
/usr/include/asm-i486/mach-generic/irq_vectors_limits.h
/usr/include/asm-i486/mach-summit/irq_vectors_limits.h
/usr/include/limits.h
/usr/lib/gcc-lib/i486-linux-gnu/3.3.6/include/limits.h
/usr/lib/gcc-lib/i486-linux-gnu/3.3.6/include/syslimits.h
/usr/src/linux-2.6.16/include/asm-arm26/limits.h
/usr/src/linux-2.6.16/include/asm-arm/limits.h
/usr/src/linux-2.6.16/include/asm-i386/mach-default/irq_vectors_limits.h
/usr/src/linux-2.6.16/include/asm-i386/mach-generic/irq_vectors_limits.h
/usr/src/linux-2.6.16/include/asm-i386/mach-summit/irq_vectors_limits.h
/usr/src/linux-2.6.16/include/linux/limits.h
Try running this:
Code: [Select]
CFLAGS="-I/usr/src/linux-2.6.16/include/" make menuconfig

BTW, I have the same glibc on Ubuntu and I compiled 2.6.17 yesterday (it has alot of cool new stuff, including a driver for Airport Extreme). If you're using menuconfig you'll need to have the ncurses5-dev package installed too.

If, like me, you need some non-standard kernel modules e.g. for your wireless card, you'll need to compile/install them yourself when you boot up into your new kernel. The Debian ones won't work.
"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.

solemnwarning

  • Member
  • **
  • Posts: 747
  • Kudos: 338
    • http://www.solemnwarning.net
Re: Error compiling kernel 2.6.16
« Reply #18 on: 23 June 2006, 15:37 »
Also, make sure you have got the libc6-dev installed, looks like you might be missing it
-----BEGIN GEEK CODE BLOCK-----
 Version: 3.1
 GCS/CM d- s+:+ a--- C++ UL++++>$ P+ L+++ !E W++ !N !o !K-- w !O !M !V PS+ PE- !Y !PGP !t !5 !X !R tv b+ DI+ !D G e- h !r y-
 ------END GEEK CODE BLOCK------

cymon

  • Member
  • **
  • Posts: 354
  • Kudos: 172
Re: Error compiling kernel 2.6.16
« Reply #19 on: 25 June 2006, 00:56 »
Crap, now I'm getting errors with apt.

After running the cflags, then I try make menuconfig.
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 func
tion)
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 func
tion)
scripts/basic/fixdep.c:310: warning: unused variable `s'
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
[/code]

Apt gives me a bunch of connection refused errors when I do apt-get update.

piratePenguin

  • VIP
  • Member
  • ***
  • Posts: 3,027
  • Kudos: 775
    • http://piratepenguin.is-a-geek.com/~declan/
Re: Error compiling kernel 2.6.16
« Reply #20 on: 25 June 2006, 00:59 »
is libc6-dev installed?
the connection refused errors could be temporary problems on the server-side..
"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 #21 on: 25 June 2006, 01:03 »
libc6-dev is at the latest version.

Damn it, all this just for the nVidia drivers.  But it says there's no kernel interface for my kernel, it needed the 2.6.8 source, I downloaded that and it said it needed to be configured.  Tried configuring it, that didn't work.

piratePenguin

  • VIP
  • Member
  • ***
  • Posts: 3,027
  • Kudos: 775
    • http://piratepenguin.is-a-geek.com/~declan/
Re: Error compiling kernel 2.6.16
« Reply #22 on: 25 June 2006, 01:12 »
Quote from: cymon
libc6-dev is at the latest version.

Damn it, all this just for the nVidia drivers.  But it says there's no kernel interface for my kernel, it needed the 2.6.8 source, I downloaded that and it said it needed to be configured.  Tried configuring it, that didn't work.
Doesn't it work with linux-kernel-headers installed?

If you need the source code I think it looks for it in /lib/modules/`uname -r`/source - which you should setup to be a symlink to the kernel source directory.
Code: [Select]
ln -s /path/to/kernel/sourcecode /lib/modules/`uname -r`/source
"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.

piratePenguin

  • VIP
  • Member
  • ***
  • Posts: 3,027
  • Kudos: 775
    • http://piratepenguin.is-a-geek.com/~declan/
Re: Error compiling kernel 2.6.16
« Reply #23 on: 25 June 2006, 01:15 »
In fact I think you might want to look into the linux-restricted-modules package...
"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.

H_TeXMeX_H

  • Member
  • **
  • Posts: 1,988
  • Kudos: 494
    • http://draconishinobi.50webs.com/
Re: Error compiling kernel 2.6.16
« Reply #24 on: 28 July 2006, 20:15 »
Well I recently compiled my own kernel, but it was pretty easy cuz I used an src.rpm version ... all I had to do is

rpmbuild --rebuild kernel-version###-src.rpm

or if you need to make changes (like I had to) you could make an rpm out of a tgz of the kernel with:

rpmbuild -ta --target=i686 kernel-version####.tar.gz

of course you may need a spec file for it unless you get an rpm version of it and extract it, then repackage it as tgz

more on rpm stuff:

http://www.linux.com/howtos/Font-HOWTO/rpm.shtml