Re: Compiling RTL82139 module?


Subject: Re: Compiling RTL82139 module?
From: Aake Svensson (aakesve@algonet.se)
Date: Tue Jul 17 2001 - 21:44:46 MDT


Yes, i guess you're right, i've read a lot about Realtek chips and
Linux since i bought the Unex NIC and it seems very difficult getting
it to work under Linux. However, the card works great under Macos.
But i saw compiling a new driver as a challenge and a way to learn
how to compile, i mean, one of the great things with Linux is to be
able to get source code and compile it yourself. But as so very often
with a Mac, you can't take anything for granted!

But i think i've narrowed the problem down to one or two header files
(*.h) that are wrong. Since there are several versions of some header
files spread thru 3-4 directories i will eventually sort it out, i
hope.

I guess one of the main problems might be that i didn't install the
developer installation, and therefore didn't get all the directories
and links needed for compilation. But that will sort itself out in
time as well.

Thanks for your time and attention, Sean!
I'll post my progress and solutions here, if and when I get there!

Best Regards,

Åke Svensson
..will compile someday...

>Well,
>
>If those didn't work, I would suggest either getting a new NIC card or
>compiling a kernel with the rtl8139 in it.
>
>--- Sean
>
>On Mon, 16 Jul 2001, Aake Svensson wrote:
>
>> Bare with me, Newbie as I am, neither the compile commands at the end
>> of the file rtl8139.c, nor the commands you suggested works. Both
>> alternatives produce the "members missing" warning.
>>
>> In rtl8139.c it is written:
>> gcc -DMODULE -Wall -Wstrict-prototypes -O6 -c rtl8139.c
>> but without the command: "-I usr/src/linux-2.2.4/include/ "
>> pointing to were the source kernel rpm installed the header files,
>> gcc don't find them at all. And with your suggestion about
>> -DMODVERSIONS it complains about "no file DMODVERSIONS".
>>
>> >% gcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 \
>> >-c rtl8139.c '[ -f /usr/include/linux/modversions.h ] && echo \
>> -DMODVERSIONS'
>>
>> I left out the slashes and used my path to the header files, hope
>>that was OK?
>>
>> Best Regards,
>>
>> ‰ke Svensson, still learning, still curious



This archive was generated by hypermail 2a24 : Tue Jul 17 2001 - 20:57:28 MDT