Page 1 of 1

run make to compile make

Posted: Fri Jul 20, 2012 2:58 am
by mrneutel
I've tried to compile aircrack in my netbook, but when i run make i get this:

make -C src all
make[1]: Entering directory `/home/mrneutel/Transferências/aircrack-ng-1.1/src'
make -C osdep
make[2]: Entering directory `/home/mrneutel/Transferências/aircrack-ng-1.1/src/osdep'
Building for Linux
make[3]: Entering directory `/home/mrneutel/Transferências/aircrack-ng-1.1/src/osdep'
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]
linux.c: In function ‘linux_set_rate’:
linux.c:334:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘linux_set_channel’:
linux.c:807:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘linux_set_freq’:
linux.c:896:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘set_monitor’:
linux.c:1022:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘do_linux_open’:
linux.c:1366:12: error: variable ‘unused_str’ set but not used [-Werror=unused-but-set-variable]
linux.c:1352:15: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘get_battery_state’:
linux.c:1982:35: error: variable ‘current’ set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[3]: *** [linux.o] Error 1
make[3]: Leaving directory `/home/mrneutel/Transferências/aircrack-ng-1.1/src/osdep'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/mrneutel/Transferências/aircrack-ng-1.1/src/osdep'
make[1]: *** [osd] Error 2
make[1]: Leaving directory `/home/mrneutel/Transferências/aircrack-ng-1.1/src'
make: *** [all] Error 2


what seems to be the problem?!?!?
how do i solve this problem?!?!

thanks!!!

Re: run make to compile make

Posted: Sun Jul 22, 2012 1:29 pm
by asdfasdf
mrneutel wrote:I've tried to compile aircrack in my netbook, but when i run make i get this:

make -C src all
make[1]: Entering directory `/home/mrneutel/Transferências/aircrack-ng-1.1/src'
make -C osdep
make[2]: Entering directory `/home/mrneutel/Transferências/aircrack-ng-1.1/src/osdep'
Building for Linux
make[3]: Entering directory `/home/mrneutel/Transferências/aircrack-ng-1.1/src/osdep'
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]
linux.c: In function ‘linux_set_rate’:
linux.c:334:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘linux_set_channel’:
linux.c:807:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘linux_set_freq’:
linux.c:896:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘set_monitor’:
linux.c:1022:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘do_linux_open’:
linux.c:1366:12: error: variable ‘unused_str’ set but not used [-Werror=unused-but-set-variable]
linux.c:1352:15: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘get_battery_state’:
linux.c:1982:35: error: variable ‘current’ set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[3]: *** [linux.o] Error 1
make[3]: Leaving directory `/home/mrneutel/Transferências/aircrack-ng-1.1/src/osdep'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/mrneutel/Transferências/aircrack-ng-1.1/src/osdep'
make[1]: *** [osd] Error 2
make[1]: Leaving directory `/home/mrneutel/Transferências/aircrack-ng-1.1/src'
make: *** [all] Error 2


what seems to be the problem?!?!?
how do i solve this problem?!?!

thanks!!!

I don't have a copy of the source to test my surmise, but I would guess that the problem lies in the "-Werror". Save a copy of the Makefile somewhere safe, and then edit the Makefile and remove all instances of "-Werror", and see if it compiles.

(When gcc sees -Werror, all of your warnings are instead treated as serious errors, causing gcc to halt although these particular warnings aren't really such serious concerns.)

Re: run make to compile make

Posted: Tue Jul 24, 2012 2:57 am
by mrneutel
thanks i'll try.

Re: run make to compile make

Posted: Tue Jul 24, 2012 3:10 pm
by windtalker
Are your kernel headers installed?

Here's a link to the build process,,, kind of. http://www.aircrack-ng.org/doku.php?id= ... rom_source

Re: run make to compile make

Posted: Fri Aug 03, 2012 3:02 am
by mrneutel
i tried the werror aproach but i didn't find anything.
i've already run the sudo apt-get install build-essential, but still doesn't runs the make properlly.
it shows the same mistake.