Glibc Unable to Find Kernel Headers
I'm currently configuring Glibc for LFS under a Gentoo 2005.0 system. It is unable to find my kernel headers under /tools/include:
Code:
lfs:/mnt/lfs/glibc-build$ glibc-2.3.5/configure --prefix=/tools --disable-profile --enable-add-ons --enable-kernel=2.6.0 --with-binutils=/tools/bin --without-gd --with-headers=/tools/include --without-selinux Why does Glibc not like my kernel headers? |
Te last output line suggests :
Code:
To use kernel headers not from /usr/include/linux, use the configure option --with-headers |
i also have the same problem,
i use the command --with-headers=/tools/include so this should be right but the /tools/include directory is totaly empty. |
because the scrpts in the build process are looking for your headers in uname-r ok so that means it is pointing to /lib/modules/uname -r/build if not found.
/lib/modules/uname -r/source if not found /usr/src/linux witch are all symlink to /usr/include/asm if you are just using headers instead of a full source. and want to keep it that way make sure your symlinks in /lib/modules/uname -r/ build or source point to the /usr/src/headers. when I just first started using linux in 1997 this was my wake up to what the system is about. you would be better off installing a full source that matches your vmlinuz (kernel) the other issue you have is the kernel as of your out put is to old and was compiled with a gcc under 3.2. if this is false then you may need to install the a new version of glibc. and glibc2. I realize this can be frustrating hang in there . so if all said and done you have a full source and everything is correct and it still fails to find the header files. this tell me you have gone from a older kernel to the newer than 2.6.23 and all the patches will not help this problem. the reason why was a big kernel change. from a arch i386 to the x86 and they now symlink them but the big issue never could be fixed if any one could get it to say to compile drivers let me know because after building kernel after kernel and when they made the big change of the x86 after all the asm symlinks to headers every thing I could think of could not satisfy the header problem it was a script problem. so. what the big drag was I wanted the 2.6.23.9 because of the cool built in modules but sorry major kernel restructure. So I messaged Pat Volkerding About this last year and as you can tell slackware 12.0 and 12.1 there is a big change in the init scripts and the x86 thing. This may not help you but at least you know it is not you. making mistakes. |
Quote:
|
at stage 5.6 they are telling to
Code:
make INSTALL_HDR_PATH=dest headers_install cp -rv dest/include* /tools/include Code:
GNU Make 3.81 i never put -v version into the first rule. i however did -rv like the lfs website sais so at 5.6 http://www.linuxfromscratch.org/lfs/...x-headers.html i guess i get version output from make |
[QUOTE=R03L;3385334]at stage 5.6 they are telling to
Code:
make INSTALL_HDR_PATH=dest headers_install cp -rv dest/include* /tools/include i needed to Code:
make INSTALL_HDR_PATH=dest headers_install Code:
cp -rv dest/include* /tools/include no glibc is compiling whitout a problem,. |
All times are GMT -5. The time now is 12:26 AM. |