Koozali.org: home of the SME Server

5.6 Kernel Compilation

nylo

5.6 Kernel Compilation
« on: April 07, 2003, 01:02:18 AM »
I'm recompiling the kernel for 5.6 due to the absence of a needed driver and I am having a touch of trouble, although I think it has to simply do with headers.

I've downloaded the following packages from RedHat 7.3 updates RPMS and original RPMS and installed them without much issue:

cpp-296-113i386.rpm  
gcc-296-113i386.rpm  
glibc-devel-225-43i386.rpm  
kernel-source-2418-277xi38.rpm  
make-3791-8i386.rpm ( I think it was already installed )
ncurses-devel-5.2-26.i386.rpm

However I was unable to find ANY kernel headers, except for glibc-kernel headers.  

I can config the kernel just fine, but in order to get it to start building I had to create some symlinks:
/usr/src/linux/include/linux,asm,asm-generic -> /usr/include/linux,asm,asm-generic

And then it starts building ok, but a while into it I start seeing similar errors such as:
/usr/src/linux-2.4.18-27.7.x/include/linux/socket.h:249: nondigits in number and not hexadecimal
/usr/src/linux-2.4.18-27.7.x/include/linux/socket.h:249: parse error before 9fb3dd30'

finally culminating with:
/usr/src/linux-2.4.18-27.7.x/include/net/dst.h:149: jiffies_Rsmp_0da02d67' undeclared (first use in this function)
In file included from cipe.h:69,
                 from module.c:15:
/usr/src/linux-2.4.18-27.7.x/include/net/sock.h: In function sk_filter_release':
/usr/src/linux-2.4.18-27.7.x/include/net/sock.h:934: warning: implicit declaration of function kfree_Rsmp_037a0cba'
/usr/src/linux-2.4.18-27.7.x/include/net/sock.h: In function sock_orphan':
/usr/src/linux-2.4.18-27.7.x/include/net/sock.h:1009: do_softirq_Rsmp_f0a529b7' undeclared (first use in this function)
/usr/src/linux-2.4.18-27.7.x/include/net/sock.h: In function sock_graft':
/usr/src/linux-2.4.18-27.7.x/include/net/sock.h:1018: do_softirq_Rsmp_f0a529b7' undeclared (first use in this function)
/usr/src/linux-2.4.18-27.7.x/include/net/sock.h: In function sock_recv_timestamp':
/usr/src/linux-2.4.18-27.7.x/include/net/sock.h:1266: warning: implicit declaration of function put_cmsg_Rsmp_f39bf4d9'
module.c: In function cipe_check_kernel':
module.c:73: warning: implicit declaration of function printk_Rsmp_1b7d4074'
make[3]: *** [module.o] Error 1

Am I missing some includes?  Or is there a problem with some modules I'm mixing and matching?  The config is nearly exactly as the redhat rpm config kernel-2.4.18-i686-smp.config file.

If anyone could help, I'd appreciate it!