run make to compile make

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post please read how to get help
mrneutel
Level 1
Level 1
Posts: 3
Joined: Fri Jul 20, 2012 2:54 am

run make to compile make

Postby mrneutel » Fri Jul 20, 2012 2:58 am

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!!!

asdfasdf
Level 1
Level 1
Posts: 38
Joined: Sun May 06, 2012 1:33 am

Re: run make to compile make

Postby asdfasdf » Sun Jul 22, 2012 1:29 pm

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.)

mrneutel
Level 1
Level 1
Posts: 3
Joined: Fri Jul 20, 2012 2:54 am

Re: run make to compile make

Postby mrneutel » Tue Jul 24, 2012 2:57 am

thanks i'll try.

windtalker
Level 1
Level 1
Posts: 12
Joined: Sat Oct 06, 2007 9:26 am

Re: run make to compile make

Postby windtalker » Tue Jul 24, 2012 3:10 pm

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

mrneutel
Level 1
Level 1
Posts: 3
Joined: Fri Jul 20, 2012 2:54 am

Re: run make to compile make

Postby mrneutel » Fri Aug 03, 2012 3:02 am

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.

dalcde
Level 4
Level 4
Posts: 204
Joined: Fri May 13, 2011 8:15 am

Re: run make to compile make

Postby dalcde » Sun Sep 02, 2012 1:32 am

The code was poorly written, and "make" found many "warnings". Somehow it decided to treat all warnings as errors and stops the compilation.

You can try to run make -i.

This causes "make" to ignore all errors. If the code is fine (it should be), you would be able to compile it properly.


Return to “Other topics”