[Ndiswrapper-general] Cannot compile on 2.4.18
Status: Beta
Brought to you by:
pgiri
From: Adar D. <ad...@st...> - 2003-12-14 17:21:14
|
Hello all, I am trying to compile ndiswrapper on my old Toshiba laptop to use with a Linksys WPC54G card, since Broadcom has not released the drives for said card. However, my compilation of wrapper.o fails. Here is some output: gentry:~/ndiswrapper/driver# gcc -v Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.3/specs Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux Thread model: posix gcc version 3.3.3 20031206 (prerelease) (Debian) gentry:~/ndiswrapper/driver# make -f Makefile.24 >& output.log gentry:~/ndiswrapper/driver# cat output.log cc -DLINUX -D__KERNEL__ -DMODULE -DFULLTRACE -I/lib/modules/2.4.18/build/include -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -mpre ferred-stack-boundary=2 -O2 -c -o wrapper.o wrapper.c wrapper.c:30:28: net/iw_handler.h: No such file or directory wrapper.c:176: warning: `union iwreq_data' declared inside parameter list wrapper.c:176: warning: its scope is only this definition or declaration, which is probably not what you want wrapper.c:176: warning: `struct iw_request_info' declared inside parameter list wrapper.c: In function `ndis_set_essid': wrapper.c:182: error: dereferencing pointer to incomplete type wrapper.c:189: error: dereferencing pointer to incomplete type wrapper.c:189: error: dereferencing pointer to incomplete type wrapper.c:189: error: dereferencing pointer to incomplete type wrapper.c:191: error: dereferencing pointer to incomplete type wrapper.c: At top level: wrapper.c:204: warning: `union iwreq_data' declared inside parameter list wrapper.c:204: warning: `struct iw_request_info' declared inside parameter list wrapper.c: In function `ndis_get_essid': wrapper.c:216: error: dereferencing pointer to incomplete type wrapper.c:217: error: dereferencing pointer to incomplete type ... (this is repeated a LOT) wrapper.c: At top level: wrapper.c:800: error: syntax error before "ndis_handler" wrapper.c:800: warning: type defaults to `int' in declaration of `ndis_handler' wrapper.c:802: warning: initialization makes integer from pointer without a cast wrapper.c:803: warning: initialization makes integer from pointer without a cast wrapper.c:804: warning: initialization makes integer from pointer without a cast wrapper.c:805: warning: initialization makes integer from pointer without a cast wrapper.c:806: warning: initialization makes integer from pointer without a cast wrapper.c:807: warning: initialization makes integer from pointer without a cast wrapper.c:808: warning: initialization makes integer from pointer without a cast wrapper.c:809: warning: initialization makes integer from pointer without a cast wrapper.c:810: warning: initialization makes integer from pointer without a cast wrapper.c:811: warning: initialization makes integer from pointer without a cast wrapper.c:812: warning: initialization makes integer from pointer without a cast wrapper.c:814: warning: initialization makes integer from pointer without a cast wrapper.c:815: warning: initialization makes integer from pointer without a cast wrapper.c:816: warning: initialization makes integer from pointer without a cast wrapper.c:817: warning: initialization makes integer from pointer without a cast wrapper.c:818: error: `SIOCSIWSCAN' undeclared here (not in a function) wrapper.c:818: error: nonconstant array index in initializer wrapper.c:818: error: (near initialization for `ndis_handler') wrapper.c:819: warning: initialization makes integer from pointer without a cast wrapper.c:820: warning: initialization makes integer from pointer without a cast wrapper.c:821: warning: initialization makes integer from pointer without a cast wrapper.c:822: warning: data definition has no type or storage class wrapper.c:824: error: variable `ndis_handler_def' has initializer but incomplete type wrapper.c:825: error: unknown field `num_standard' specified in initializer wrapper.c:825: error: `iw_handler' undeclared here (not in a function) wrapper.c:825: warning: excess elements in struct initializer wrapper.c:825: warning: (near initialization for `ndis_handler_def') wrapper.c:826: error: unknown field `standard' specified in initializer wrapper.c:826: error: `iw_handler' undeclared here (not in a function) wrapper.c:826: error: syntax error before ')' token wrapper.c:826: warning: excess elements in struct initializer wrapper.c:826: warning: (near initialization for `ndis_handler_def') wrapper.c: In function `setup_dev': wrapper.c:1153: error: structure has no member named `wireless_handlers' wrapper.c: In function `add_driver': wrapper.c:1424: warning: implicit declaration of function `list_for_each_entry' wrapper.c:1424: error: `list' undeclared (first use in this function) wrapper.c:1425: error: syntax error before '{' token wrapper.c:1421: warning: unused variable `dup' wrapper.c:1430: error: break statement not within loop or switch wrapper.c: At top level: wrapper.c:1433: error: syntax error before "if" wrapper.c:941: warning: `hangcheck_add' defined but not used wrapper.c:951: warning: `hangcheck_del' defined but not used make: *** [wrapper.o] Error 1 Apologies for the copious output, but does anyone know what is going on, or what I should do? Should I try using a 2.6 test kernel? Is GCC 3.3.3 not the right choice? For what it's worth, I tried using gcc-2.95 (by adding CC=gcc-2.95 into Makefile.24) and I got the same results. I also downloaded the kernel headers for 2.4.22 (which have the missing "net/iw_handler.h" file), added their path to Makefile.24, with more or less the same results. Any ideas? -Adar |