Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
horoOffline
Post subject: FYI: ndiswrapper compile error  PostPosted: 28.10.2011, 07:38



Joined: 2010-09-11
Posts: 21
Location: Berlin & Lindau, Germany
Status: Offline
      Code:
make -C /usr/src/linux-headers-3.1-0.slh.2-aptosid-686 M=/usr/src/ndiswrapper-1.56+r2729
make[1]: Entering directory `/usr/src/linux-headers-3.1-0.slh.2-aptosid-686'
  LD      /usr/src/ndiswrapper-1.56+r2729/built-in.o
  MKEXPORT /usr/src/ndiswrapper-1.56+r2729/crt_exports.h
  MKEXPORT /usr/src/ndiswrapper-1.56+r2729/hal_exports.h
  MKEXPORT /usr/src/ndiswrapper-1.56+r2729/ndis_exports.h
  MKEXPORT /usr/src/ndiswrapper-1.56+r2729/ntoskernel_exports.h
  MKEXPORT /usr/src/ndiswrapper-1.56+r2729/ntoskernel_io_exports.h
  MKEXPORT /usr/src/ndiswrapper-1.56+r2729/rtl_exports.h
  MKEXPORT /usr/src/ndiswrapper-1.56+r2729/usb_exports.h
  CC [M]  /usr/src/ndiswrapper-1.56+r2729/crt.o
  CC [M]  /usr/src/ndiswrapper-1.56+r2729/hal.o
  CC [M]  /usr/src/ndiswrapper-1.56+r2729/iw_ndis.o
/usr/src/ndiswrapper-1.56+r2729/iw_ndis.c: In function ‘iw_set_essid’:
/usr/src/ndiswrapper-1.56+r2729/iw_ndis.c:76:28: error: ‘struct net_device’ has no member named ‘priv’
/usr/src/ndiswrapper-1.56+r2729/iw_ndis.c: In function ‘iw_get_essid’:
/usr/src/ndiswrapper-1.56+r2729/iw_ndis.c:110:28: error: ‘struct net_device’ has no member named ‘priv’
/usr/src/ndiswrapper-1.56+r2729/iw_ndis.c: In function ‘iw_set_infra_mode’:
/usr/src/ndiswrapper-1.56+r2729/iw_ndis.c:170:28: error: ‘struct net_device’ has no member named ‘priv’
/usr/src/ndiswrapper-1.56+r2729/iw_ndis.c: In function ‘iw_get_infra_mode’:
/usr/src/ndiswrapper-1.56+r2729/iw_ndis.c:198:28: error: ‘struct net_device’ has no member named ‘priv’
...
/usr/src/ndiswrapper-1.56+r2729/iw_ndis.c: In function ‘priv_reload_defaults’:
/usr/src/ndiswrapper-1.56+r2729/iw_ndis.c:1936:28: error: ‘struct net_device’ has no member named ‘priv’
make[2]: *** [/usr/src/ndiswrapper-1.56+r2729/iw_ndis.o] Fehler 1
make[1]: *** [_module_/usr/src/ndiswrapper-1.56+r2729] Fehler 2
make[1]: Leaving directory `/usr/src/linux-headers-3.1-0.slh.2-aptosid-686'
make: *** [modules] Fehler 2


Ciao, Martin

_________________
omnia vincit pecunia Sad
 
 View user's profile Send private message  
Reply with quote Back to top
slhOffline
Post subject: RE: FYI: ndiswrapper compile error  PostPosted: 28.10.2011, 10:17



Joined: 2010-08-25
Posts: 750

Status: Offline
Please file a bugreport against ndiswrapper http://www.debian.org/Bugs/Reporting, severity wishlist as long as kernel 3.1 hasn't been uploaded to Debian sid.

I would recommend to look for other alternatives than ndiswrapper, most wlan chipsets have native driver support these days and ndiswrapper development has been dead upstream since late 2007/ early 2008 with only minor cosmetics and occassional changes to keep compatibility with newer kernels getting committed.
 
 View user's profile Send private message  
Reply with quote Back to top
horoOffline
Post subject: RE: FYI: ndiswrapper compile error  PostPosted: 28.10.2011, 12:56



Joined: 2010-09-11
Posts: 21
Location: Berlin & Lindau, Germany
Status: Offline
Hi,

fixed it "quick'n'dirty" for me:
in the tarball /usr/src/ndiswrapper.tar.bz I commented out lines 278-280 in ntoskernel.h:
      Code:
//#if !defined(HAVE_NETDEV_PRIV)
//#define netdev_priv(dev)  ((dev)->priv)
//#endif

As the function netdev_priv() is in the kernel since (about) 2.6.6 I don't need this define-hack for older kernels.

Ciao, Martin

P.S.: I use ndiswrapper with some old DWL-G650+ PCMCIA cards (no native acx111 driver support with WPA).

_________________
omnia vincit pecunia Sad
 
 View user's profile Send private message  
Reply with quote Back to top
wiarus_oldOffline
Post subject:   PostPosted: 31.10.2011, 07:14



Joined: 2010-09-14
Posts: 20
Location: Poland
Status: Offline
This is mine problem too.
Wlan0 works perfectly with ndiswrapper and wicd (ceni shows wlan0 too) with kernel 3.0-4-slh-2.
But when I do d-u (twice) and kernel 3.0-4 and 3.1-0-slh-2 was loaded wlan0 didn't work no more.
      Code:
root@siduxbox:/home/janusz# modprobe ath9k_htc
root@siduxbox:/home/janusz# ndiswrapper-1.9 -l
netathuw : driver installed
        device (0846:9030) present (alternate driver: ath9k_htc)

      Code:
root@siduxbox:/home/janusz# configure-ndiswrapper
ERROR: modinfo: could not find module ndiswrapper

with box:
      Code:
The 'ndiswrapper' kernel module is not installed, aborting.

So I try to compile ndiswrapper-source along with manual and I get at 41%:
      Code:
──Building ndiswrapper-source, step 1, please wait...────────────┐       
     │ /usr/src/modules/ndiswrapper/iw_ndis.c:1288:28: error: ‘struct          │       
     │ net_device’ has no member named ‘priv’

With old kernel it compiles with success.

Later I will try to solve this with horo's hint.

_________________
Welcome on http://m-artcollection.eu - my ART site Smile
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
horoOffline
Post subject:   PostPosted: 31.10.2011, 12:30



Joined: 2010-09-11
Posts: 21
Location: Berlin & Lindau, Germany
Status: Offline
Hi wiarus_old,

the root cause is that the HAVE_NETDEV_PRIV isn't defined anymore since kernel 3.1:
      Code:
$ grep HAVE_NETDEV_PRIV /usr/src/linux-headers-3.0-7.slh.2-aptosid-686/include/linux/*
/usr/src/linux-headers-3.0-7.slh.2-aptosid-686/include/linux/netdevice.h:#define HAVE_NETDEV_PRIV      /* netdev_priv() */

      Code:
$ grep HAVE_NETDEV_PRIV /usr/src/linux-headers-3.1-0.slh.2-aptosid-686/include/linux/*

so the three lines above^^ in ntoskernel.h come to effect and hide the real function in the kernel.

Ciao, Martin

_________________
omnia vincit pecunia Sad
 
 View user's profile Send private message  
Reply with quote Back to top
wiarus_oldOffline
Post subject:   PostPosted: 01.11.2011, 16:54



Joined: 2010-09-14
Posts: 20
Location: Poland
Status: Offline
Thanks a lot horo!
It works!

So, I tried to change tar.gz with mc but it was imposible to write ntoskernel.h back, so I made changes in /usr/src/modules/ndiswrapper/ntoskernel.h and renamed tar.gz just in case (I know it probably not right way but shorter), then
      Code:
root@siduxbox:/home/janusz# m-a prepare
root@siduxbox:/home/janusz# m-a a-i ndiswrapper-source

with this info output
      Code:
...
The source tarball could not be found!
Package ndiswrapper-source not installed?
Running "m-a -f get ndiswrapper-source" may help.
"/usr/share/modass/packages/default.sh" build KVERS=3.1-0.slh.2-aptosid-686 KSRC=/usr/src/linux-headers-3.1-0.slh.2-aptosid-686 KDREV=3.1-2 kdist_image
...

but everything went ok so I did:
      Code:
root@siduxbox:/home/janusz# modprobe ndiswrapper
root@siduxbox:/home/janusz# ifup wlan0

and wifi connection started OK. Very Happy

_________________
Welcome on http://m-artcollection.eu - my ART site Smile
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio