unable to make dep; limit.h
I hope someone can point me in the right direction. I tried to compile a new kernel (version 2.4.20) and I ended up with the following error message:
[root@jetty linux-2.4.20]# make dep
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/mkdep scripts/mkdep.c In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:30,
from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/limits.h:117,
from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/syslimits.h:7,
from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/limits.h:11,
from scripts/mkdep.c:35:/usr/include/bits/local_lim.h:27: linux/limits.h: No such file or directory
make: *** [scripts/mkdep] Error 1
I currently run Linux kernel 2.2.22 on a pentium laptop and RedHat 6.2 and I would appreciate any help or suggestions as to where to look. Thank you!
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
I didn't see any other replies to this. So while I'm sort of guessing here, I'm reply in the belief that my suggestion is at least better than nothing.
I notice that you are doing the compile from "linux-2.4.20". Normally, scripts expect to find kernel source in /usr/src/linux . If you do not have it in such a directory (typically, you would actually put it in /usr/src/linux-2.4.20 and make a symlink), then the script that looks for "/usr/src/linux/include/linux/limits.h" would be unable to find it ... as the last line of the error report you quote indicates (but without the full include path).
I'm not certain that this is the source of your problem, but it is probably worth a look.
Quoted 16 lines · Richard Spencer
I hope someone can point me in the right direction. I tried to compile a new kernel (version 2.4.20) and I ended up with the following error message:
[root@jetty linux-2.4.20]# make dep
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -oscripts/mkdepscripts/mkdep.cIn file included from/usr/include/bits/posix1_lim.h:126,from /usr/include/limits.h:30, from
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/limits.h:117,
from/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/syslimits.h:7,
from/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/limits.h:11,
fromscripts/mkdep.c:35:/usr/include/bits/local_lim.h:27:linux/limits.h: No such file or directory
make: *** [scripts/mkdep] Error 1
Quoted 1 line
I currently run Linux kernel 2.2.22 on a pentium laptop and RedHat 6.2 and I would appreciate any help or suggestions as to where to look. Thank you!
--
-------------------------------------------"Never tell me the odds!"--------
Ray Olszewski -- Han Solo
Palo Alto, California, USA [email protected]
-------------------------------------------------------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 11 lines · Ray Olszewski
I didn't see any other replies to this. So while I'm sort of guessing here, I'm reply in the belief that my suggestion is at least better than nothing.
I notice that you are doing the compile from "linux-2.4.20". Normally, scripts expect to find kernel source in
/usr/src/linux. If you do not have it in such a directory (typically, you would actually put it in/usr/src/linux-2.4.20and make a symlink), then the script that looks for "/usr/src/linux/include/linux/limits.h" would be unable to find it ... as the last line of the error report you quote indicates (but without the full include path).
Quoted 3 lines
I'm not certain that this is the source of your problem, but it is probably worth a look.
Ray,
if you download the full tar for a current kernel (well, 2.4 and 2.5
anyway), you should find that it extracts into linux-2.4.20 (or wherever), so its own scripts *ought* to work. I wonder if Richard has inadvertently deleted /usr/src/linux in preparation for the build, in which case recreating it might work (but if it's necessary, it kind of sounds like it should contain the headers used to build glibc).
Ken
Signature · 11 lines
Out of the darkness a voice spake unto me, saying "smile, things could be worse". So I smiled, and lo, things became worse. - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 16 lines · Richard Spencer
I hope someone can point me in the right direction. I tried to compile a new kernel (version 2.4.20) and I ended up with the following error message:
[root@jetty linux-2.4.20]# make dep
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -oscripts/mkdepscripts/mkdep.cIn file included from/usr/include/bits/posix1_lim.h:126,from /usr/include/limits.h:30, from
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/limits.h:117, from/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/syslimits.h:7, from/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/limits.h:11, fromscripts/mkdep.c:35:/usr/include/bits/local_lim.h:27:linux/limits.h: No such file or directory
make: *** [scripts/mkdep] Error 1
Quoted 2 lines
I currently run Linux kernel 2.2.22 on a pentium laptop and RedHat 6.2 and I would appreciate any help or suggestions as to where to look. Thank you!
To add to Ray's advice, try running make mrproper before anthing else, it only needs to be run once after installing the source.
Before you do that now, copy .config into /usr/src otherwise it will get deleted.
mrproper creates the needed symlinks.
Signature · 9 lines
Regards Richard [email protected] http://people.zeelandnet.nl/pa3gcu/ - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs