b3nt at ukonline.co.uk
Wed Oct 26 03:45:07 PDT 2005
Tobias Lieber wrote:
>> I think that there's a small problem with installation of chapter 10
>> Linux-Libc-Headers-126.96.36.199 installation.
>> I creates a the file /usr/include/linux/config.h with the lines:
>> #error "Compilation aborted. Please read the FAQ for linux-libc-headers
>> #error "(can be found at
>> The FAQ says that most users want to empty this file but in gentoo and
>> my older LFS 4 build I've this in the config.h
>> #ifndef _LINUX_CONFIG_H
>> #define _LINUX_CONFIG_H
>> #include <linux/autoconf.h>
>> This config.h and autoconf.h come from the kernel build.
>> Question is what to do, empty or copy these two files from the kernel build.
>> BTW only noticed this when building Xorg.
> you should copy these files from your kernel-build.
Bullshit. You should never copy the raw headers from your kernel. You should have followed the instructions for installing xorg in BLFS. Xorg wouldn't be looking for the kernel headers at all if you'd used the command
sed -i -e "s@^#include <linux/config.h>@/* & */@" \
`grep -lr linux/config.h *`
More information about the lfs-dev