LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices



Reply
 
Search this Thread
Old 10-31-2004, 08:52 PM   #1
apu95
Member
 
Registered: Apr 2004
Location: Montreal, Canada
Distribution: Ubuntu
Posts: 39

Rep: Reputation: 15
linux-wlan-ng installation wont go past the "make all" step


i just formatted my hard drive which had linux (mdk 9.2) and i put mdk 10 official on it. im trying to configure my usb wireless adapter for it using wlan-ng because mdk 10 doesnt detect it properly.

i installed the kernel source that came with the mdk 10 cd's (i downloaded the 3), because apparently it needs the source to be able to finish the "make config" step. afterwards, the instructions say to type 'make all'. when i issue this command, i get a TON of errors...here they are:


root@localhost linux-wlan-ng-0.2.0]# make all
set -e; for d in src doc man etc; do make -C $d ; done
make[1]: Entering directory `/home/apu/Desktop/Stuff/linux-wlan-ng-0.2.0/src'
set -e; for d in mkmeta p80211 prism2 shared wlanctl wland nwepgen wlancfg; do make -C $d ; done
make[2]: Entering directory `/home/apu/Desktop/Stuff/linux-wlan-ng-0.2.0/src/mkmeta'
mkdir -p obj
make[2]: Leaving directory `/home/apu/Desktop/Stuff/linux-wlan-ng-0.2.0/src/mkmeta'
make[2]: Entering directory `/home/apu/Desktop/Stuff/linux-wlan-ng-0.2.0/src/p80211'
gcc -c -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-commo
n -pipe -mpreferred-stack-boundary=2 -march=i586 -Iinclude/asm-i386/mach-default -O2 -DMODULE -I../inc
lude -DCONFIG_NETLINK=1 -DCONFIG_PACKET=1 -DEXPORT_SYMTAB p80211mod.c -o p80211mod.o
In file included from p80211mod.c:60:
/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/cpumask.h:8,
from /usr/include/linux/sched.h:14,
from /usr/include/linux/module.h:9,
from p80211mod.c:62:
/usr/include/linux/bitmap.h: In function `bitmap_shift_right':
/usr/include/linux/bitmap.h:85: error: `__shr_tmp' undeclared (first use in this function)
/usr/include/linux/bitmap.h:85: error: (Each undeclared identifier is reported only once
/usr/include/linux/bitmap.h:85: error: for each function it appears in.)
/usr/include/linux/bitmap.h: In function `bitmap_shift_left':
/usr/include/linux/bitmap.h:98: error: `__shl_tmp' undeclared (first use in this function)
In file included from /usr/include/linux/sched.h:14,
from /usr/include/linux/module.h:9,
from p80211mod.c:62:
/usr/include/linux/cpumask.h:10:5: missing binary operator before token "("
/usr/include/linux/cpumask.h:34:5: missing binary operator before token "("
In file included from /usr/include/asm/siginfo.h:4,
from /usr/include/linux/signal.h:7,
from /usr/include/linux/sched.h:24,
from /usr/include/linux/module.h:9,
from p80211mod.c:62:
/usr/include/asm-generic/siginfo.h: At top level:
/usr/include/asm-generic/siginfo.h:53: error: size of array `_pad' is too large
In file included from /usr/include/linux/gfp.h:4,
from /usr/include/linux/slab.h:15,
from /usr/include/linux/percpu.h:4,
from /usr/include/linux/sched.h:30,
from /usr/include/linux/module.h:9,
from p80211mod.c:62:
/usr/include/linux/mmzone.h:333: error: parse error before '(' token
/usr/include/linux/mmzone.h:334: error: parse error before numeric constant
In file included from /usr/include/linux/module.h:20,
from p80211mod.c:62:
/usr/include/asm/module.h:54:2: #error unknown processor family
In file included from /usr/include/linux/mm.h:206,
from /usr/include/linux/skbuff.h:26,
from /usr/include/linux/netdevice.h:150,
from p80211mod.c:67:
/usr/include/linux/page-flags.h:119: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a funct
ion)
/usr/include/linux/page-flags.h:119: error: requested alignment is not a constant
In file included from /usr/include/linux/irq.h:20,
from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:11,
from /usr/include/linux/netdevice.h:490,
from p80211mod.c:67:
/usr/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory
In file included from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:11,
from /usr/include/linux/netdevice.h:490,
from p80211mod.c:67:
/usr/include/linux/irq.h:68: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/irq.h:68: error: requested alignment is not a constant
/usr/include/linux/irq.h:70: error: `NR_IRQS' undeclared here (not in a function)
In file included from /usr/include/linux/irq.h:72,
from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:11,
from /usr/include/linux/netdevice.h:490,
from p80211mod.c:67:
/usr/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS' undeclared here (not in a function)
/usr/include/asm/hw_irq.h:31: error: `NR_IRQS' undeclared here (not in a function)
In file included from /usr/include/linux/interrupt.h:11,
from /usr/include/linux/netdevice.h:490,
from p80211mod.c:67:
/usr/include/asm/hardirq.h:13: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/hardirq.h:13: error: requested alignment is not a constant
In file included from p80211mod.c:69:
../include/wlan/wlan_compat.h:340: error: conflicting types for `wait_queue_head_t'
/usr/include/linux/wait.h:35: error: previous declaration of `wait_queue_head_t'
../include/wlan/wlan_compat.h:341: error: conflicting types for `wait_queue_t'
/usr/include/linux/wait.h:19: error: previous declaration of `wait_queue_t'
In file included from p80211mod.c:69:
../include/wlan/wlan_compat.h:342:1: warning: "set_current_state" redefined
In file included from /usr/include/linux/module.h:9,
from p80211mod.c:62:
/usr/include/linux/sched.h:119:1: warning: this is the location of the previous definition
In file included from p80211mod.c:69:
../include/wlan/wlan_compat.h:393:1: warning: "spin_lock" redefined
In file included from /usr/include/linux/capability.h:45,
from /usr/include/linux/sched.h:6,
from /usr/include/linux/module.h:9,
from p80211mod.c:62:
/usr/include/linux/spinlock.h:219:1: warning: this is the location of the previous definition
In file included from p80211mod.c:69:
../include/wlan/wlan_compat.h:394:1: warning: "spin_unlock" redefined
In file included from /usr/include/linux/capability.h:45,
from /usr/include/linux/sched.h:6,
from /usr/include/linux/module.h:9,
from p80211mod.c:62:
/usr/include/linux/spinlock.h:238:1: warning: this is the location of the previous definition
In file included from p80211mod.c:69:
../include/wlan/wlan_compat.h:395:1: warning: "spin_lock_irqsave" redefined
In file included from /usr/include/linux/capability.h:45,
from /usr/include/linux/sched.h:6,
from /usr/include/linux/module.h:9,
from p80211mod.c:62:
/usr/include/linux/spinlock.h:256:1: warning: this is the location of the previous definition
In file included from p80211mod.c:69:
../include/wlan/wlan_compat.h:396:1: warning: "spin_unlock_irqrestore" redefined
In file included from /usr/include/linux/capability.h:45,
from /usr/include/linux/sched.h:6,
from /usr/include/linux/module.h:9,
from p80211mod.c:62:
/usr/include/linux/spinlock.h:319:1: warning: this is the location of the previous definition
In file included from p80211mod.c:69:
../include/wlan/wlan_compat.h:397:1: warning: "spin_lock_init" redefined
In file included from /usr/include/linux/capability.h:45,
from /usr/include/linux/sched.h:6,
from /usr/include/linux/module.h:9,
from p80211mod.c:62:
/usr/include/linux/spinlock.h:160:1: warning: this is the location of the previous definition
In file included from p80211mod.c:69:
../include/wlan/wlan_compat.h:398:1: warning: "spin_trylock" redefined
In file included from /usr/include/linux/capability.h:45,
from /usr/include/linux/sched.h:6,
from /usr/include/linux/module.h:9,
from p80211mod.c:62:
/usr/include/linux/spinlock.h:192:1: warning: this is the location of the previous definition
../include/wlan/wlan_compat.h:399: error: conflicting types for `spinlock_t'
/usr/include/linux/spinlock.h:150: error: previous declaration of `spinlock_t'
In file included from p80211mod.c:69:
../include/wlan/wlan_compat.h:406:1: warning: "spin_is_locked" redefined
In file included from /usr/include/linux/capability.h:45,
from /usr/include/linux/sched.h:6,
from /usr/include/linux/module.h:9,
from p80211mod.c:62:
/usr/include/linux/spinlock.h:162:1: warning: this is the location of the previous definition
In file included from p80211mod.c:69:
../include/wlan/wlan_compat.h:470:1: warning: "MODULE_PARM" redefined
In file included from p80211mod.c:62:
/usr/include/linux/module.h:490:1: warning: this is the location of the previous definition
In file included from p80211mod.c:69:
../include/wlan/wlan_compat.h:471:1: warning: "MODULE_AUTHOR" redefined
In file included from p80211mod.c:62:
/usr/include/linux/module.h:112:1: warning: this is the location of the previous definition
In file included from p80211mod.c:69:
../include/wlan/wlan_compat.h:472:1: warning: "MODULE_DESCRIPTION" redefined
In file included from p80211mod.c:62:
/usr/include/linux/module.h:115:1: warning: this is the location of the previous definition
In file included from p80211mod.c:69:
../include/wlan/wlan_compat.h:473:1: warning: "MODULE_SUPPORTED_DEVICE" redefined
In file included from p80211mod.c:62:
/usr/include/linux/module.h:23:1: warning: this is the location of the previous definition
In file included from p80211mod.c:80:
../include/wlan/p80211netdev.h: In function `p80211netdev_stop_queue':
../include/wlan/p80211netdev.h:282: error: structure has no member named `tbusy'
../include/wlan/p80211netdev.h:283: error: structure has no member named `start'
../include/wlan/p80211netdev.h: In function `p80211netdev_start_queue':
../include/wlan/p80211netdev.h:295: error: structure has no member named `tbusy'
../include/wlan/p80211netdev.h:296: error: structure has no member named `start'
../include/wlan/p80211netdev.h: In function `p80211netdev_wake_queue':
../include/wlan/p80211netdev.h:308: error: structure has no member named `tbusy'
../include/wlan/p80211netdev.h:309: warning: implicit declaration of function `mark_bh'
../include/wlan/p80211netdev.h:309: error: `NET_BH' undeclared (first use in this function)
make[2]: *** [p80211mod.o] Error 1
make[2]: Leaving directory `/home/apu/Desktop/Stuff/linux-wlan-ng-0.2.0/src/p80211'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/apu/Desktop/Stuff/linux-wlan-ng-0.2.0/src'
make: *** [all] Error 2


i dont know what to make of that....my best guess is that mdk 10 compiles the things in a different way? im not sure...i havent used linux for a while.

thanks!
Apu
 
Old 10-31-2004, 09:00 PM   #2
itzfritz
Member
 
Registered: Oct 2004
Location: Babylon, New York
Distribution: debian lenny, ubuntu intrepid
Posts: 70

Rep: Reputation: 15
I h8 when I get errors like this.
I would try following the instructions in the following section of the error output:
Code:
/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 "======================================================="
Then see what happens.
 
Old 10-31-2004, 09:13 PM   #3
apu95
Member
 
Registered: Apr 2004
Location: Montreal, Canada
Distribution: Ubuntu
Posts: 39

Original Poster
Rep: Reputation: 15
"You should not include /usr/include/{linux,asm}/ header files directly for the compilation of kernel modules. glibc now uses kernel header files from a well-defined working kernel version (as recommended by Linus Torvalds). These files are glibc internal and may not match the currently running kernel. They should only be included via other system header files - user space programs should not directly include <linux/*.h> or <asm/*.h> as well."

I don't get that one at all...

o When compiling, make sure to use the following compiler option to use the correct include files:
-I/lib/modules/`uname -r`/build/include instead of -I/usr/include/linux


I'm not sure where that option is actually used...i checked in the makefile and in no place does it have -I/usr/include/linux or -I/lib/modules/`uname -r`/build/include

I'm pretty sure all the other requirements are met, because I installed the kernel source from the cd, and the dynamic link is there as well.

thanks in advance,
Apu
 
Old 10-31-2004, 09:40 PM   #4
itzfritz
Member
 
Registered: Oct 2004
Location: Babylon, New York
Distribution: debian lenny, ubuntu intrepid
Posts: 70

Rep: Reputation: 15
Apu,

Those compiler options would need to be passed to gcc. It looks like the 'make all' output shows the following command to gcc:
Code:
gcc -c -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-commo
n -pipe -mpreferred-stack-boundary=2 -march=i586 -Iinclude/asm-i386/mach-default -O2 -DMODULE -I../inc
lude -DCONFIG_NETLINK=1 -DCONFIG_PACKET=1 -DEXPORT_SYMTAB p80211mod.c -o p80211mod.o
I would say that you would write the new compiler options to the makefile in the same place that the above compiler options are specified. From non-linux experience (win32 borland c compiler), I would put the '-I' options before the '-Iinclude' that is already specified by the makefile (so that gcc looks for the include files in the new places before it looks in 'include').
I just want to say for the record that I don't know if this is the right solution for you; I am not a guru or anything, just going with my instincts. I really hope this helps.

btw no idea about the first one...
 
Old 10-31-2004, 10:15 PM   #5
apu95
Member
 
Registered: Apr 2004
Location: Montreal, Canada
Distribution: Ubuntu
Posts: 39

Original Poster
Rep: Reputation: 15
i am typing this message thru my mandrake 10 installation, w00t!!!!

i decided to give the new drivers that were available a try, the pre23 ones, instead of the most stable release. they indeed worked, and the configuration was the same as i did when i used mdk 9.2

thanks for giving those replies itzfritz, they helped me get on the right track

Apu
 
Old 10-31-2004, 10:37 PM   #6
itzfritz
Member
 
Registered: Oct 2004
Location: Babylon, New York
Distribution: debian lenny, ubuntu intrepid
Posts: 70

Rep: Reputation: 15
Nice!
Anytime.
 
  


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
After Installation Monitor Wont Work "Out Of Range" jude01 Fedora 1 08-30-2005 06:01 AM
problems with the "make" part, wlan driver hyssing_ Linux - Newbie 7 08-20-2005 05:55 PM
AC'97 audio codec installation trouble on FC3 while trying to "make" pyromithrandir Linux - Hardware 10 05-20-2005 05:43 AM
RH Linux 9.0 installation step "Auto partitioning" not able to read partition table awahab Linux - Newbie 5 05-19-2005 08:53 AM
wLan driver "make" errors theplop Linux - Software 1 11-05-2004 05:17 PM


All times are GMT -5. The time now is 10:05 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration