LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-14-2004, 11:19 PM   #1
Mojojo
Member
 
Registered: May 2003
Location: Philadelphia/PA
Distribution: Mint/Debian
Posts: 447

Rep: Reputation: 33
Question Problem with atmelwlandriver install


Here it is guys I've been trying to install the atmelwlandriver for my Belkin Wireless PCI card. But keep getting the same crap maybe you could help translate it for me any help will be greatly appreciated thanks.

[root@localhost]# cd /home/jeff/Desktop/at76c503-0.11
[root@localhost at76c503-0.11]# make
gcc -MD -O2 -Wall -Wstrict-prototypes -pipe -fno-strict-aliasing -fno-common -Wno-sign-compare -Wno-unused -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -DDRIVER_VERSION=\"v0.11\" -I/lib/modules/2.4.21-0.18mdk/build/include -c at76c503.c
In file included from /usr/include/linux/prefetch.h:13,
from /usr/include/linux/list.h:6,
from /usr/include/linux/wait.h:14,
from /usr/include/linux/fs.h:11,
from /usr/include/linux/capability.h:17,
from /usr/include/linux/binfmts.h:6,
from /usr/include/linux/sched.h:8,
from at76c503.c:79:
/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:20,
from at76c503.c:86:
/usr/include/linux/modversions.h:1:2: #error "======================================================="
/usr/include/linux/modversions.h:2:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/modversions.h:3:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/modversions.h:4:2: #error ""
/usr/include/linux/modversions.h:5:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/modversions.h:6:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/modversions.h:7:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/modversions.h:8:2: #error "currently running kernel. They should only be"
/usr/include/linux/modversions.h:9:2: #error "included via other system header files - user space"
/usr/include/linux/modversions.h:10:2: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/modversions.h:11:2: #error "<asm/*.h> as well."
/usr/include/linux/modversions.h:12:2: #error ""
/usr/include/linux/modversions.h:13:2: #error "To build kernel modules please do the following:"
/usr/include/linux/modversions.h:14:2: #error ""
/usr/include/linux/modversions.h:15:2: #error " o Have the kernel sources installed"
/usr/include/linux/modversions.h:16:2: #error ""
/usr/include/linux/modversions.h:17:2: #error " o Make sure that the symbolic link"
/usr/include/linux/modversions.h:18:2: #error " /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/modversions.h:19:2: #error " the matching kernel source directory"
/usr/include/linux/modversions.h:20:2: #error ""
/usr/include/linux/modversions.h:21:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/modversions.h:22:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/modversions.h:23:2: #error ""
/usr/include/linux/modversions.h:24:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/modversions.h:25:2: #error " compiler option to use the correct include files:"
/usr/include/linux/modversions.h:26:2: #error ""
/usr/include/linux/modversions.h:27:2: #error " -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/modversions.h:28:2: #error ""
/usr/include/linux/modversions.h:29:2: #error " instead of"
/usr/include/linux/modversions.h:30:2: #error ""
/usr/include/linux/modversions.h:31:2: #error " -I/usr/include/linux"
/usr/include/linux/modversions.h:32:2: #error ""
/usr/include/linux/modversions.h:33:2: #error " Please adjust the Makefile accordingly."
/usr/include/linux/modversions.h:34:2: #error "======================================================="
In file included from /usr/include/linux/module.h:297,
from at76c503.c:86:
/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 at76c503.c:86:
/usr/include/linux/module.h:299: parse error before "UTS_RELEASE"
In file included from /usr/include/linux/usb.h:136,
from at76c503.c:91:
/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/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:46,
from /usr/include/linux/usb.h:139,
from at76c503.c:91:
/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 /usr/include/linux/usb.h:139,
from at76c503.c:91:
/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 /usr/include/linux/usb.h:139,
from at76c503.c:91:
/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 at76c503.c:92:
/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 at76c503.c:92:
/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
at76c503.c:3695:41: missing binary operator before '('
at76c503.c:4685: parse error before "config_must_be_included_before_module"
at76c503.c:4685: warning: type defaults to `int' in declaration of `config_must_be_included_before_module'
at76c503.c:4685: warning: data definition has no type or storage class
at76c503.c:4686: parse error before "config_must_be_included_before_module"
at76c503.c:4686: warning: type defaults to `int' in declaration of `config_must_be_included_before_module'
at76c503.c:4686: warning: data definition has no type or storage class
at76c503.c:4687: parse error before "config_must_be_included_before_module"
at76c503.c:4687: warning: type defaults to `int' in declaration of `config_must_be_included_before_module'
at76c503.c:4687: warning: data definition has no type or storage class
at76c503.c:4688: parse error before "config_must_be_included_before_module"
at76c503.c:4688: warning: type defaults to `int' in declaration of `config_must_be_included_before_module'
at76c503.c:4688: warning: data definition has no type or storage class
at76c503.c:4689: parse error before "config_must_be_included_before_module"
at76c503.c:4689: warning: type defaults to `int' in declaration of `config_must_be_included_before_module'
at76c503.c:4689: warning: data definition has no type or storage class
at76c503.c:4690: parse error before "config_must_be_included_before_module"
at76c503.c:4690: warning: type defaults to `int' in declaration of `config_must_be_included_before_module'
at76c503.c:4690: warning: data definition has no type or storage class
make: *** [at76c503.o] Error 1
[root@localhost at76c503-0.11]# make install
mkdir -p /lib/modules/2.4.21-0.18mdk/kernel/drivers/usb/
for f in at76c503.o usbdfu.o at76c503-rfmd.o at76c503-rfmd-acc.o at76c505-rfmd.o at76c503-i3861.o at76c503-i3863.o at76c505-rfmd2958.o; do install -m 644 -o 0 -g 0 $f /lib/modules/2.4.21-0.18mdk/kernel/drivers/usb//$f; done
install: cannot stat `at76c503.o': No such file or directory
install: cannot stat `usbdfu.o': No such file or directory
install: cannot stat `at76c503-rfmd.o': No such file or directory
install: cannot stat `at76c503-rfmd-acc.o': No such file or directory
install: cannot stat `at76c505-rfmd.o': No such file or directory
install: cannot stat `at76c503-i3861.o': No such file or directory
install: cannot stat `at76c503-i3863.o': No such file or directory
install: cannot stat `at76c505-rfmd2958.o': No such file or directory
make: *** [install] Error 1
[root@localhost at76c503-0.11]#

I am running Mandrake 9.1 with kernel version 2.4.21-0.18
 
Old 03-19-2004, 02:35 PM   #2
duff
LQ Newbie
 
Registered: Sep 2002
Location: Edinburgh UK
Posts: 13

Rep: Reputation: 0
MDK has the driver

i'm pretty sure MDK already has this driver in the distro as a binary... i can't remember the details but google search for this should help.
 
Old 03-19-2004, 02:53 PM   #3
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
did you check the site in the hcl review?

http://www.linuxquestions.org/hcl/sh...hp?product=466

I don't have this card, but the berlios site seems to have some info that may help...
 
Old 03-19-2004, 03:53 PM   #4
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
I think you're trying to link it against the wrong kernel headers. Have you upgraded your kernel at all because it looks almost like you're linking against the new kernel headers rather than the kernel headers against which glibc was compiled (which is what you should do). Basically, /usr/include/linux should always include the header files for the kernel against which glibc was compiled - usually the headers for the kernel that came with the OS unless you've upgraded glibc in the past. I believe /usr/src/linux (which is often a symlink) can point to the current kernel headers, but don't quote me.
 
  


Reply


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
Atmelwlandriver/Belkin F5D2060 ver. 2 on FC4 Help Masdl Linux - Wireless Networking 1 08-22-2005 12:52 PM
mach_apicdef.h not found - atmelwlandriver epoo Linux - Software 3 06-07-2005 04:36 AM
Can't get atmelwlandriver to compile MatthewASmith79 Linux - Wireless Networking 5 09-04-2004 12:38 PM
installing atmelwlandriver tgkspike Linux - General 0 02-16-2004 06:07 PM
Patching Atmelwlandriver Crimson Azure Linux - Newbie 0 09-24-2003 03:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:27 PM.

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