LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-20-2003, 09:51 PM   #1
Shaikoten
LQ Newbie
 
Registered: Oct 2003
Distribution: Mandrake
Posts: 4

Rep: Reputation: 0
Problem making MA101 Driver


I'm pretty new to Linux... and it's not that working in the shell is hard for me, it's just I don't know what some babbling error messages mean, not knowing much about the kernels. I got the following message when trying to compile the driver for my MA101 USB device on Mandrake 9.1.

[benny@localhost at76c503-0.8]$ make install
gcc -MD -O2 -Wall -Wstrict-prototypes -pipe -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -DDRIVER_VERSION=\"v0.8\" -I/lib/modules/2.4.21-0.13mdk/build/include -c at76c503.c
make: gcc: Command not found
make: *** [at76c503.o] Error 127
[benny@localhost at76c503-0.8]$


In file included from at76c503.c:90:
/usr/include/linux/module.h:299: parse error before "UTS_RELEASE"
In file included from /usr/include/linux/usb.h:136,
from at76c503.c:95:
/usr/include/linux/version.h:2:2: #error "======================================
================="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{l
inux,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 fro
m 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 file
s - 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 exis
ts and points to"
/usr/include/linux/version.h:20:2: #error " the matching kernel source directo
ry"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h t
o"
/usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/incl
ude/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 t
he 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/in
clude"
/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 accordi
ngly."
/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:95:
/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:95:
/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:95:
/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:96:
/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:96:
/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:476:41: missing binary operator before '('
at76c503.c: In function `send_mgmt_bulk':
at76c503.c:1157: warning: concatenation of string literals with __FUNCTION__ is deprecated
at76c503.c:1170: warning: concatenation of string literals with __FUNCTION__ is deprecated
at76c503.c:1195: warning: concatenation of string literals with __FUNCTION__ is deprecated
at76c503.c: In function `find_matching_bss':
at76c503.c:1738: warning: concatenation of string literals with __FUNCTION__ is deprecated
at76c503.c: In function `rx_tasklet':
at76c503.c:2165: warning: concatenation of string literals with __FUNCTION__ is deprecated
at76c503.c: In function `at76c503_write_bulk_callback':
at76c503.c:2221: warning: concatenation of string literals with __FUNCTION__ is deprecated
at76c503.c:2249: warning: concatenation of string literals with __FUNCTION__ is deprecated
make: *** [at76c503.o] Error 1


Now, to be frank, I haven't the slightest what any of that means. If anyone could possibly translate to me, and tell me what I'm doing wrong/haven't installed, I'd be quite appreciative.
 
Old 11-21-2003, 05:30 AM   #2
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
make: gcc: Command not found
Thats easy you need to install gcc package
urpmi gcc

/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 exis
ts and points to"
/usr/include/linux/version.h:20:2: #error " the matching kernel source directo
ry"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h t
o"
/usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/incl
ude/linux/version.h"


Thats easy too:
"To build kernel modules please do the following:"
"Have the kernel sources installed"
"Make sure that the symbolic link"
" /lib/modules/`uname -r`/build exists and points to"
" the matching kernel source directory"
"Now copy /boot/vmlinuz.version.h to /lib/modules/`uname -r`/build/include/linux/version.h"

You just do what it says. Installing kernel-sources is done like this:
urpmi kernel-sources

Last edited by /bin/bash; 11-21-2003 at 05:34 AM.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MA101 and at76c503a problems driver won't install shelbydz Linux - Wireless Networking 0 03-11-2005 03:20 AM
Netgear MA101 driver installed, but not connecting to 2WIRE HomePortal 1000SW henry.haeberle Linux - Networking 0 08-14-2004 02:16 PM
Wireless MA101 Driver Install Errors - (pls help) metsdada Linux - Newbie 1 01-04-2004 10:56 AM
Problem making Linux-WLAN driver, newbie needs help. sabaka Linux - Wireless Networking 1 09-09-2003 06:22 PM
MA101 Driver for RH9 AMD Athlon XP jaj5000 Red Hat 2 08-31-2003 09:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:57 AM.

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
Open Source Consulting | Domain Registration