[Ubuntu-BR] Wifi ndiswrapper e afins

Leo germani leogermani em gmail.com
Terça Abril 4 19:22:22 UTC 2006


Instalei o pacote gcc-3.4 e foi quase até o fim. Depois instalei o pacote
gcc.. e deu uma pá de erro:

qd intalei o pacote gcc-3.4:

make[2]: Entrando no diretório `/usr/src/linux-headers-2.6.12-10-386'
  CC [M]  /home/leo/Desktop/ndiswrapper-1.11/driver/hal.o
  CC [M]  /home/leo/Desktop/ndiswrapper-1.11/driver/iw_ndis.o
  CC [M]  /home/leo/Desktop/ndiswrapper-1.11/driver/loader.o
  CC [M]  /home/leo/Desktop/ndiswrapper-1.11/driver/misc_funcs.o
  CC [M]  /home/leo/Desktop/ndiswrapper-1.11/driver/ndis.o
  CC [M]  /home/leo/Desktop/ndiswrapper-1.11/driver/ntoskernel.o
  CC [M]  /home/leo/Desktop/ndiswrapper-1.11/driver/ntoskernel_io.o
  CC [M]  /home/leo/Desktop/ndiswrapper-1.11/driver/pe_linker.o
  CC [M]  /home/leo/Desktop/ndiswrapper-1.11/driver/pnp.o
  CC [M]  /home/leo/Desktop/ndiswrapper-1.11/driver/proc.o
  CC [M]  /home/leo/Desktop/ndiswrapper-1.11/driver/wrapndis.o
  CC [M]  /home/leo/Desktop/ndiswrapper-1.11/driver/wrapper.o
  CC [M]  /home/leo/Desktop/ndiswrapper-1.11/driver/usb.o
  CC [M]  /home/leo/Desktop/ndiswrapper-1.11/driver/divdi3.o
  LD [M]  /home/leo/Desktop/ndiswrapper-1.11/driver/ndiswrapper.o
  Building modules, stage 2.
  MODPOST
  CC      /home/leo/Desktop/ndiswrapper-1.11/driver/ndiswrapper.mod.o
  LD [M]  /home/leo/Desktop/ndiswrapper-1.11/driver/ndiswrapper.ko
make[2]: Saindo do diretório `/usr/src/linux-headers-2.6.12-10-386'
make[1]: Saindo do diretório `/home/leo/Desktop/ndiswrapper-1.11/driver'
make -C utils
make[1]: Entrando no diretório `/home/leo/Desktop/ndiswrapper-1.11/utils'
gcc -g -Wall -DUTILS_VERSION=\"1.8\"  -o loadndisdriver loadndisdriver.c
make[1]: gcc: Comando não encontrado
make[1]: ** [loadndisdriver] Erro 127
make[1]: Saindo do diretório `/home/leo/Desktop/ndiswrapper-1.11/utils'
make: ** [all] Erro 2

-------------------------

depois de intalar o pacote gcc

make[2]: Entrando no diretório `/usr/src/linux-headers-2.6.12-10-386'
  Building modules, stage 2.
  MODPOST
make[2]: Saindo do diretório `/usr/src/linux-headers-2.6.12-10-386'
make[1]: Saindo do diretório `/home/leo/Desktop/ndiswrapper-1.11/driver'
make -C utils
make[1]: Entrando no diretório `/home/leo/Desktop/ndiswrapper-1.11/utils'
gcc -g -Wall -DUTILS_VERSION=\"1.8\"  -o loadndisdriver loadndisdriver.c
loadndisdriver.c:15:20: error: stdlib.h: Arquivo ou diretório não encontrado
loadndisdriver.c:16:19: error: stdio.h: Arquivo ou diretório não encontrado
loadndisdriver.c:17:19: error: errno.h: Arquivo ou diretório não encontrado
loadndisdriver.c:18:20: error: string.h: Arquivo ou diretório não encontrado
loadndisdriver.c:19:20: error: libgen.h: Arquivo ou diretório não encontrado
loadndisdriver.c:21:22: error: sys/mman.h: Arquivo ou diretório não
encontrado
loadndisdriver.c:23:23: error: sys/types.h: Arquivo ou diretório não
encontrado
loadndisdriver.c:24:23: error: sys/ioctl.h: Arquivo ou diretório não
encontrado
loadndisdriver.c:25:22: error: sys/stat.h: Arquivo ou diretório não
encontrado
loadndisdriver.c:26:20: error: unistd.h: Arquivo ou diretório não encontrado
loadndisdriver.c:27:19: error: fcntl.h: Arquivo ou diretório não encontrado
In file included from
/usr/lib/gcc/i486-linux-gnu/4.0.2/include/syslimits.h:7,
                 from /usr/lib/gcc/i486-linux-gnu/4.0.2/include/limits.h:11,
                 from loadndisdriver.c:28:
/usr/lib/gcc/i486-linux-gnu/4.0.2/include/limits.h:122:61: error: limits.h:
Arquivo ou diretório não encontrado
loadndisdriver.c:29:19: error: ctype.h: Arquivo ou diretório não encontrado
loadndisdriver.c:30:20: error: dirent.h: Arquivo ou diretório não encontrado
loadndisdriver.c:31:20: error: syslog.h: Arquivo ou diretório não encontrado
loadndisdriver.c:34:25: error: linux/major.h: Arquivo ou diretório não
encontrado
loadndisdriver.c:35:25: error: linux/ioctl.h: Arquivo ou diretório não
encontrado
In file included from loadndisdriver.c:37:
../driver/loader.h:24: error: syntax error before 'size_t'
../driver/loader.h:24: warning: no semicolon at end of struct or union
../driver/loader.h:26: error: syntax error before '}' token
../driver/loader.h:52: error: array type has incomplete element type
../driver/loader.h:56: error: array type has incomplete element type
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: syntax error 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:93: error: dereferencing pointer to incomplete type
loadndisdriver.c:93: error: dereferencing pointer to incomplete type
loadndisdriver.c:94: error: dereferencing pointer to incomplete type
loadndisdriver.c:94: error: dereferencing pointer to incomplete type
loadndisdriver.c:95: error: dereferencing pointer to incomplete type
loadndisdriver.c:96: error: dereferencing pointer to incomplete type
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:159: error: 'EINVAL' undeclared (first use in this
function)
loadndisdriver.c:162: warning: implicit declaration of function 'sscanf'
loadndisdriver.c:162: 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:214: error: storage size of 'driver_file' isn't known
loadndisdriver.c:218: error: 'LOG_KERN' undeclared (first use in this
function)
loadndisdriver.c:218: error: 'LOG_INFO' undeclared (first use in this
function)
loadndisdriver.c:220: warning: implicit declaration of function 'tolower'
loadndisdriver.c:222: warning: implicit declaration of function 'chdir'
loadndisdriver.c:223: error: 'errno' undeclared (first use in this function)
loadndisdriver.c:225: error: 'EINVAL' undeclared (first use in this
function)
loadndisdriver.c:231: warning: incompatible implicit declaration of built-in
function 'strncpy'
loadndisdriver.c:233: warning: implicit declaration of function 'ioctl'
loadndisdriver.c:233: warning: implicit declaration of function '_IOW'
loadndisdriver.c:233: error: syntax error before 'struct'
loadndisdriver.c:214: warning: unused variable 'driver_file'
loadndisdriver.c:236: warning: control reaches end of non-void function
loadndisdriver.c: At top level:
loadndisdriver.c:237: error: syntax error before 'return'
loadndisdriver.c: In function 'load_driver':
loadndisdriver.c:251: error: 'DIR' undeclared (first use in this function)
loadndisdriver.c:251: error: 'driver_dir' undeclared (first use in this
function)
loadndisdriver.c:253: error: 'NULL' undeclared (first use in this function)
loadndisdriver.c:257: error: 'LOG_KERN' undeclared (first use in this
function)
loadndisdriver.c:257: error: 'LOG_INFO' undeclared (first use in this
function)
loadndisdriver.c:259: error: 'errno' undeclared (first use in this function)
loadndisdriver.c:261: error: 'EINVAL' undeclared (first use in this
function)
loadndisdriver.c:263: warning: implicit declaration of function 'opendir'
loadndisdriver.c:269: warning: implicit declaration of function 'malloc'
loadndisdriver.c:269: warning: incompatible implicit declaration of built-in
function 'malloc'
loadndisdriver.c:273: warning: implicit declaration of function 'memset'
loadndisdriver.c:273: warning: incompatible implicit declaration of built-in
function 'memset'
loadndisdriver.c:274: warning: incompatible implicit declaration of built-in
function 'strncpy'
loadndisdriver.c:282: warning: implicit declaration of function 'readdir'
loadndisdriver.c:282: warning: assignment makes pointer from integer without
a cast
loadndisdriver.c:284: error: storage size of 'statbuf' isn't known
loadndisdriver.c:286: warning: implicit declaration of function 'strcmp'
loadndisdriver.c:286: error: dereferencing pointer to incomplete type
loadndisdriver.c:287: error: dereferencing pointer to incomplete type
loadndisdriver.c:290: warning: implicit declaration of function 'stat'
loadndisdriver.c:290: error: dereferencing pointer to incomplete type
loadndisdriver.c:291: warning: implicit declaration of function 'S_ISREG'
loadndisdriver.c:292: error: dereferencing pointer to incomplete type
loadndisdriver.c:297: warning: incompatible implicit declaration of built-in
function 'strlen'
loadndisdriver.c:297: 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:305: error: dereferencing pointer to incomplete type
loadndisdriver.c:306: error: dereferencing pointer to incomplete type
loadndisdriver.c:308: error: dereferencing pointer to incomplete type
loadndisdriver.c:314: error: dereferencing pointer to incomplete type
loadndisdriver.c:315: error: dereferencing pointer to incomplete type
loadndisdriver.c:316: warning: implicit declaration of function 'strcpy'
loadndisdriver.c:316: warning: incompatible implicit declaration of built-in
function 'strcpy'
loadndisdriver.c:317: error: dereferencing pointer to incomplete type
loadndisdriver.c:324: error: dereferencing pointer to incomplete type
loadndisdriver.c:284: warning: unused variable 'statbuf'
loadndisdriver.c:347: error: syntax error before 'struct'
loadndisdriver.c:349: warning: implicit declaration of function 'closedir'
loadndisdriver.c:351: warning: implicit declaration of function 'free'
loadndisdriver.c:358: warning: implicit declaration of function 'munmap'
loadndisdriver.c:364: warning: control reaches end of non-void function
loadndisdriver.c: At top level:
loadndisdriver.c:383: error: syntax error before '*' token
loadndisdriver.c: In function 'add_driver_devices':
loadndisdriver.c:389: error: 'from' undeclared (first use in this function)
loadndisdriver.c:390: error: 'dir' undeclared (first use in this function)
loadndisdriver.c:390: error: 'driver_name' undeclared (first use in this
function)
loadndisdriver.c:391: error: 'LOG_KERN' undeclared (first use in this
function)
loadndisdriver.c:391: error: 'LOG_INFO' undeclared (first use in this
function)
loadndisdriver.c:396: warning: assignment makes pointer from integer without
a cast
loadndisdriver.c:405: error: dereferencing pointer to incomplete type
loadndisdriver.c:406: error: dereferencing pointer to incomplete type
loadndisdriver.c:409: warning: incompatible implicit declaration of built-in
function 'strlen'
loadndisdriver.c:409: error: dereferencing pointer to incomplete type
loadndisdriver.c:410: error: dereferencing pointer to incomplete type
loadndisdriver.c:411: error: storage size of 'statbuf' isn't known
loadndisdriver.c:415: error: dereferencing pointer to incomplete type
loadndisdriver.c:416: error: 'errno' undeclared (first use in this function)
loadndisdriver.c:421: error: dereferencing pointer to incomplete type
loadndisdriver.c:421: warning: assignment makes pointer from integer without
a cast
loadndisdriver.c:425: error: 'devices' undeclared (first use in this
function)
loadndisdriver.c:427: warning: incompatible implicit declaration of built-in
function 'sscanf'
loadndisdriver.c:440: error: dereferencing pointer to incomplete type
loadndisdriver.c:448: warning: incompatible implicit declaration of built-in
function 'strncpy'
loadndisdriver.c:450: error: dereferencing pointer to incomplete type
loadndisdriver.c:452: warning: implicit declaration of function 'strncat'
loadndisdriver.c:452: warning: incompatible implicit declaration of built-in
function 'strncat'
loadndisdriver.c:411: warning: unused variable 'statbuf'
loadndisdriver.c: In function 'load_all_devices':
loadndisdriver.c:472: error: storage size of 'statbuf' isn't known
loadndisdriver.c:474: error: 'DIR' undeclared (first use in this function)
loadndisdriver.c:474: error: 'dir' undeclared (first use in this function)
loadndisdriver.c:474: error: 'driver' undeclared (first use in this
function)
loadndisdriver.c:474: warning: left-hand operand of comma expression has no
effect
loadndisdriver.c:474: warning: statement with no effect
loadndisdriver.c:480: error: 'LOG_KERN' undeclared (first use in this
function)
loadndisdriver.c:480: error: 'LOG_INFO' undeclared (first use in this
function)
loadndisdriver.c:480: error: 'errno' undeclared (first use in this function)
loadndisdriver.c:482: error: 'EINVAL' undeclared (first use in this
function)
loadndisdriver.c:484: error: 'NULL' undeclared (first use in this function)
loadndisdriver.c:490: warning: incompatible implicit declaration of built-in
function 'malloc'
loadndisdriver.c:496: warning: assignment makes pointer from integer without
a cast
loadndisdriver.c:497: error: dereferencing pointer to incomplete type
loadndisdriver.c:498: error: dereferencing pointer to incomplete type
loadndisdriver.c:501: error: dereferencing pointer to incomplete type
loadndisdriver.c:502: warning: implicit declaration of function 'S_ISDIR'
loadndisdriver.c:504: error: dereferencing pointer to incomplete type
loadndisdriver.c:505: error: dereferencing pointer to incomplete type
loadndisdriver.c:509: error: dereferencing pointer to incomplete type
loadndisdriver.c:510: error: dereferencing pointer to incomplete type
loadndisdriver.c:515: error: dereferencing pointer to incomplete type
loadndisdriver.c:531: error: syntax error before 'struct'
loadndisdriver.c:472: warning: unused variable 'statbuf'
loadndisdriver.c: In function 'get_ioctl_device':
loadndisdriver.c:552: error: 'FILE' undeclared (first use in this function)
loadndisdriver.c:552: error: 'proc_misc' undeclared (first use in this
function)loadndisdriver.c:560: warning: implicit declaration of function
'strstr'
loadndisdriver.c:560: warning: incompatible implicit declaration of built-in
function 'strstr'
loadndisdriver.c:561: warning: implicit declaration of function 'strtol'
loadndisdriver.c:561: error: 'NULL' undeclared (first use in this function)
loadndisdriver.c:571: error: 'LOG_KERN' undeclared (first use in this
function)
loadndisdriver.c:571: error: 'LOG_INFO' undeclared (first use in this
function)
loadndisdriver.c:576: warning: implicit declaration of function 'unlink'
loadndisdriver.c:577: warning: implicit declaration of function 'mknod'
loadndisdriver.c:577: error: 'S_IFCHR' undeclared (first use in this
function)
loadndisdriver.c:577: error: 'MISC_MAJOR' undeclared (first use in this
function)
loadndisdriver.c:579: error: 'errno' undeclared (first use in this function)
loadndisdriver.c:584: error: 'O_RDONLY' undeclared (first use in this
function)
loadndisdriver.c: In function 'main':
loadndisdriver.c:605: warning: implicit declaration of function 'openlog'
loadndisdriver.c:605: error: 'LOG_PERROR' undeclared (first use in this
function)
loadndisdriver.c:605: error: 'LOG_CONS' undeclared (first use in this
function)
loadndisdriver.c:605: error: 'LOG_KERN' undeclared (first use in this
function)
loadndisdriver.c:605: error: 'LOG_DEBUG' undeclared (first use in this
function)loadndisdriver.c:607: error: 'LOG_INFO' undeclared (first use in
this function)
loadndisdriver.c:609: warning: implicit declaration of function 'strncmp'
loadndisdriver.c:611: warning: implicit declaration of function 'printf'
loadndisdriver.c:611: warning: incompatible implicit declaration of built-in
function 'printf'
loadndisdriver.c:621: warning: implicit declaration of function 'atoi'
loadndisdriver.c:636: warning: implicit declaration of function 'atof'
loadndisdriver.c:668: warning: implicit declaration of function 'closelog'
make[1]: ** [loadndisdriver] Erro 1
make[1]: Saindo do diretório `/home/leo/Desktop/ndiswrapper-1.11/utils'
make: ** [all] Erro 2



More information about the ubuntu-br mailing list