PDA

View Full Version : [ubuntu] Installing ndiswrapper1.55



RaDeuX
November 19th, 2009, 10:12 AM
So my Dell Inspiron 9100 comes with a Broadcom chipset wireless card, so I need to install ndiswrapper. However, each time I uncompress the file and do "make distclean", it gives me a module 2 error. I'm not sure why. I did everything exactly the same way as this tutorial mentions: http://ubuntuforums.org/showthread.php?t=201902

RaDeuX
November 19th, 2009, 12:20 PM
Even "make" without "distclean" doesn't work...

RaDeuX
November 21st, 2009, 09:19 AM
t@DI9100:/home/radeux/Apps/ndiswrapper-1.55# make
make -C driver
make[1]: Entering directory `/home/radeux/Apps/ndiswrapper-1.55/driver'
make -C /usr/src/linux-headers-2.6.22-14-generic M=/home/radeux/Apps/ndiswrapper-1.55/driver
make[2]: Entering directory `/usr/src/linux-headers-2.6.22-14-generic'
LD /home/radeux/Apps/ndiswrapper-1.55/driver/built-in.o
MKEXPORT /home/radeux/Apps/ndiswrapper-1.55/driver/crt_exports.h
MKEXPORT /home/radeux/Apps/ndiswrapper-1.55/driver/hal_exports.h
MKEXPORT /home/radeux/Apps/ndiswrapper-1.55/driver/ndis_exports.h
MKEXPORT /home/radeux/Apps/ndiswrapper-1.55/driver/ntoskernel_exports.h
MKEXPORT /home/radeux/Apps/ndiswrapper-1.55/driver/ntoskernel_io_exports.h
MKEXPORT /home/radeux/Apps/ndiswrapper-1.55/driver/rtl_exports.h
MKEXPORT /home/radeux/Apps/ndiswrapper-1.55/driver/usb_exports.h
CC [M] /home/radeux/Apps/ndiswrapper-1.55/driver/crt.o
CC [M] /home/radeux/Apps/ndiswrapper-1.55/driver/hal.o
CC [M] /home/radeux/Apps/ndiswrapper-1.55/driver/iw_ndis.o
CC [M] /home/radeux/Apps/ndiswrapper-1.55/driver/loader.o
CC [M] /home/radeux/Apps/ndiswrapper-1.55/driver/ndis.o
CC [M] /home/radeux/Apps/ndiswrapper-1.55/driver/ntoskernel.o
CC [M] /home/radeux/Apps/ndiswrapper-1.55/driver/ntoskernel_io.o
CC [M] /home/radeux/Apps/ndiswrapper-1.55/driver/pe_linker.o
CC [M] /home/radeux/Apps/ndiswrapper-1.55/driver/pnp.o
CC [M] /home/radeux/Apps/ndiswrapper-1.55/driver/proc.o
CC [M] /home/radeux/Apps/ndiswrapper-1.55/driver/rtl.o
CC [M] /home/radeux/Apps/ndiswrapper-1.55/driver/wrapmem.o
CC [M] /home/radeux/Apps/ndiswrapper-1.55/driver/wrapndis.o
CC [M] /home/radeux/Apps/ndiswrapper-1.55/driver/wrapper.o
CC [M] /home/radeux/Apps/ndiswrapper-1.55/driver/usb.o
CC [M] /home/radeux/Apps/ndiswrapper-1.55/driver/divdi3.o
LD [M] /home/radeux/Apps/ndiswrapper-1.55/driver/ndiswrapper.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/radeux/Apps/ndiswrapper-1.55/driver/ndiswrapper.mod.o
LD [M] /home/radeux/Apps/ndiswrapper-1.55/driver/ndiswrapper.ko
make[2]: Leaving directory `/usr/src/linux-headers-2.6.22-14-generic'
make[1]: Leaving directory `/home/radeux/Apps/ndiswrapper-1.55/driver'
make -C utils
make[1]: Entering directory `/home/radeux/Apps/ndiswrapper-1.55/utils'
gcc -g -Wall -I../driver -o loadndisdriver loadndisdriver.c
loadndisdriver.c:15:20: error: stdlib.h: No such file or directory
loadndisdriver.c:16:19: error: stdio.h: No such file or directory
loadndisdriver.c:17:19: error: errno.h: No such file or directory
loadndisdriver.c:18:20: error: string.h: No such file or directory
loadndisdriver.c:19:20: error: libgen.h: No such file or directory
loadndisdriver.c:21:22: error: sys/mman.h: No such file or directory
loadndisdriver.c:23:23: error: sys/types.h: No such file or directory
loadndisdriver.c:24:23: error: sys/ioctl.h: No such file or directory
loadndisdriver.c:25:22: error: sys/stat.h: No such file or directory
loadndisdriver.c:26:20: error: unistd.h: No such file or directory
loadndisdriver.c:27:19: error: fcntl.h: No such file or directory
In file included from /usr/lib/gcc/i486-linux-gnu/4.1.3/include/syslimits.h:7,
from /usr/lib/gcc/i486-linux-gnu/4.1.3/include/limits.h:11,
from loadndisdriver.c:28:
/usr/lib/gcc/i486-linux-gnu/4.1.3/include/limits.h:122:61: error: limits.h: No such file or directory
loadndisdriver.c:29:19: error: ctype.h: No such file or directory
loadndisdriver.c:30:20: error: dirent.h: No such file or directory
loadndisdriver.c:31:20: error: syslog.h: No such file or directory
loadndisdriver.c:34:25: error: linux/major.h: No such file or directory
loadndisdriver.c:35:25: error: linux/ioctl.h: No such file or directory
In file included from loadndisdriver.c:37:
../driver/loader.h:28: error: expected specifier-qualifier-list before ‚續size_t‚蘗
loadndisdriver.c: In function ‚續load_file‚蘗:
loadndisdriver.c:67: error: ‚續size_t‚蘗 undeclared (first use in this function)
loadndisdriver.c:67: error: (Each undeclared identifier is reported only once
loadndisdriver.c:67: error: for each function it appears in.)
loadndisdriver.c:67: error: expected ‚續;‚蘗 before ‚續size‚蘗
loadndisdriver.c:68: error: ‚續NULL‚蘗 undeclared (first use in this function)
loadndisdriver.c:69: error: storage size of ‚續statbuf‚蘗 isn‚蘗t known
loadndisdriver.c:71: warning: implicit declaration of function ‚續basename‚蘗
loadndisdriver.c:71: warning: initialization makes pointer from integer without a cast
loadndisdriver.c:73: warning: implicit declaration of function ‚續open‚蘗
loadndisdriver.c:73: error: ‚續O_RDONLY‚蘗 undeclared (first use in this function)
loadndisdriver.c:75: warning: implicit declaration of function ‚續syslog‚蘗
loadndisdriver.c:75: error: ‚續LOG_KERN‚蘗 undeclared (first use in this function)
loadndisdriver.c:75: error: ‚續LOG_INFO‚蘗 undeclared (first use in this function)
loadndisdriver.c:75: warning: implicit declaration of function ‚續strerror‚蘗
loadndisdriver.c:75: error: ‚續errno‚蘗 undeclared (first use in this function)
loadndisdriver.c:76: error: ‚續EINVAL‚蘗 undeclared (first use in this function)
loadndisdriver.c:79: warning: implicit declaration of function ‚續fstat‚蘗
loadndisdriver.c:81: warning: implicit declaration of function ‚續close‚蘗
loadndisdriver.c:84: error: ‚續size‚蘗 undeclared (first use in this function)
loadndisdriver.c:86: warning: implicit declaration of function ‚續mmap‚蘗
loadndisdriver.c:86: error: ‚續PROT_READ‚蘗 undeclared (first use in this function)
loadndisdriver.c:86: error: ‚續MAP_PRIVATE‚蘗 undeclared (first use in this function)
loadndisdriver.c:86: warning: assignment makes pointer from integer without a cast
loadndisdriver.c:87: error: ‚續MAP_FAILED‚蘗 undeclared (first use in this function)
loadndisdriver.c:93: warning: implicit declaration of function ‚續strncpy‚蘗
loadndisdriver.c:93: warning: incompatible implicit declaration of built-in function ‚續strncpy‚蘗
loadndisdriver.c:95: error: ‚續struct load_driver_file‚蘗 has no member named ‚續size‚蘗
loadndisdriver.c:96: error: ‚續struct load_driver_file‚蘗 has no member named ‚續data‚蘗
loadndisdriver.c:69: warning: unused variable ‚續statbuf‚蘗
loadndisdriver.c: In function ‚續parse_setting_line‚蘗:
loadndisdriver.c:109: warning: implicit declaration of function ‚續isspace‚蘗
loadndisdriver.c:115: warning: implicit declaration of function ‚續strchr‚蘗
loadndisdriver.c:115: warning: incompatible implicit declaration of built-in function ‚續strchr‚蘗
loadndisdriver.c:115: error: ‚續NULL‚蘗 undeclared (first use in this function)
loadndisdriver.c:117: error: ‚續LOG_KERN‚蘗 undeclared (first use in this function)
loadndisdriver.c:117: error: ‚續LOG_INFO‚蘗 undeclared (first use in this function)
loadndisdriver.c:118: error: ‚續EINVAL‚蘗 undeclared (first use in this function)
loadndisdriver.c:138: warning: implicit declaration of function ‚續strlen‚蘗
loadndisdriver.c:138: warning: incompatible implicit declaration of built-in function ‚續strlen‚蘗
loadndisdriver.c: In function ‚續read_conf_file‚蘗:
loadndisdriver.c:150: error: storage size of ‚續statbuf‚蘗 isn‚蘗t known
loadndisdriver.c:151: error: ‚續FILE‚蘗 undeclared (first use in this function)
loadndisdriver.c:151: error: ‚續config‚蘗 undeclared (first use in this function)
loadndisdriver.c:157: warning: implicit declaration of function ‚續lstat‚蘗
loadndisdriver.c:158: error: ‚續LOG_KERN‚蘗 undeclared (first use in this function)
loadndisdriver.c:158: error: ‚續LOG_INFO‚蘗 undeclared (first use in this function)
loadndisdriver.c:158: error: ‚續errno‚蘗 undeclared (first use in this function)
loadndisdriver.c:160: error: ‚續EINVAL‚蘗 undeclared (first use in this function)
loadndisdriver.c:163: warning: implicit declaration of function ‚續sscanf‚蘗
loadndisdriver.c:163: warning: incompatible implicit declaration of built-in function ‚續sscanf‚蘗
loadndisdriver.c:178: warning: implicit declaration of function ‚續fopen‚蘗
loadndisdriver.c:178: error: ‚續NULL‚蘗 undeclared (first use in this function)
loadndisdriver.c:182: warning: implicit declaration of function ‚續fgets‚蘗
loadndisdriver.c:194: warning: incompatible implicit declaration of built-in function ‚續strncpy‚蘗
loadndisdriver.c:205: warning: implicit declaration of function ‚續fclose‚蘗
loadndisdriver.c:150: warning: unused variable ‚續statbuf‚蘗
loadndisdriver.c: In function ‚續load_bin_file‚蘗:
loadndisdriver.c:217: error: ‚續LOG_KERN‚蘗 undeclared (first use in this function)
loadndisdriver.c:217: error: ‚續LOG_INFO‚蘗 undeclared (first use in this function)
loadndisdriver.c:219: warning: implicit declaration of function ‚續tolower‚蘗
loadndisdriver.c:221: warning: implicit declaration of function ‚續chdir‚蘗
loadndisdriver.c:222: error: ‚續errno‚蘗 undeclared (first use in this function)
loadndisdriver.c:224: error: ‚續EINVAL‚蘗 undeclared (first use in this function)
loadndisdriver.c:230: warning: incompatible implicit declaration of built-in function ‚續strncpy‚蘗
loadndisdriver.c:232: warning: implicit declaration of function ‚續ioctl‚蘗
loadndisdriver.c:232: warning: implicit declaration of function ‚續_IOW‚蘗
loadndisdriver.c:232: error: expected expression before ‚續struct‚蘗
loadndisdriver.c: In function ‚續load_driver‚蘗:
loadndisdriver.c:249: error: ‚續DIR‚蘗 undeclared (first use in this function)
loadndisdriver.c:249: error: ‚續driver_dir‚蘗 undeclared (first use in this function)
loadndisdriver.c:251: error: ‚續NULL‚蘗 undeclared (first use in this function)
loadndisdriver.c:255: error: ‚續LOG_KERN‚蘗 undeclared (first use in this function)
loadndisdriver.c:255: error: ‚續LOG_INFO‚蘗 undeclared (first use in this function)
loadndisdriver.c:257: error: ‚續errno‚蘗 undeclared (first use in this function)
loadndisdriver.c:259: error: ‚續EINVAL‚蘗 undeclared (first use in this function)
loadndisdriver.c:261: warning: implicit declaration of function ‚續opendir‚蘗
loadndisdriver.c:267: warning: implicit declaration of function ‚續malloc‚蘗
loadndisdriver.c:267: warning: incompatible implicit declaration of built-in function ‚續malloc‚蘗
loadndisdriver.c:271: warning: implicit declaration of function ‚續memset‚蘗
loadndisdriver.c:271: warning: incompatible implicit declaration of built-in function ‚續memset‚蘗
loadndisdriver.c:272: warning: incompatible implicit declaration of built-in function ‚續strncpy‚蘗
loadndisdriver.c:280: warning: implicit declaration of function ‚續readdir‚蘗
loadndisdriver.c:280: warning: assignment makes pointer from integer without a cast
loadndisdriver.c:282: error: storage size of ‚續statbuf‚蘗 isn‚蘗t known
loadndisdriver.c:284: error: dereferencing pointer to incomplete type
loadndisdriver.c:287: warning: implicit declaration of function ‚續stat‚蘗
loadndisdriver.c:287: error: dereferencing pointer to incomplete type
loadndisdriver.c:288: warning: implicit declaration of function ‚續S_ISREG‚蘗
loadndisdriver.c:289: error: dereferencing pointer to incomplete type
loadndisdriver.c:294: warning: incompatible implicit declaration of built-in function ‚續strlen‚蘗
loadndisdriver.c:294: error: dereferencing pointer to incomplete type
loadndisdriver.c:296: warning: implicit declaration of function ‚續strcasecmp‚蘗
loadndisdriver.c:296: error: dereferencing pointer to incomplete type
loadndisdriver.c:299: error: dereferencing pointer to incomplete type
loadndisdriver.c:302: error: dereferencing pointer to incomplete type
loadndisdriver.c:303: error: dereferencing pointer to incomplete type
loadndisdriver.c:305: error: dereferencing pointer to incomplete type
loadndisdriver.c:311: error: dereferencing pointer to incomplete type
loadndisdriver.c:312: error: dereferencing pointer to incomplete type
loadndisdriver.c:313: warning: implicit declaration of function ‚續strcpy‚蘗
loadndisdriver.c:313: warning: incompatible implicit declaration of built-in function ‚續strcpy‚蘗
loadndisdriver.c:314: error: dereferencing pointer to incomplete type
loadndisdriver.c:317: error: ‚續struct load_driver_file‚蘗 has no member named ‚續size‚蘗
loadndisdriver.c:318: error: ‚續struct load_driver_file‚蘗 has no member named ‚續data‚蘗
loadndisdriver.c:321: error: dereferencing pointer to incomplete type
loadndisdriver.c:282: warning: unused variable ‚續statbuf‚蘗
loadndisdriver.c:344: error: expected expression before ‚續struct‚蘗
loadndisdriver.c:346: warning: implicit declaration of function ‚續closedir‚蘗
loadndisdriver.c:348: warning: implicit declaration of function ‚續free‚蘗
loadndisdriver.c:355: warning: implicit declaration of function ‚續munmap‚蘗
loadndisdriver.c:355: error: ‚續struct load_driver_file‚蘗 has no member named ‚續data‚蘗
loadndisdriver.c:355: error: ‚續struct load_driver_file‚蘗 has no member named ‚續size‚蘗
loadndisdriver.c:357: error: ‚續struct load_driver_file‚蘗 has no member named ‚續data‚蘗
loadndisdriver.c:357: error: ‚續struct load_driver_file‚蘗 has no member named ‚續size‚蘗
loadndisdriver.c: In function ‚續get_device‚蘗:
loadndisdriver.c:367: error: storage size of ‚續statbuf‚蘗 isn‚蘗t known
loadndisdriver.c:370: error: ‚續LOG_KERN‚蘗 undeclared (first use in this function)
loadndisdriver.c:370: error: ‚續LOG_INFO‚蘗 undeclared (first use in this function)
loadndisdriver.c:373: error: ‚續errno‚蘗 undeclared (first use in this function)
loadndisdriver.c:374: error: ‚續EINVAL‚蘗 undeclared (first use in this function)
loadndisdriver.c:376: warning: implicit declaration of function ‚續snprintf‚蘗
loadndisdriver.c:376: warning: incompatible implicit declaration of built-in function ‚續snprintf‚蘗
loadndisdriver.c:407: warning: incompatible implicit declaration of built-in function ‚續strncpy‚蘗
loadndisdriver.c:367: warning: unused variable ‚續statbuf‚蘗
loadndisdriver.c: In function ‚續load_device‚蘗:
loadndisdriver.c:419: error: ‚續DIR‚蘗 undeclared (first use in this function)
loadndisdriver.c:419: error: ‚續dir‚蘗 undeclared (first use in this function)
loadndisdriver.c:423: error: ‚續LOG_KERN‚蘗 undeclared (first use in this function)
loadndisdriver.c:423: error: ‚續LOG_INFO‚蘗 undeclared (first use in this function)
loadndisdriver.c:424: warning: incompatible implicit declaration of built-in function ‚續memset‚蘗
loadndisdriver.c:426: error: ‚續errno‚蘗 undeclared (first use in this function)
loadndisdriver.c:427: error: ‚續EINVAL‚蘗 undeclared (first use in this function)
loadndisdriver.c:429: error: ‚續NULL‚蘗 undeclared (first use in this function)
loadndisdriver.c:434: warning: assignment makes pointer from integer without a cast
loadndisdriver.c:435: error: dereferencing pointer to incomplete type
loadndisdriver.c:436: error: dereferencing pointer to incomplete type
loadndisdriver.c:439: error: dereferencing pointer to incomplete type
loadndisdriver.c:447: error: expected expression before ‚續struct‚蘗
loadndisdriver.c: In function ‚續get_ioctl_device‚蘗:
loadndisdriver.c:464: error: ‚續FILE‚蘗 undeclared (first use in this function)
loadndisdriver.c:464: error: ‚續proc_misc‚蘗 undeclared (first use in this function)
loadndisdriver.c:472: warning: implicit declaration of function ‚續strstr‚蘗
loadndisdriver.c:472: warning: incompatible implicit declaration of built-in function ‚續strstr‚蘗
loadndisdriver.c:473: warning: implicit declaration of function ‚續strtol‚蘗
loadndisdriver.c:473: error: ‚續NULL‚蘗 undeclared (first use in this function)
loadndisdriver.c:483: error: ‚續LOG_KERN‚蘗 undeclared (first use in this function)
loadndisdriver.c:483: error: ‚續LOG_INFO‚蘗 undeclared (first use in this function)
loadndisdriver.c:488: warning: implicit declaration of function ‚續unlink‚蘗
loadndisdriver.c:489: warning: implicit declaration of function ‚續mknod‚蘗
loadndisdriver.c:489: error: ‚續S_IFCHR‚蘗 undeclared (first use in this function)
loadndisdriver.c:489: error: ‚續MISC_MAJOR‚蘗 undeclared (first use in this function)
loadndisdriver.c:490: error: ‚續errno‚蘗 undeclared (first use in this function)
loadndisdriver.c:495: error: ‚續O_RDONLY‚蘗 undeclared (first use in this function)
loadndisdriver.c: In function ‚續main‚蘗:
loadndisdriver.c:511: warning: implicit declaration of function ‚續openlog‚蘗
loadndisdriver.c:511: error: ‚續LOG_PERROR‚蘗 undeclared (first use in this function)
loadndisdriver.c:511: error: ‚續LOG_CONS‚蘗 undeclared (first use in this function)
loadndisdriver.c:511: error: ‚續LOG_KERN‚蘗 undeclared (first use in this function)
loadndisdriver.c:511: error: ‚續LOG_DEBUG‚蘗 undeclared (first use in this function)
loadndisdriver.c:513: error: ‚續LOG_INFO‚蘗 undeclared (first use in this function)
loadndisdriver.c:515: warning: implicit declaration of function ‚續strncmp‚蘗
loadndisdriver.c:517: warning: implicit declaration of function ‚續printf‚蘗
loadndisdriver.c:517: warning: incompatible implicit declaration of built-in function ‚續printf‚蘗
loadndisdriver.c:527: warning: implicit declaration of function ‚續atoi‚蘗
loadndisdriver.c:542: warning: implicit declaration of function ‚續atof‚蘗
loadndisdriver.c:549: warning: implicit declaration of function ‚續strcmp‚蘗
loadndisdriver.c:556: warning: incompatible implicit declaration of built-in function ‚續sscanf‚蘗
loadndisdriver.c:590: warning: implicit declaration of function ‚續closelog‚蘗
make[1]: *** [loadndisdriver] Error 1
make[1]: Leaving directory `/home/radeux/Apps/ndiswrapper-1.55/utils'
make: *** [all] Error 2
root@DI9100:/home/radeux/Apps/ndiswrapper-1.55#





That's the error message I got...