LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Compilation Problem - ASUS LAN Driver (https://www.linuxquestions.org/questions/fedora-35/compilation-problem-asus-lan-driver-420989/)

ShayA 03-02-2006 12:23 PM

Compilation Problem - ASUS LAN Driver
 
I installed Fedora FC4 x86_64.
Hardware:
ASUS P5V800
Intell 3.Ghz 64 bit.
1 40GB IDE drive,
1 80GB SATA drive.

At the point Fedora is not recognizing the SATA drive. I know this is a known issue and I should install the right driver.

However, my problem right now is with the on board LAN adapter.
In order to use it I need to compile the LAN driver.
I download the kernel source code. I only found kernel-2.6.11-1.1369_FC4.src.rpm while my kernel is FC4smp so I don't know if its ok.
I had a problem in the compilation process that asked for the Module.symvers file.
I read the following article www-raoul.shacknet.nu/2005/12/14/the-complete-fedora-kernel-headers/ and used the Module.symvers as can be found in the kernel-devel ( on the installation DVD).

I did not succeed to compile it. Below you can see the errors.

Quote:

make -C /usr/src/linux-2.6.11 SUBDIRS=/root/temp/4.39 modules
make[1]: Entering directory `/usr/src/linux-2.6.11'
CC [M] /root/temp/4.39/rhine_main.o
/root/temp/4.39/rhine_main.c: In function ‘rhine_remove1’:
/root/temp/4.39/rhine_main.c:304: warning: ignoring return value of ‘pci_enable_wake’, declared with attribute warn_unused_result
/root/temp/4.39/rhine_main.c:305: warning: ignoring return value of ‘pci_set_power_state’, declared with attribute warn_unused_result
/root/temp/4.39/rhine_main.c: In function ‘rhine_ethtool_ioctl’:
/root/temp/4.39/rhine_main.c:2751: error: ‘struct pci_dev’ has no member named ‘slot_name’
/root/temp/4.39/rhine_main.c: In function ‘rhine_suspend’:
/root/temp/4.39/rhine_main.c:2924: error: too many arguments to function ‘pci_save_state’
/root/temp/4.39/rhine_main.c:2933: warning: ignoring return value of ‘pci_enable_wake’, declared with attribute warn_unused_result
/root/temp/4.39/rhine_main.c:2934: warning: ignoring return value of ‘pci_set_power_state’, declared with attribute warn_unused_result
/root/temp/4.39/rhine_main.c:2939: warning: ignoring return value of ‘pci_set_power_state’, declared with attribute warn_unused_result
/root/temp/4.39/rhine_main.c: In function ‘rhine_resume’:
/root/temp/4.39/rhine_main.c:2958: error: too many arguments to function ‘pci_restore_state’
/root/temp/4.39/rhine_main.c:2956: warning: ignoring return value of ‘pci_set_power_state’, declared with attribute warn_unused_result
/root/temp/4.39/rhine_main.c:2957: warning: ignoring return value of ‘pci_enable_wake’, declared with attribute warn_unused_result
make[2]: *** [/root/temp/4.39/rhine_main.o] Error 1
make[1]: *** [_module_/root/temp/4.39] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.11'
make: *** [default] Error 2


Is it possible that I need to use kernel-2.6.11-1.1369_FC4smp.src.rpm . I did not find such.
Is it ok to use the Module.symvers from the kernel-devel , I did not find any other source for it.



I will really appreciate your help on this.
Thank you.

jcliburn 03-02-2006 08:50 PM

You usually don't need the full kernel source in order to build a kernel module; you need only the kernel-devel package, or in your case, the kernel-smp-devel package.

Also, why not fully update your system first with "yum update", then you'll have the current kernel-smp-devel available for use.

What is the output of "dmesg | grep eth"?

ShayA 03-03-2006 12:36 AM

how can I run a full update if I don't have an internet connection ?
The Ethernet card was not defined at this point.

ShayA 03-03-2006 02:18 AM

Hello again...

I installed Fedora Core 5 Test3.
Its look like this release can handle both the on board LAN and the sound card.
The only problem is the the mouse is "jumping", meaning when you use it it doesn't move smoothly.

I am running a full update with yum hopefully that bug was solved.
The official release will be published on March 15 then I will stick with Core 5.

As for the SATA support I did not checked it yet. Yum in still running :)

Thank you guys.


All times are GMT -5. The time now is 03:01 PM.