'make' errors while trying to configure a kernel
Hello all. I went to ftp://ftp.suse.com/pub/projects/kernel/kotd/x86_64/HEAD, downloaded the rpm 'kernel-source.x86_64.rpm', and installed it. However, when I attempt to start the configurator, I get a bunch of errors: presario:/usr/src/linux # make xconfig HOSTCC scripts/basic/fixdep In file included from /usr/include/bits/posix1_lim.h:153, from /usr/include/limits.h:144, from /usr/lib64/gcc/x86_64-suse-linux/4.0.2/include/limits.h:122, from /usr/lib64/gcc/x86_64-suse-linux/4.0.2/include/syslimits.h:7, from /usr/lib64/gcc/x86_64-suse-linux/4.0.2/include/limits.h:11, from scripts/basic/fixdep.c:113: /usr/include/bits/local_lim.h:36:26: error: linux/limits.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 I get similar errors with 'make menuconfig' and 'make' terminates. Now, this is the "SuSEfied" kernel source rpm! Am I doing something wrong? (Probably, but what?) The problem seems to be related to gcc. Fortunately, I have the SuSE 10 DVD. Should I downgrade my gcc? TIA for your time. Regards, Gus Fantanas -- Running 64-bit Linux on AMD64
Andi Kleen wrote:
/usr/include/bits/local_lim.h:36:26: error: linux/limits.h: No such file or directory
You are missing glibc-devel.
-Andi
Andy, Thank you for your advice! 'glibc-devel' *was* installed on my system. 'rpm -q' showed it was glibc-devel-2.3.5-40, ostensibly the same version as the one on my SuSE 10 DVD. This is the same version shown in the apt-get repositories, too. Realizing, from your advice, that there was some kind of trouble with 'glibc-devel', I forcibly (re)installed the version on my SuSE 10 DVD and I was able to configure and compile kernel 2.6.16 fine! I am not sure why this problem arose. I am running 2.6.16 as I am typing this on my Presario 3000Z 2.2 GHz 64-bit AMD laptop and everything (with the exception of suspend), USB, PCMCIA,CARDBUS, and all seems to be running fine by the way. CF -- Running 64-bit Linux on AMD64
participants (2)
-
Andi Kleen
-
Constantine 'Gus' Fantanas