Hello:
I'm trying to upgrade the kernel on a generic linux system here (Used to be an old Caldera 2x box long ago). Currently its running 2.6.23.12 and I can change and recomppile from that source tree at will with no issues just fine.
Any thing else I download later than that fails with the following error set (for example the latest kernel-2.6.37 here will not even get through the make silentoldconfig:
# make silentoldconfig
HOSTCC scripts/basic/fixdep
In file included from /usr/local/include/netinet/in.h:212,
from /usr/local/include/arpa/inet.h:23,
from scripts/basic/fixdep.c:116:
/usr/local/include/bits/socket.h:304:24: error: asm/socket.h: No such
file or directory
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
The process I'm using to build is as follows (and it has worked up though everything until now:
cd /usr/src
wget
http://www.kernel.org/pub/linux/kern...-2.6.37.tar.gz
tar zxvf linux-2.6.37.tar.gz
chown -R root:root linux-2.6.37*
rm linux
ln -s /usr/src/linux-2.6.37 /usr/src/linux
cd /usr/src/linux
make clean
make mrproper
cp /usr/src/config-2.6.23.12 .config
make silentoldconfig
make
make modules_install
cp /boot/vmlinuz /boot/vmlinuz.old
cp /boot/System.map /boot/System.map.old
cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz
cp /usr/src/linux/System.map /boot/System.map
I'm an IT guy by trade and work with Red Hat daily but this has got me stumped here...I can do an ls -la of
/usr/local/include/bits/socket.h and its there so I'm n ot sure what's broken or how to fix it...I'm not a kernel expert of programmer however.
Thanks in advance,
George