当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 4 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 新手求教:关于ubuntu安装无线网卡的错误
帖子发表于 : 2007-01-17 3:13 

注册: 2007-01-15 22:47
帖子: 6
送出感谢: 0 次
接收感谢: 0 次
最近刚装上ubuntu6.10,想学习linux.
可是,由于我在家中是组建的无线网络,而我的无线网卡是TP-LINK的TL-WN650G,不能直接被ubuntu支持,于是到网上查找解决办法,找到了两种.一种是用madwifi,还有一种是使用ndiswrapper.
可是,我试了两种办法,都无法在我机器上通过。
下面是我的实际操作过程,请达人指教:
安装madwifi
代码:
root@Linux:~# tar xvzf madwifi-ng-current.tar.gz
madwifi-ng-r1968-20070113/
madwifi-ng-r1968-20070113/regression/
madwifi-ng-r1968-20070113/regression/ccmp/
madwifi-ng-r1968-20070113/regression/ccmp/test_ccmp.c
.........
madwifi-ng-r1968-20070113/kernelversion.c
madwifi-ng-r1968-20070113/SNAPSHOT
madwifi-ng-r1968-20070113/BuildCaps.inc

解压缩没有任何问题,下面问题就来了
代码:
root@Linux:~# cd madwifi-ng-r1968-20070113
root@Linux:~/madwifi-ng-r1968-20070113# make
Checking requirements... ok.
Checking kernel configuration... ok.
make -C /lib/modules/2.6.17-10-generic/build SUBDIRS=/root/madwifi-ng-r1968-20070113 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.17-10-generic'
  CC [M]  /root/madwifi-ng-r1968-20070113/ath/if_ath.o
  CC [M]  /root/madwifi-ng-r1968-20070113/ath/if_ath_pci.o
  LD [M]  /root/madwifi-ng-r1968-20070113/ath/ath_pci.o
  CC [M]  /root/madwifi-ng-r1968-20070113/ath_hal/ah_os.o
  HOSTCC  /root/madwifi-ng-r1968-20070113/ath_hal/uudecode
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:26:19: error: stdio.h: No such file or directory
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:27:19: error: errno.h: No such file or directory
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:28:20: error: getopt.h: No such file or directory
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:29:20: error: string.h: No such file or directory
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:30:20: error: stdlib.h: No such file or directory
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:32:23: error: sys/fcntl.h: No such file or directory
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:33:22: error: sys/stat.h: No such file or directory
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c: In function 'uudecode_usage':
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:37: warning: implicit declaration of function 'printf'
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:37: warning: incompatible implicit declaration of built-in function 'printf'
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c: At top level:
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:40: error: expected ')' before '*' token
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:70: error: expected ')' before '*' token
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c: In function 'main':
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:121: error: 'FILE' undeclared (first use in this function)
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:121: error: (Each undeclared identifier is reported only once
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:121: error: for each function it appears in.)
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:121: error: 'src_stream' undeclared (first use in this function)
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:122: error: 'dst_stream' undeclared (first use in this function)
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:122: error: 'NULL' undeclared (first use in this function)
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:130: warning: implicit declaration of function 'getopt'
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:134: error: 'optarg' undeclared (first use in this function)
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:138: warning: implicit declaration of function 'exit'
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:138: warning: incompatible implicit declaration of built-in function 'exit'
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:141: error: 'optind' undeclared (first use in this function)
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:142: error: 'stdin' undeclared (first use in this function)
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:144: warning: implicit declaration of function 'fopen'
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:146: warning: implicit declaration of function 'fprintf'
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:146: warning: incompatible implicit declaration of built-in function 'fprintf'
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:146: error: 'stderr' undeclared (first use in this function)
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:147: warning: implicit declaration of function 'strerror'
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:147: error: 'errno' undeclared (first use in this function)
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:147: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:148: warning: incompatible implicit declaration of built-in function 'exit'
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:152: warning: incompatible implicit declaration of built-in function 'exit'
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:156: warning: implicit declaration of function 'get_line_from_file'
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:156: warning: assignment makes pointer from integer without a cast
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:157: warning: implicit declaration of function 'strncmp'
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:164: warning: incompatible implicit declaration of built-in function 'fprintf'
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:165: warning: incompatible implicit declaration of built-in function 'exit'
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:168: warning: implicit declaration of function 'strtoul'
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:170: warning: implicit declaration of function 'strchr'
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:170: warning: incompatible implicit declaration of built-in function 'strchr'
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:172: warning: incompatible implicit declaration of built-in function 'fprintf'
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:173: warning: incompatible implicit declaration of built-in function 'exit'
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:178: warning: implicit declaration of function 'strcmp'
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:179: error: 'stdout' undeclared (first use in this function)
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:182: error: 'O_WRONLY' undeclared (first use in this function)
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:182: error: 'O_CREAT' undeclared (first use in this function)
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:182: error: 'O_TRUNC' undeclared (first use in this function)
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:186: error: 'O_EXCL' undeclared (first use in this function)
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:188: warning: implicit declaration of function 'open'
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:189: error: 'S_IRWXU' undeclared (first use in this function)
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:189: error: 'S_IRWXG' undeclared (first use in this function)
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:189: error: 'S_IRWXO' undeclared (first use in this function)
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:191: warning: implicit declaration of function 'fdopen'
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:193: warning: incompatible implicit declaration of built-in function 'fprintf'
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:194: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:195: warning: incompatible implicit declaration of built-in function 'exit'
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:199: warning: implicit declaration of function 'read_stduu'
/root/madwifi-ng-r1968-20070113/ath_hal/uudecode.c:201: warning: implicit declaration of function 'fclose'
make[3]: *** [/root/madwifi-ng-r1968-20070113/ath_hal/uudecode] Error 1
make[2]: *** [/root/madwifi-ng-r1968-20070113/ath_hal] Error 2
make[1]: *** [_module_/root/madwifi-ng-r1968-20070113] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.17-10-generic'
make: *** [modules] Error 2


又是提示没有文件,又是提示声明函数错误的.不知道为什么别人能正确,到我这里就不正确了.于是,无法执行下去,只能换第二个办法,安装ndiswrapper
下面是我的安装过程
代码:
root@Linux:~# tar xvzf ndiswrapper-1.34.tar.gz
ndiswrapper-1.34/
ndiswrapper-1.34/AUTHORS
ndiswrapper-1.34/ChangeLog
ndiswrapper-1.34/INSTALL
......
ndiswrapper-1.34/driver/wrapndis.c
ndiswrapper-1.34/driver/lin2win.h
ndiswrapper-1.34/driver/win2lin_stubs.S

同样的,解压缩没有任何问题.可是编译安装就又来问题了.
代码:
root@Linux:~# cd ndiswrapper-1.34
root@Linux:~/ndiswrapper-1.34# make install
make -C driver install
make[1]: Entering directory `/root/ndiswrapper-1.34/driver'
make -C /lib/modules/2.6.17-10-generic/build SUBDIRS=/root/ndiswrapper-1.34/driver
make[2]: Entering directory `/usr/src/linux-headers-2.6.17-10-generic'
  LD      /root/ndiswrapper-1.34/driver/built-in.o
  CC [M]  /root/ndiswrapper-1.34/driver/crt.o
  CC [M]  /root/ndiswrapper-1.34/driver/hal.o
  CC [M]  /root/ndiswrapper-1.34/driver/iw_ndis.o
  CC [M]  /root/ndiswrapper-1.34/driver/loader.o
  CC [M]  /root/ndiswrapper-1.34/driver/ndis.o
  CC [M]  /root/ndiswrapper-1.34/driver/ntoskernel.o
  CC [M]  /root/ndiswrapper-1.34/driver/ntoskernel_io.o
  CC [M]  /root/ndiswrapper-1.34/driver/pe_linker.o
  CC [M]  /root/ndiswrapper-1.34/driver/pnp.o
  CC [M]  /root/ndiswrapper-1.34/driver/proc.o
  CC [M]  /root/ndiswrapper-1.34/driver/rtl.o
  CC [M]  /root/ndiswrapper-1.34/driver/wrapmem.o
  CC [M]  /root/ndiswrapper-1.34/driver/wrapndis.o
  CC [M]  /root/ndiswrapper-1.34/driver/wrapper.o
  CC [M]  /root/ndiswrapper-1.34/driver/usb.o
  CC [M]  /root/ndiswrapper-1.34/driver/divdi3.o
  LD [M]  /root/ndiswrapper-1.34/driver/ndiswrapper.o
  Building modules, stage 2.
  MODPOST
  CC      /root/ndiswrapper-1.34/driver/ndiswrapper.mod.o
  LD [M]  /root/ndiswrapper-1.34/driver/ndiswrapper.ko
make[2]: Leaving directory `/usr/src/linux-headers-2.6.17-10-generic'
echo /lib/modules/2.6.17-10-generic/misc
/lib/modules/2.6.17-10-generic/misc
mkdir -p /lib/modules/2.6.17-10-generic/misc
install -m 0644 ndiswrapper.ko /lib/modules/2.6.17-10-generic/misc
/sbin/depmod -a 2.6.17-10-generic -b /
make[1]: Leaving directory `/root/ndiswrapper-1.34/driver'
make -C utils install
make[1]: Entering directory `/root/ndiswrapper-1.34/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.2/include/syslimits.h:7,
                 from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/limits.h:11,
                 from loadndisdriver.c:28:
/usr/lib/gcc/i486-linux-gnu/4.1.2/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:24: 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:179: warning: implicit declaration of function 'fopen'
loadndisdriver.c:179: error: 'NULL' undeclared (first use in this function)
loadndisdriver.c:183: warning: implicit declaration of function 'fgets'
loadndisdriver.c:195: warning: incompatible implicit declaration of built-in function 'strncpy'
loadndisdriver.c:206: warning: implicit declaration of function 'fclose'
loadndisdriver.c:150: warning: unused variable 'statbuf'
loadndisdriver.c: In function 'load_bin_file':
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: expected expression before 'struct'
loadndisdriver.c: In function 'load_driver':
loadndisdriver.c:250: error: 'DIR' undeclared (first use in this function)
loadndisdriver.c:250: error: 'driver_dir' undeclared (first use in this function)
loadndisdriver.c:252: error: 'NULL' undeclared (first use in this function)
loadndisdriver.c:256: error: 'LOG_KERN' undeclared (first use in this function)
loadndisdriver.c:256: error: 'LOG_INFO' undeclared (first use in this function)
loadndisdriver.c:258: error: 'errno' undeclared (first use in this function)
loadndisdriver.c:260: error: 'EINVAL' undeclared (first use in this function)
loadndisdriver.c:262: warning: implicit declaration of function 'opendir'
loadndisdriver.c:268: warning: implicit declaration of function 'malloc'
loadndisdriver.c:268: warning: incompatible implicit declaration of built-in function 'malloc'
loadndisdriver.c:272: warning: implicit declaration of function 'memset'
loadndisdriver.c:272: warning: incompatible implicit declaration of built-in function 'memset'
loadndisdriver.c:273: warning: incompatible implicit declaration of built-in function 'strncpy'
loadndisdriver.c:281: warning: implicit declaration of function 'readdir'
loadndisdriver.c:281: warning: assignment makes pointer from integer without a cast
loadndisdriver.c:283: error: storage size of 'statbuf' isn't known
loadndisdriver.c:285: error: dereferencing pointer to incomplete type
loadndisdriver.c:288: warning: implicit declaration of function 'stat'
loadndisdriver.c:288: error: dereferencing pointer to incomplete type
loadndisdriver.c:289: warning: implicit declaration of function 'S_ISREG'
loadndisdriver.c:290: error: dereferencing pointer to incomplete type
loadndisdriver.c:295: warning: incompatible implicit declaration of built-in function 'strlen'
loadndisdriver.c:295: error: dereferencing pointer to incomplete type
loadndisdriver.c:297: warning: implicit declaration of function 'strcasecmp'
loadndisdriver.c:297: error: dereferencing pointer to incomplete type
loadndisdriver.c:300: error: dereferencing pointer to incomplete type
loadndisdriver.c:303: error: dereferencing pointer to incomplete type
loadndisdriver.c:304: error: dereferencing pointer to incomplete type
loadndisdriver.c:306: error: dereferencing pointer to incomplete type
loadndisdriver.c:312: error: dereferencing pointer to incomplete type
loadndisdriver.c:313: error: dereferencing pointer to incomplete type
loadndisdriver.c:314: warning: implicit declaration of function 'strcpy'
loadndisdriver.c:314: warning: incompatible implicit declaration of built-in function 'strcpy'
loadndisdriver.c:315: error: dereferencing pointer to incomplete type
loadndisdriver.c:318: error: 'struct load_driver_file' has no member named 'size'
loadndisdriver.c:319: error: 'struct load_driver_file' has no member named 'data'
loadndisdriver.c:322: error: dereferencing pointer to incomplete type
loadndisdriver.c:283: warning: unused variable 'statbuf'
loadndisdriver.c:345: error: expected expression before 'struct'
loadndisdriver.c:347: warning: implicit declaration of function 'closedir'
loadndisdriver.c:349: warning: implicit declaration of function 'free'
loadndisdriver.c:356: warning: implicit declaration of function 'munmap'
loadndisdriver.c:356: error: 'struct load_driver_file' has no member named 'data'
loadndisdriver.c:356: error: 'struct load_driver_file' has no member named 'size'
loadndisdriver.c:358: error: 'struct load_driver_file' has no member named 'data'
loadndisdriver.c:358: error: 'struct load_driver_file' has no member named 'size'
loadndisdriver.c: In function 'get_device':
loadndisdriver.c:368: error: storage size of 'statbuf' isn't known
loadndisdriver.c:371: error: 'LOG_KERN' undeclared (first use in this function)
loadndisdriver.c:371: error: 'LOG_INFO' undeclared (first use in this function)
loadndisdriver.c:374: error: 'errno' undeclared (first use in this function)
loadndisdriver.c:375: error: 'EINVAL' undeclared (first use in this function)
loadndisdriver.c:377: warning: implicit declaration of function 'snprintf'
loadndisdriver.c:377: warning: incompatible implicit declaration of built-in function 'snprintf'
loadndisdriver.c:408: warning: incompatible implicit declaration of built-in function 'strncpy'
loadndisdriver.c:368: warning: unused variable 'statbuf'
loadndisdriver.c: In function 'load_device':
loadndisdriver.c:420: error: 'DIR' undeclared (first use in this function)
loadndisdriver.c:420: error: 'dir' undeclared (first use in this function)
loadndisdriver.c:424: error: 'LOG_KERN' undeclared (first use in this function)
loadndisdriver.c:424: error: 'LOG_INFO' undeclared (first use in this function)
loadndisdriver.c:425: warning: incompatible implicit declaration of built-in function 'memset'
loadndisdriver.c:427: error: 'errno' undeclared (first use in this function)
loadndisdriver.c:428: error: 'EINVAL' undeclared (first use in this function)
loadndisdriver.c:430: error: 'NULL' undeclared (first use in this function)
loadndisdriver.c:435: warning: assignment makes pointer from integer without a cast
loadndisdriver.c:436: error: dereferencing pointer to incomplete type
loadndisdriver.c:437: error: dereferencing pointer to incomplete type
loadndisdriver.c:440: error: dereferencing pointer to incomplete type
loadndisdriver.c:449: error: expected expression before 'struct'
loadndisdriver.c: In function 'get_ioctl_device':
loadndisdriver.c:466: error: 'FILE' undeclared (first use in this function)
loadndisdriver.c:466: error: 'proc_misc' undeclared (first use in this function)
loadndisdriver.c:474: warning: implicit declaration of function 'strstr'
loadndisdriver.c:474: warning: incompatible implicit declaration of built-in function 'strstr'
loadndisdriver.c:475: warning: implicit declaration of function 'strtol'
loadndisdriver.c:475: error: 'NULL' undeclared (first use in this function)
loadndisdriver.c:485: error: 'LOG_KERN' undeclared (first use in this function)
loadndisdriver.c:485: error: 'LOG_INFO' undeclared (first use in this function)
loadndisdriver.c:490: warning: implicit declaration of function 'unlink'
loadndisdriver.c:491: warning: implicit declaration of function 'mknod'
loadndisdriver.c:491: error: 'S_IFCHR' undeclared (first use in this function)
loadndisdriver.c:491: error: 'MISC_MAJOR' undeclared (first use in this function)
loadndisdriver.c:492: error: 'errno' undeclared (first use in this function)
loadndisdriver.c:497: error: 'O_RDONLY' undeclared (first use in this function)
loadndisdriver.c: In function 'main':
loadndisdriver.c:513: warning: implicit declaration of function 'openlog'
loadndisdriver.c:513: error: 'LOG_PERROR' undeclared (first use in this function)
loadndisdriver.c:513: error: 'LOG_CONS' undeclared (first use in this function)
loadndisdriver.c:513: error: 'LOG_KERN' undeclared (first use in this function)
loadndisdriver.c:513: error: 'LOG_DEBUG' undeclared (first use in this function)
loadndisdriver.c:515: error: 'LOG_INFO' undeclared (first use in this function)
loadndisdriver.c:517: warning: implicit declaration of function 'strncmp'
loadndisdriver.c:519: warning: implicit declaration of function 'printf'
loadndisdriver.c:519: warning: incompatible implicit declaration of built-in function 'printf'
loadndisdriver.c:529: warning: implicit declaration of function 'atoi'
loadndisdriver.c:544: warning: implicit declaration of function 'atof'
loadndisdriver.c:551: warning: implicit declaration of function 'strcmp'
loadndisdriver.c:558: warning: incompatible implicit declaration of built-in function 'sscanf'
loadndisdriver.c:592: warning: implicit declaration of function 'closelog'
make[1]: *** [loadndisdriver] Error 1
make[1]: Leaving directory `/root/ndiswrapper-1.34/utils'
make: *** [install] Error 2


现在,两种办法,在我装的ubuntu上都不能执行下去.试了N遍,都是这样的结果...
计算机就成了一个瞎子和聋子了,根本无法上网...

恳请达人帮忙,这是为什么会错误,以及我该如何办?
谢谢了....


页首
 用户资料  
 
2 楼 
 文章标题 :
帖子发表于 : 2007-01-17 14:45 

注册: 2007-01-15 22:47
帖子: 6
送出感谢: 0 次
接收感谢: 0 次
自己顶一个。怎么没人帮忙?


页首
 用户资料  
 
3 楼 
 文章标题 :
帖子发表于 : 2007-01-17 14:45 

注册: 2007-01-15 22:47
帖子: 6
送出感谢: 0 次
接收感谢: 0 次
自己顶一个。怎么没人帮忙?


页首
 用户资料  
 
4 楼 
 文章标题 :
帖子发表于 : 2007-01-18 17:47 

注册: 2007-01-16 15:41
帖子: 125
送出感谢: 0 次
接收感谢: 0 次
我的也不能无线上网,我的网卡是intel 2200BG,搞了好多天了也没办法。


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 4 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 4 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译