moriwuhen
deepin
2017-08-16 17:09 cd aircrack-ng-1.1
进入目录后,用gedit编辑器打开common.mak
gedit common.mak
修改下面的行:
CFLAGS?= -g -W -Wall -Werror -O3
修改后的结果:
CFLAGS?= -g -W -Wall -O3
执行安装
make
sudo make install
====================
结果又有新的问题。无语了。
进入目录后,用gedit编辑器打开common.mak
gedit common.mak
修改下面的行:
CFLAGS?= -g -W -Wall -Werror -O3
修改后的结果:
CFLAGS?= -g -W -Wall -O3
执行安装
make
sudo make install
====================
结果又有新的问题。无语了。
Reply Like 0 View the author


中文 



$ make
make -C src all
make[1]: Entering directory '/media/zbs/Software/Linux/linux软件/minidwep/aircrack-ng-1.1/src'
make -C osdep
make[2]: Entering directory '/media/zbs/Software/Linux/linux软件/minidwep/aircrack-ng-1.1/src/osdep'
Building for Linux
make[3]: Entering directory '/media/zbs/Software/Linux/linux软件/minidwep/aircrack-ng-1.1/src/osdep'
gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -fPIC -I.. -c -o osdep.o osdep.c
gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -fPIC -I.. -c -o network.o network.c
gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -fPIC -I.. -c -o linux.o linux.c
linux.c: In function ‘is_ndiswrapper’:
linux.c:165:17: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
int n, pid, unused;
^~~~~~
linux.c: In function ‘linux_set_rate’:
linux.c:334:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
int pid, status, unused;
^~~~~~
linux.c: In function ‘linux_read’:
linux.c:498:27: error: argument to ‘sizeof’ in ‘memset’ call is the same expression as the destination; did you mean to provide an explicit length? [-Werror=sizeof-pointer-memaccess]
memset( buf, 0, sizeof( buf ) );
^
linux.c: In function ‘linux_set_channel’:
linux.c:807:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
int pid, status, unused;
^~~~~~
linux.c: In function ‘linux_set_freq’:
linux.c:896:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
int pid, status, unused;
^~~~~~
linux.c: In function ‘set_monitor’:
linux.c:1022:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
int pid, status, unused;
^~~~~~
linux.c: In function ‘openraw’:
linux.c:1259:63: error: comparison of constant ‘6’ with boolean expression is always false [-Werror=bool-compare]
if (set_monitor( dev, iface, fd ) && !dev->drivertype == DT_ORINOCO )
^~
linux.c:1259:63: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses]
linux.c:1269:67: error: comparison of constant ‘6’ with boolean expression is always false [-Werror=bool-compare]
if (set_monitor( dev, iface, fd ) && !dev->drivertype == DT_ORINOCO )
^~
linux.c:1269:67: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses]
linux.c: In function ‘do_linux_open’:
linux.c:1366:12: error: variable ‘unused_str’ set but not used [-Werror=unused-but-set-variable]
char * unused_str;
^~~~~~~~~~
linux.c:1352:15: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
int kver, unused;
^~~~~~
linux.c: In function ‘get_battery_state’:
linux.c:1982:35: error: variable ‘current’ set but not used [-Werror=unused-but-set-variable]
int rate = 1, remain = 0, current = 0;
^~~~~~~
cc1: all warnings being treated as errors
: recipe for target 'linux.o' failed
make[3]: *** [linux.o] Error 1
make[3]: Leaving directory '/media/zbs/Software/Linux/linux软件/minidwep/aircrack-ng-1.1/src/osdep'
Makefile:31: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/media/zbs/Software/Linux/linux软件/minidwep/aircrack-ng-1.1/src/osdep'
Makefile:122: recipe for target 'osd' failed
make[1]: *** [osd] Error 2
make[1]: Leaving directory '/media/zbs/Software/Linux/linux软件/minidwep/aircrack-ng-1.1/src'
Makefile:18: recipe for target 'all' failed
make: *** [all] Error 2
安装的程序文件:aircrack-ng-1.1.tar.gz