LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-24-2003, 09:48 PM   #1
Shaikoten
LQ Newbie
 
Registered: Oct 2003
Distribution: Mandrake
Posts: 4

Rep: Reputation: 0
Problem with gcc on USB driver installation


I've been getting this message when I try to compile my USB driver:

[root@localhost at76c503-0.8]# make install
gcc -MD -O2 -Wall -Wstrict-prototypes -pipe -D__KERNEL__ -DMODULE -DEXPO
RT_SYMTAB -DDRIVER_VERSION=\"v0.8\" -I/lib/modules/2.4.21-0.13mdk/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:83:
/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:90:
/usr/include/linux/modversions.h:1:2: #error "==========================
============================="
/usr/include/linux/modversions.h:2:2: #error "You should not include /us
r/include/{linux,asm}/ header"
/usr/include/linux/modversions.h:3:2: #error "files directly for the com
pilation of kernel modules."
/usr/include/linux/modversions.h:4:2: #error ""
/usr/include/linux/modversions.h:5:2: #error "glibc now uses kernel head
er 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 inte
rnal 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 direc
tly 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 p
lease do the following:"
/usr/include/linux/modversions.h:14:2: #error ""
/usr/include/linux/modversions.h:15:2: #error " o Have the kernel source
s installed"
/usr/include/linux/modversions.h:16:2: #error ""
/usr/include/linux/modversions.h:17:2: #error " o Make sure that the sym
bolic 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 so
urce 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 s
ure 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 Make
file accordingly."
/usr/include/linux/modversions.h:34:2: #error "=========================
=============================="
In file included from /usr/include/linux/module.h:297,
from at76c503.c:90:
/usr/include/linux/version.h:2:2: #error "==============================
========================="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/in
clude/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compila
tion of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header f
iles from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as rec
ommended 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 hea
der 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 pleas
e do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources in
stalled"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symboli
c link"
/usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/bu
ild 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.ver
sion.h to"
/usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/bu
ild/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: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/in
clude/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compila
tion of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header f
iles from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as rec
ommended 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 hea
der 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 pleas
e do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources in
stalled"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symboli
c link"
/usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/bu
ild 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.ver
sion.h to"
/usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/bu
ild/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: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 he
re (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' undeclar
ed here (not in a function)
/usr/include/linux/interrupt.h:129: requested alignment is not a constan
t
In file included from at76c503.c:96:
/usr/include/linux/netdevice.h:165: `CONFIG_X86_L1_CACHE_SHIFT' undeclar
ed here (not in a function)
/usr/include/linux/netdevice.h:165: requested alignment is not a constan
t
In file included from at76c503.c:96:
/usr/include/linux/netdevice.h:507: `CONFIG_X86_L1_CACHE_SHIFT' undeclar ed here (not in a function)
/usr/include/linux/netdevice.h:507: requested alignment is not a constan t
at76c503.c:476:41: missing binary operator before '('
at76c503.c: In function `send_mgmt_bulk':
at76c503.c:1157: warning: concatenation of string literals with __FUNCTI ON__ is deprecated
at76c503.c:1170: warning: concatenation of string literals with __FUNCTI ON__ is deprecated
at76c503.c:1195: warning: concatenation of string literals with __FUNCTI ON__ is deprecated
at76c503.c: In function `find_matching_bss':
at76c503.c:1738: warning: concatenation of string literals with __FUNCTI ON__ is deprecated
at76c503.c: In function `rx_tasklet':
at76c503.c:2165: warning: concatenation of string literals with __FUNCTI ON__ is deprecated
at76c503.c: In function `at76c503_write_bulk_callback':
at76c503.c:2221: warning: concatenation of string literals with __FUNCTI ON__ is deprecated
at76c503.c:2249: warning: concatenation of string literals with __FUNCTI ON__ is deprecated
make: *** [at76c503.o] Error 1
[root@localhost at76c503-0.8]#


If anyone knows what I'm doing wrong and could tell me, I'd be greatly appreciative.
 
Old 11-25-2003, 12:29 AM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
cd /usr/src
ls -al

Is the kernel-source installed? If not, do urpmi kernel-source and try again.

# Mandrake links
Mandrake home page
Mandrake Users website
Easy urpmi config for Mandrake
urpmi mini-HOWTO
All You Ever Wanted to Know About Urpmi But Never Dared Asking Before
Easy software management: Red Carpet
Maximum RPM
rpmfind
You didn't install the developmental packages? As root, command:
urpmi gcc
An Introduction to the Midnight Commander. You can install it by commanding:
urpmi mc
Midnight Commander home page
 
  


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
Suse 9.3 gcc-g++ Installation Problem limneos Linux - Newbie 4 09-30-2005 07:27 PM
GCC upgrading/installation problem mcrexx Linux - Newbie 5 09-17-2005 01:33 PM
Problem with installation of gcc 3.4.3 lxeye Programming 5 01-16-2005 12:03 PM
USB ADSL usr9000 driver installation subigor Linux - Newbie 0 10-11-2003 05:10 PM
Gcc installation problem Agileuk Linux - Newbie 2 09-28-2003 07:11 PM


All times are GMT -5. The time now is 12:45 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