Thread: [Ndiswrapper-general] Compile Error
Status: Beta
Brought to you by:
pgiri
From: Aktaion <ak...@gm...> - 2004-02-23 01:51:25
|
Hi! I always get this error message: [...] cc -DTEST_PM -DEXPORT_SYMTAB -DMODVERSIONS -include /lib/modules/2.4.21-166-default/build/include/linux/modversions.h -DLINUX -D__KERNEL__ -DMODULE -I/lib/modules/2.4.21-166-default/build/include -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -O2 -c -o wrapper.o wrapper.c wrapper.c:1126: error: variable `ndis_ethtool_ops' has initializer but incomplete type wrapper.c:1127: error: unknown field `get_link' specified in initializer wrapper.c:1127: warning: excess elements in struct initializer wrapper.c:1127: warning: (near initialization for `ndis_ethtool_ops') wrapper.c: In function `setup_dev': wrapper.c:1613: error: structure has no member named `ethtool_ops' /lib/modules/2.4.21-166-default/build/include/asm/string.h: At top level: wrapper.c:1126: error: storage size of `ndis_ethtool_ops' isn't known make[1]: *** [wrapper.o] Error 1 make[1]: Leaving directory `/tmp/INSTALL/ndiswrapper/driver' make: *** [install] Error 2 It's all the same with install.sh and make install + make. What does this mean? What can I do? I have an Fujitsu-Siemens Amilo M 7400 Centrino notebook with SuSE 9.0. -- Greetings, Aktaion mailto:ak...@gm... Note: No Microsoft programs were used in the creation or distribution of this message. If you are using a Microsoft program to view this message, be forewarned that I am not responsible for any harm you may encounter as a result. |
From: <az...@se...> - 2004-02-23 13:01:42
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Aktaion wrote: | What does this mean? | What can I do? Please read the INSTALL-file in the source! Regards, - -- ~ .''`. Torbj=F6rn Svensson, azoff (at) se (dot) linux (dot) org ~ : :' : 7EB9 2DC5 61AE DAB5 7099 BAC6 798E E39A DBDB 0CFD ~ `. `' http://azoff.homeip.net:8080/ | http://azoff.tty0.org ~ `-- http://www.se.linux.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFAOffReY7jmtvbDP0RApU7AKCwNFVOVq/QtJNijz4eW+i/nZehggCgyDEm gV5D/cY+UoGvaQqvd5odbMI=3D =3DJVGx -----END PGP SIGNATURE----- |
From: Pontus F. <pon...@ta...> - 2004-02-23 13:10:57
|
On Mon, 2004-02-23 at 02:28, Aktaion wrote: > Hi! > > > I always get this error message: > > [...] > cc -DTEST_PM -DEXPORT_SYMTAB -DMODVERSIONS -include /lib/modules/2.4.21-166-default/build/include/linux/modversions.h -DLINUX -D__KERNEL__ -DMODULE -I/lib/modules/2.4.21-166-default/build/include -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -O2 -c -o wrapper.o wrapper.c > wrapper.c:1126: error: variable `ndis_ethtool_ops' has initializer but incomplete type > wrapper.c:1127: error: unknown field `get_link' specified in initializer > wrapper.c:1127: warning: excess elements in struct initializer > wrapper.c:1127: warning: (near initialization for `ndis_ethtool_ops') > wrapper.c: In function `setup_dev': > wrapper.c:1613: error: structure has no member named `ethtool_ops' > /lib/modules/2.4.21-166-default/build/include/asm/string.h: At top level: > wrapper.c:1126: error: storage size of `ndis_ethtool_ops' isn't known > make[1]: *** [wrapper.o] Error 1 > make[1]: Leaving directory `/tmp/INSTALL/ndiswrapper/driver' > make: *** [install] Error 2 Your kernel is too old. You can fix this by running a newer kernel or using the CVS version of ndiswrapper. Pontus |
From: Thomas B. <t....@gm...> - 2004-02-28 21:10:10
|
Hi, You can easily fix it by commenting out the lines in wrapper.c corresponding to 'ethtool_ops', like it is done in the latest CVS: #ifdef HAVE_ETHTOOL static struct ethtool_ops ndis_ethtool_ops = { .get_link = ndis_get_link, }; #endif #ifdef HAVE_ETHTOOL dev->ethtool_ops = &ndis_ethtool_ops; #endif In this way ndiswrapper works for me with suse kernel 2.4.21-192. CU, Thomas Pontus Fuchs wrote: >On Mon, 2004-02-23 at 02:28, Aktaion wrote: > > >>Hi! >> >> >>I always get this error message: >> >>[...] >>cc -DTEST_PM -DEXPORT_SYMTAB -DMODVERSIONS -include /lib/modules/2.4.21-166-default/build/include/linux/modversions.h -DLINUX -D__KERNEL__ -DMODULE -I/lib/modules/2.4.21-166-default/build/include -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -O2 -c -o wrapper.o wrapper.c >>wrapper.c:1126: error: variable `ndis_ethtool_ops' has initializer but incomplete type >>wrapper.c:1127: error: unknown field `get_link' specified in initializer >>wrapper.c:1127: warning: excess elements in struct initializer >>wrapper.c:1127: warning: (near initialization for `ndis_ethtool_ops') >>wrapper.c: In function `setup_dev': >>wrapper.c:1613: error: structure has no member named `ethtool_ops' >>/lib/modules/2.4.21-166-default/build/include/asm/string.h: At top level: >>wrapper.c:1126: error: storage size of `ndis_ethtool_ops' isn't known >>make[1]: *** [wrapper.o] Error 1 >>make[1]: Leaving directory `/tmp/INSTALL/ndiswrapper/driver' >>make: *** [install] Error 2 >> >> > >Your kernel is too old. You can fix this by running a newer kernel or >using the CVS version of ndiswrapper. > >Pontus > > > > >------------------------------------------------------- >SF.Net is sponsored by: Speed Start Your Linux Apps Now. >Build and deploy apps & Web services for Linux with >a free DVD software kit from IBM. Click Now! >http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click >_______________________________________________ >Ndiswrapper-general mailing list >Ndi...@li... >https://lists.sourceforge.net/lists/listinfo/ndiswrapper-general > > > > |