This is a discussion on Compiling Drivers within the Linux Operating System forums, part of the Unix Operating Systems category; --> Hi there all. This may be a little offtopic, and if so - I apologise in advance I installed ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi there all. This may be a little offtopic, and if so - I apologise in advance I installed debian (off the woody distro) with kernel 2.2 just recently. I have upgraded the kernel to 2.4.20 I am trying to compile some NIC drivers, but they complain that the definition of kernel_thread in /usr/include/asm/processor.h is different to the definition in /usr/src/kernel-source-2.4.20/include/linux/sched.h. I have checked the two files in question, and the declarations ARE different. One is extern int (processor.h), and one is extern long (sched.h). is this correct, and if so, how do I get my NIC drivers to compile? Regards Jo |
| ||||
| On Wed, 22 Oct 2003 16:40:07 GMT, in article <Hpylb.610285$cF.280566@rwcrnsc53>, Jo Pitts wrote: > I have upgraded the kernel to 2.4.20 On the chance that you might not get any direct fixes, I'll insert my comments. > I am trying to compile some NIC drivers, but they complain that the > definition of kernel_thread in /usr/include/asm/processor.h is different to > the definition in /usr/src/kernel-source-2.4.20/include/linux/sched.h. What commands have you issued to build the new kernel or modules? What is the error message? > I have checked the two files in question, and the declarations ARE > different. One is extern int (processor.h), and one is extern long > (sched.h). > is this correct, and if so, how do I get my NIC drivers to compile? I removed my 2.4.20 source directory over the weekend; my 2.4.22 source has the same declarations as the ones you mention. It compiles without errors but with numerous warnings, as always. |