Unix Technical Forum

Compiling Drivers

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-17-2008, 08:34 AM
Jo Pitts
 
Posts: n/a
Default Compiling Drivers

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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-17-2008, 08:34 AM
Jules Dubois
 
Posts: n/a
Default Re: Compiling Drivers

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:12 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com