Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
If somebody could help me how to compile device driver D-Link DFE-528TX ethernet card.
When I try to compile I take a lot of errors.
I do the following:
I follow the user instructions
I enter the following command:
"gcc -DMODULE -Wall -Wstrict-prototypes -O6 -c dfe528.c"
I take this output:
Code:
gcc -DMODULE -Wall -Wstrict-prototypes -O6 -c dfe528.c
In file included from dfe528.c:99:
/usr/include/linux/version.h:2:2: #error "======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error " the matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:26:2: #error " compiler option to use the correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error " -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error " instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error " -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error " Please adjust the Makefile accordingly."
/usr/include/linux/version.h:35:2: #error "======================================================="
In file included from /usr/include/linux/prefetch.h:13,
from /usr/include/linux/list.h:6,
from /usr/include/linux/module.h:11,
from dfe528.c:100:
/usr/include/asm/processor.h:55: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/processor.h:55: requested alignment is not a constant
In file included from /usr/include/linux/module.h:297,
from dfe528.c:100:
/usr/include/linux/version.h:2:2: #error "======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error " the matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:26:2: #error " compiler option to use the correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error " -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error " instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error " -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error " Please adjust the Makefile accordingly."
/usr/include/linux/version.h:35:2: #error "======================================================="
In file included from dfe528.c:100:
/usr/include/linux/module.h:299: parse error before "UTS_RELEASE"
/usr/include/linux/module.h: In function `print_symbol':
/usr/include/linux/module.h:433: `ESRCH' undeclared (first use in this function)
/usr/include/linux/module.h:433: (Each undeclared identifier is reported only once
/usr/include/linux/module.h:433: for each function it appears in.)
In file included from dfe528.c:110:
/usr/include/linux/malloc.h:4:2: warning: #warning linux/malloc.h is deprecated, use linux/slab.h instead.
In file included from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:46,
from dfe528.c:111:
/usr/include/linux/irq.h: At top level:
/usr/include/linux/irq.h:65: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/irq.h:65: requested alignment is not a constant
In file included from /usr/include/linux/interrupt.h:46,
from dfe528.c:111:
/usr/include/asm/hardirq.h:16: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/hardirq.h:16: requested alignment is not a constant
In file included from dfe528.c:111:
/usr/include/linux/interrupt.h:129: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/interrupt.h:129: requested alignment is not a constant
In file included from dfe528.c:113:
/usr/include/linux/netdevice.h:165: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/netdevice.h:165: requested alignment is not a constant
In file included from dfe528.c:113:
/usr/include/linux/netdevice.h:507: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/netdevice.h:507: requested alignment is not a constant
In file included from kern_compat.h:35,
from dfe528.c:130:
/usr/include/linux/version.h:2:2: #error "======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error " the matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:26:2: #error " compiler option to use the correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error " -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error " instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error " -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error " Please adjust the Makefile accordingly."
/usr/include/linux/version.h:35:2: #error "======================================================="
In file included from dfe528.c:130:
kern_compat.h:50:1: warning: "MODULE_AUTHOR" redefined
In file included from dfe528.c:100:
/usr/include/linux/module.h:204:1: warning: this is the location of the previous definition
In file included from dfe528.c:130:
kern_compat.h:51:1: warning: "MODULE_DESCRIPTION" redefined
In file included from dfe528.c:100:
/usr/include/linux/module.h:208:1: warning: this is the location of the previous definition
In file included from dfe528.c:130:
kern_compat.h:52:1: warning: "MODULE_PARM" redefined
In file included from dfe528.c:100:
/usr/include/linux/module.h:231:1: warning: this is the location of the previous definition
In file included from dfe528.c:130:
kern_compat.h:58:1: warning: "le16_to_cpu" redefined
In file included from /usr/include/linux/byteorder/little_endian.h:82,
from /usr/include/asm/byteorder.h:32,
from /usr/include/linux/kernel.h:15,
from dfe528.c:105:
/usr/include/linux/byteorder/generic.h:92:1: warning: this is the location of the previous definition
In file included from dfe528.c:130:
kern_compat.h:59:1: warning: "cpu_to_le16" redefined
In file included from /usr/include/linux/byteorder/little_endian.h:82,
from /usr/include/asm/byteorder.h:32,
from /usr/include/linux/kernel.h:15,
from dfe528.c:105:
/usr/include/linux/byteorder/generic.h:91:1: warning: this is the location of the previous definition
In file included from dfe528.c:130:
kern_compat.h:60:1: warning: "le16_to_cpus" redefined
In file included from /usr/include/linux/byteorder/little_endian.h:82,
from /usr/include/asm/byteorder.h:32,
from /usr/include/linux/kernel.h:15,
from dfe528.c:105:
/usr/include/linux/byteorder/generic.h:116:1: warning: this is the location of the previous definition
In file included from dfe528.c:130:
kern_compat.h:61:1: warning: "le32_to_cpu" redefined
In file included from /usr/include/linux/byteorder/little_endian.h:82,
from /usr/include/asm/byteorder.h:32,
from /usr/include/linux/kernel.h:15,
from dfe528.c:105:
/usr/include/linux/byteorder/generic.h:90:1: warning: this is the location of the previous definition
In file included from dfe528.c:130:
kern_compat.h:62:1: warning: "cpu_to_le32" redefined
In file included from /usr/include/linux/byteorder/little_endian.h:82,
from /usr/include/asm/byteorder.h:32,
from /usr/include/linux/kernel.h:15,
from dfe528.c:105:
/usr/include/linux/byteorder/generic.h:89:1: warning: this is the location of the previous definition
In file included from dfe528.c:130:
kern_compat.h:63: conflicting types for `spinlock_t'
/usr/include/linux/spinlock.h:73: previous declaration of `spinlock_t'
In file included from dfe528.c:130:
kern_compat.h:64:1: warning: "SPIN_LOCK_UNLOCKED" redefined
In file included from /usr/include/linux/module.h:10,
from dfe528.c:100:
/usr/include/linux/spinlock.h:74:1: warning: this is the location of the previous definition
In file included from dfe528.c:130:
kern_compat.h:65:1: warning: "spin_lock" redefined
In file included from /usr/include/linux/module.h:10,
from dfe528.c:100:
/usr/include/linux/spinlock.h:81:1: warning: this is the location of the previous definition
In file included from dfe528.c:130:
kern_compat.h:66:1: warning: "spin_unlock" redefined
In file included from /usr/include/linux/module.h:10,
from dfe528.c:100:
/usr/include/linux/spinlock.h:85:1: warning: this is the location of the previous definition
In file included from dfe528.c:130:
kern_compat.h:67:1: warning: "spin_lock_irqsave" redefined
In file included from /usr/include/linux/module.h:10,
from dfe528.c:100:
/usr/include/linux/spinlock.h:8:1: warning: this is the location of the previous definition
In file included from dfe528.c:130:
kern_compat.h:68:1: warning: "spin_unlock_irqrestore" redefined
In file included from /usr/include/linux/module.h:10,
from dfe528.c:100:
/usr/include/linux/spinlock.h:20:1: warning: this is the location of the previous definition
In file included from dfe528.c:130:
kern_compat.h:78:26: linux/bios32.h: No such file or directory
kern_compat.h:86: redefinition of `struct pci_dev'
kern_compat.h:94: redefinition of `pcibios_present'
/usr/include/linux/pci.h:662: `pcibios_present' previously defined here
kern_compat.h: In function `pci_drv_register':
kern_compat.h:398: warning: implicit declaration of function `vremap'
kern_compat.h:398: warning: pointer/integer type mismatch in conditional expression
In file included from dfe528.c:130:
kern_compat.h: At top level:
kern_compat.h:463: redefinition of `pci_find_capability'
/usr/include/linux/pci.h:701: `pci_find_capability' previously defined here
dfe528.c:305: field `stats' has incomplete type
dfe528.c: In function `rtl8139_probe1':
dfe528.c:377: warning: assignment from incompatible pointer type
dfe528.c:380: dereferencing pointer to incomplete type
dfe528.c:388: dereferencing pointer to incomplete type
dfe528.c:393: dereferencing pointer to incomplete type
dfe528.c:394: dereferencing pointer to incomplete type
dfe528.c:403: dereferencing pointer to incomplete type
dfe528.c:405: dereferencing pointer to incomplete type
dfe528.c:406: dereferencing pointer to incomplete type
dfe528.c:408: dereferencing pointer to incomplete type
dfe528.c:430: dereferencing pointer to incomplete type
dfe528.c:436: dereferencing pointer to incomplete type
dfe528.c:459: dereferencing pointer to incomplete type
dfe528.c:474: dereferencing pointer to incomplete type
dfe528.c:475: dereferencing pointer to incomplete type
dfe528.c:476: dereferencing pointer to incomplete type
dfe528.c:477: dereferencing pointer to incomplete type
dfe528.c:478: dereferencing pointer to incomplete type
dfe528.c:479: dereferencing pointer to incomplete type
dfe528.c: In function `mdio_read':
dfe528.c:573: dereferencing pointer to incomplete type
dfe528.c:580: dereferencing pointer to incomplete type
dfe528.c: In function `mdio_write':
dfe528.c:606: dereferencing pointer to incomplete type
dfe528.c:612: dereferencing pointer to incomplete type
dfe528.c: In function `rtl8129_open':
dfe528.c:638: dereferencing pointer to incomplete type
dfe528.c:639: dereferencing pointer to incomplete type
dfe528.c:646: dereferencing pointer to incomplete type
dfe528.c:646: dereferencing pointer to incomplete type
dfe528.c:661: dereferencing pointer to incomplete type
dfe528.c:678: dereferencing pointer to incomplete type
dfe528.c:679: dereferencing pointer to incomplete type
dfe528.c:696: dereferencing pointer to incomplete type
dfe528.c:714: dereferencing pointer to incomplete type
dfe528.c:715: dereferencing pointer to incomplete type
dfe528.c:716: dereferencing pointer to incomplete type
dfe528.c:725: dereferencing pointer to incomplete type
dfe528.c:725: dereferencing pointer to incomplete type
dfe528.c: In function `rtl_hw_start':
dfe528.c:742: dereferencing pointer to incomplete type
dfe528.c:743: dereferencing pointer to incomplete type
dfe528.c:753: dereferencing pointer to incomplete type
dfe528.c:754: dereferencing pointer to incomplete type
dfe528.c:742: confused by earlier errors, bailing out
Knows somebody to tell me what should be the problem.
Do not worry. You don't need the driver you get inside the CD. That board is supported by the linux kernel module 8139too included in a standart kernel distribution (2.4.x i think)
Do not worry. You don't need the driver you get inside the CD. That board is supported by the linux kernel module 8139too included in a standart kernel distribution (2.4.x i think)
Yes Thank You.
But I have some problem with my device driver. I know what about You are talking to me.
When I turn my cable modem into 'stand by' mode my machine, application loadings are slow down. When I turn it on I get it all right.
My cable modem is connected to my ethernet adapter and it deos ARP protocol non-stop? I checked this using 'ethereal' program so it is how I know that.
Please tell me need I maybe express my '8139too' configuration, parameters there might be wrong set? Would it be good idea to check them?. I notify that for I am new to networkings.
Parameter names I need to express related to the '8139too' module are:
multicast_filter_limit
max_interrupt_work
media
full_duplex
debug
Please if You or somebody else could tell me what are the values I exactly need to enter to establish connection properly.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.