Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 08-08-2004, 05:35 PM   #1
LQ Newbie
Registered: Aug 2004
Posts: 3

Rep: Reputation: 0
vmlinuz.version.h problem compiling D-Link PCI ethernet adapter driver


I am trying to install a D-Link PCI ethernet adapter onto my Mandrake 9.1 system running kernel version 2.4.21.

The cd comes with linux drivers that are compatible with kernel version 2.2.xx and 2.4.xx and the instructions say to compile the driver with a comand like:

gcc -DMODULE -Wall -Wstrict-prototypes - 06 -c dfe528.c

When I try to run this comile I get some errors saying (among other things):

You should not include /usr/include/{linux,asm}/ header files directly for compilation of kernel modules.

It then advises to:
Copy /boot/vmlinuz.version.h to
/lib/modules/'uname -r'/build/include/linux/version.h
then change the compiler options to include the revised file.

This is where I get the problem. During the copy it says:
cp: cannot stat '/boot/vmlinuz.version.h' : No such file or directory

I'm hoping that this is something obvious that i have missed, is someone can point it out to me I would be much obliged.

Old 08-08-2004, 09:40 PM   #2
Senior Member
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 243Reputation: 243Reputation: 243
The file is actually /usr/src/linux/include/linux/version.h in my system
Old 08-09-2004, 03:47 PM   #3
LQ Newbie
Registered: Aug 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks Cedrik,

You are correct, my file was in /usr/src/linux-2.4.21-0.13mdk/include/linux/version.h

But it turns out that I don't need to compile this driver, there is a compatible driver already compiled with the kernel. The driver that worked for my dlink card was 8139too.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
D-link DWL-510 PCI Wireless Adapter superdude_876 Linux - Hardware 3 10-27-2005 02:26 AM
D-Link DWL-520+ Wireless PCI adapter timmytytim Linux - Hardware 1 12-26-2004 01:58 PM
SATA drive/PCI adapter link keslinpd Linux - Hardware 0 09-22-2004 03:42 PM
Intel 21041-Based PCI Ethernet Adapter Temujin_12 Linux - Hardware 5 08-05-2004 03:31 PM
D-Link Airplus Pci Adapter and Suse 9.0 joshsterm Linux - Wireless Networking 1 02-14-2004 04:12 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:55 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration