Re: Building linux-wlan-ng
On Mon, Jan 10, 2005 at 10:53:04PM +0100, Yevgen Reznichenko wrote:
> Hello,
>
> I have troubles by building linux-wlan-ng for my 2.6.9. Up to now I have
> done:
>
> cd /usr/src/modules
> apt-get source linux-wlan-ng
> cd /usr/src/linux
> make-kpkg kernel_image
> make-kpkg modules_image
>
> Compiling of kernel worked very well, but the compilation linux-wlan-ng
> fails. At the beginning it says:
>
> ....
> *** Warning: "wlan_unsetup"
> [/usr/src/modules/linux-wlan-ng-0.2.0+0.2.1pre21/src/prism2/driver/prism2_usb.ko]
> undefined!
> *** Warning: "p80211netdev_hwremoved"
> [/usr/src/modules/linux-wlan-ng-0.2.0+0.2.1pre21/src/prism2/driver/prism2_usb.ko]
> undefined!
> *** Warning: "unregister_wlandev"
> [/usr/src/modules/linux-wlan-ng-0.2.0+0.2.1pre21/src/prism2/driver/prism2_usb.ko]
> undefine
> ....
>
> And to the end:
>
> make[5]: Entering directory `/usr/src/kernel-source-2.6.9'
> CC [M]
> /usr/src/modules/linux-wlan-ng-0.2.0+0.2.1pre21/src/p80211/p80211mod.o
> CC [M]
> /usr/src/modules/linux-wlan-ng-0.2.0+0.2.1pre21/src/p80211/p80211conv.o
> /usr/src/modules/linux-wlan-ng-0.2.0+0.2.1pre21/src/p80211/p80211conv.c:
> In function `skb_p80211_to_ether':
> /usr/src/modules/linux-wlan-ng-0.2.0+0.2.1pre21/src/p80211/p80211conv.c:502:
> error: union has no member named `ethernet'
> make[6]: ***
> [/usr/src/modules/linux-wlan-ng-0.2.0+0.2.1pre21/src/p80211/p80211conv.o]
> Error 1
> make[5]: ***
> [_module_/usr/src/modules/linux-wlan-ng-0.2.0+0.2.1pre21/src/p80211] Error 2
> make[5]: Leaving directory `/usr/src/kernel-source-2.6.9'
> make[4]: *** [default] Error 2
> make[4]: Leaving directory
> `/usr/src/modules/linux-wlan-ng-0.2.0+0.2.1pre21/src/p80211'
> make[3]: *** [all] Error 2
> make[3]: Leaving directory
> `/usr/src/modules/linux-wlan-ng-0.2.0+0.2.1pre21/src'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/usr/src/modules/linux-wlan-ng-0.2.0+0.2.1pre21'
> make[1]: *** [build] Error 2
> make[1]: Leaving directory `/usr/src/modules/linux-wlan-ng-0.2.0+0.2.1pre21'
> Module /usr/src/modules/linux-wlan-ng-0.2.0+0.2.1pre21 failed.
> Hit return to Continue
>
> Who knows how to solve it?
>
> Yevgen
>
Hi Yevgen,
I don't know what kernel you use, but I use the standard
kernel-image-2.6.7-1-686-smp. After downloading the sources as you did,
I copied the corresponding kernel config file (for me
config-2.6.7-1-686-smp) to /usr/src/kernel-source-2.6.7/.config. Then
make menuconfig in the kernel-source tree
export KVERS=2.6.7-1-686-smp
export KSRC=/usr/src/kernel-source-2.6.7/
cd /usr/src/modules/linux-wlan-ng-0.2.0+0.2.1pre21
debian/rules binary
After compilation there is the .deb package in ../
dpkg -i ../linux-wlan-ng-modules-2.6.7-1-686-smp_+0.2.0+0.2.1pre21-1_i386.deb
That's what worked for me anyway.
Good luck,
Andreas
Reply to: