To tentando usar o ndiswrapper para fazer minha placa de rede sem fio funcionar (broadcom4318)... Já instalei os headers do meu kernel e removi o ndiswrapper que vem pre-compilado no kernel..entao vamos la:

depois que descompacto o tar.gz entro no diretorio e do um make:
ps - nao vo nem colocar o resultado do make install aqui, pq logo de cara no make ja da erros: entao la vai


[email protected]:/opt/ndiswrapper-1.28# make
make -C driver
make[1]: Entrando no diretório `/opt/ndiswrapper-1.28/driver'
make -C /lib/modules/2.6.15-27-386/build SUBDIRS=/opt/ndiswrapper-1.28/driver
make[2]: Entrando no diretório `/usr/src/linux-headers-2.6.15-27-386'
Building modules, stage 2.
MODPOST
make[2]: Saindo do diretório `/usr/src/linux-headers-2.6.15-27-386'
make[1]: Saindo do diretório `/opt/ndiswrapper-1.28/driver'
make -C utils
make[1]: Entrando no diretório `/opt/ndiswrapper-1.28/utils'
gcc -g -Wall -I../driver -o loadndisdriver loadndisdriver.c
loadndisdriver.c:15:20: error: stdlib.h: Arquivo ou diretório inexistente
loadndisdriver.c:16:19: error: stdio.h: Arquivo ou diretório inexistente
loadndisdriver.c:17:19: error: errno.h: Arquivo ou diretório inexistente
loadndisdriver.c:18:20: error: string.h: Arquivo ou diretório inexistente
loadndisdriver.c:19:20: error: libgen.h: Arquivo ou diretório inexistente
In file included from /usr/lib/gcc/i486-linux-gnu/4.0.3/include/syslimits.h:7,
from /usr/lib/gcc/i486-linux-gnu/4.0.3/include/limits.h:11,
from loadndisdriver.c:28:
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/limits.h:122:61: error: limits.h: Arquivo ou diretório inexistente
loadndisdriver.c:29:19: error: ctype.h: Arquivo ou diretório inexistente
loadndisdriver.c:30:20: error: dirent.h: Arquivo ou diretório inexistente
loadndisdriver.c:31:20: error: syslog.h: Arquivo ou diretório inexistente
loadndisdriver.c:34:25: error: linux/major.h: Arquivo ou diretório inexistente
loadndisdriver.c:35:25: error: linux/ioctl.h: Arquivo ou diretório inexistente
In file included from loadndisdriver.c:37:
../driver/loader.h:24: erro: syntax error before ‘size_t’
../driver/loader.h:24: aviso: no semicolon at end of struct or union
../driver/loader.h:26: erro: syntax error before ‘}’ token
../driver/loader.h:52: erro: array type has incomplete element type
../driver/loader.h:56: erro: array type has incomplete element type
loadndisdriver.c: Na função ‘load_file’:
loadndisdriver.c:67: erro: ‘size_t’ undeclared (first use in this function)
loadndisdriver.c:67: erro: (Each undeclared identifier is reported only once
loadndisdriver.c:67: erro: for each function it appears in.)
loadndisdriver.c:67: erro: syntax error before ‘size’
loadndisdriver.c:68: erro: ‘NULL’ undeclared (first use in this function)
loadndisdriver.c:69: erro: storage size of ‘statbuf’ isn’t known
loadndisdriver.c:71: aviso: implicit declaration of function ‘basename’
loadndisdriver.c:71: aviso: initialization makes pointer from integer without a cast
loadndisdriver.c:73: aviso: implicit declaration of function ‘open’
loadndisdriver.c:73: erro: ‘O_RDONLY’ undeclared (first use in this function)
loadndisdriver.c:75: aviso: implicit declaration of function ‘syslog’
loadndisdriver.c:75: erro: ‘LOG_KERN’ undeclared (first use in this function)
loadndisdriver.c:75: erro: ‘LOG_INFO’ undeclared (first use in this function)
loadndisdriver.c:75: aviso: implicit declaration of function ‘strerror’
loadndisdriver.c:75: erro: ‘errno’ undeclared (first use in this function)
loadndisdriver.c:76: erro: ‘EINVAL’ undeclared (first use in this function)
loadndisdriver.c:79: aviso: implicit declaration of function ‘fstat’
loadndisdriver.c:81: aviso: implicit declaration of function ‘close’
loadndisdriver.c:84: erro: ‘size’ undeclared (first use in this function)
loadndisdriver.c:86: aviso: implicit declaration of function ‘mmap’
ction ‘strlen’
loadndisdriver.c:138: aviso: incompatible implicit declaration of built-in function ‘strlen’
loadndisdriver.c: Na função ‘read_conf_file’:
this function)
loadndisdriver.c:254: erro: ‘NULL’ undeclared (first use in this function)
loadndisdriver.c:258: erro: ‘LOG_KERN’ undeclared (first use in this function)
loadndisdriver.c:258: erro: ‘LOG_INFO’ undeclared (first use in this function)
loadndisdriver.c:260: erro: ‘errno’ undeclared (first use in this function)
loadndisdriver.c:262: erro: ‘EINVAL’ undeclared (first use in this function)
loadndisdriver.c:316: aviso: incompatible implicit declaration of built-in function ‘strcpy’
loadndisdriver.c:317: erro: dereferencing pointer to incomplete type
loadndisdriver.c:324: erro: dereferencing pointer to incomplete type
loadndisdriver.c:285: aviso: unused variable ‘statbuf’
loadndisdriver.c:347: erro: syntax error before ‘struct’
loadndisdriver.c:349: aviso: implicit declaration of function ‘closedir’
loadndisdriver.c:351: aviso: implicit declaration of function ‘free’
loadndisdriver.c:358: aviso: implicit declaration of function ‘munmap’
loadndisdriver.c:364: aviso: control reaches end of non-void function
loadndisdriver.c: Na função ‘get_device’:
loadndisdriver.c:371: erro: storage size of ‘statbuf’ isn’t known
loadndisdriver.c:374: erro: ‘LOG_KERN’ undeclared (first use in this function)
loadndisdriver.c:374: erro: ‘LOG_INFO’ undeclared (first use in this function)
loadndisdriver.c:377: erro: ‘errno’ undeclared (first use in this function)
loadndisdriver.c:378: erro: ‘EINVAL’ undeclared (first use in this function)
loadndisdriver.c:380: aviso: implicit declaration of function ‘snprintf’
loadndisdriver.c:380: aviso: incompatible implicit declaration of built-in function ‘snprintf’
loadndisdriver.c:403: aviso: incompatible implicit declaration of built-in function ‘strncpy’
loadndisdriver.c:371: aviso: unused variable ‘statbuf’
loadndisdriver.c: Na função ‘load_device’:
loadndisdriver.c:415: erro: ‘DIR’ undeclared (first use in this function)
loadndisdriver.c:415: erro: ‘dir’ undeclared (first use in this function)
loadndisdriver.c:419: erro: ‘LOG_KERN’ undeclared (first use in this function)
loadndisdriver.c:419: erro: ‘LOG_INFO’ undeclared (first use in this function)
loadndisdriver.c:420: aviso: incompatible implicit declaration of built-in function ‘memset’
loadndisdriver.c:422: erro: ‘errno’ undeclared (first use in this function)
loadndisdriver.c:423: erro: ‘EINVAL’ undeclared (first use in this function)
loadndisdriver.c:425: erro: ‘NULL’ undeclared (first use in this function)
loadndisdriver.c:430: aviso: assignment makes pointer from integer without a cast
loadndisdriver.c:431: erro: dereferencing pointer to incomplete type
loadndisdriver.c:432: erro: dereferencing pointer to incomplete type
loadndisdriver.c:435: erro: dereferencing pointer to incomplete type
loadndisdriver.c:444: erro: syntax error before ‘struct’
loadndisdriver.c: Na função ‘get_ioctl_device’:
loadndisdriver.c:461: erro: ‘FILE’ undeclared (first use in this function)
loadndisdriver.c:461: erro: ‘proc_misc’ undeclared (first use in this function)
loadndisdriver.c:469: aviso: implicit declaration of function ‘strstr’
loadndisdriver.c:469: aviso: incompatible implicit declaration of built-in function ‘strstr’
loadndisdriver.c:470: aviso: implicit declaration of function ‘strtol’
loadndisdriver.c:470: erro: ‘NULL’ undeclared (first use in this function)
loadndisdriver.c:480: erro: ‘LOG_KERN’ undeclared (first use in this function)
loadndisdriver.c:480: erro: ‘LOG_INFO’ undeclared (first use in this function)
loadndisdriver.c:485: aviso: implicit declaration of function ‘unlink’
loadndisdriver.c:486: aviso: implicit declaration of function ‘mknod’
loadndisdriver.c:486: erro: ‘S_IFCHR’ undeclared (first use in this function)
loadndisdriver.c:486: erro: ‘MISC_MAJOR’ undeclared (first use in this function)
loadndisdriver.c:488: erro: ‘errno’ undeclared (first use in this function)
loadndisdriver.c:493: erro: ‘O_RDONLY’ undeclared (first use in this function)
loadndisdriver.c: Na função ‘main’:
loadndisdriver.c:509: aviso: implicit declaration of function ‘openlog’
loadndisdriver.c:509: erro: ‘LOG_PERROR’ undeclared (first use in this function)
loadndisdriver.c:509: erro: ‘LOG_CONS’ undeclared (first use in this function)
loadndisdriver.c:509: erro: ‘LOG_KERN’ undeclared (first use in this function)
loadndisdriver.c:509: erro: ‘LOG_DEBUG’ undeclared (first use in this function)
loadndisdriver.c:511: erro: ‘LOG_INFO’ undeclared (first use in this function)
loadndisdriver.c:513: aviso: implicit declaration of function ‘strncmp’
loadndisdriver.c:515: aviso: implicit declaration of function ‘printf’
loadndisdriver.c:515: aviso: incompatible implicit declaration of built-in function ‘printf’
loadndisdriver.c:525: aviso: implicit declaration of function ‘atoi’
loadndisdriver.c:540: aviso: implicit declaration of function ‘atof’
loadndisdriver.c:547: aviso: implicit declaration of function ‘strcmp’
loadndisdriver.c:554: aviso: incompatible implicit declaration of built-in function ‘sscanf’
loadndisdriver.c:588: aviso: implicit declaration of function ‘closelog’
make[1]: ** [loadndisdriver] Erro 1
make[1]: Saindo do diretório `/opt/ndiswrapper-1.28/utils'
make: ** [all] Erro 2

----> Alguem aqui pode me ajudar ?