Operating Systems > Linux and UNIX

Error compiling kernel 2.6.16

(1/5) > >>

cymon:
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:
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..

cymon:

--- Code: ---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

--- End code ---


There it is.

piratePenguin:
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.

cymon:
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.

Navigation

[0] Message Index

[#] Next page

Go to full version