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 read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
mrneutel

run make to compile make

Post 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!!!
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
asdfasdf

Re: run make to compile make

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

Re: run make to compile make

Post by mrneutel »

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

Post 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
mrneutel

Re: run make to compile make

Post 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.
Locked

Return to “Other topics”