Operating Systems > Linux and UNIX
Error compiling kernel 2.6.16
mobrien_12:
[mobrien@hariel ~]$ rpm -qf /usr/include/bits/socket.h
glibc-headers-2.3.6-3
Do you have your glibc headers installed?
cymon:
output from locate limits.h
--- Code: ---/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
--- End code ---
piratePenguin:
--- Quote from: cymon ---output from locate limits.h
--- Code: ---/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
--- End code ---
--- End quote ---
Try running this:
--- Code: ---CFLAGS="-I/usr/src/linux-2.6.16/include/" make menuconfig
--- End code ---
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.
solemnwarning:
Also, make sure you have got the libc6-dev installed, looks like you might be missing it
cymon:
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.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version