You are not logged in.

#1 2010-05-09 19:06:03

Zymus
Member
Registered: 2010-05-09
Posts: 18

GCC/Make problem

Hello, I'm new to Archlinux. Been using Ubuntu for a while, but thought that i'd try something new. I'm trying to compile a program, aircrack-ng, but everytime i do i get this error

[root@zephyrion aircrack-ng-1.1]# make
make -C src all
make[1]: Entering directory `/root/Desktop/aircrack-ng-1/aircrack-ng-1.1/src'
make -C osdep
make[2]: Entering directory `/root/Desktop/aircrack-ng-1/aircrack-ng-1.1/src/osdep'
Building for Linux
make[3]: Entering directory `/root/Desktop/aircrack-ng-1/aircrack-ng-1.1/src/osdep'
make[3]: `.os.Linux' is up to date.
make[3]: Leaving directory `/root/Desktop/aircrack-ng-1/aircrack-ng-1.1/src/osdep'
make[2]: Leaving directory `/root/Desktop/aircrack-ng-1/aircrack-ng-1.1/src/osdep'
gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0  -Iinclude   -c -o aircrack-ng.o aircrack-ng.c
cc1: warnings being treated as errors
aircrack-ng.c: In function 'do_wpa_crack':
aircrack-ng.c:4189:8: error: array subscript is below array bounds
make[1]: *** [aircrack-ng.o] Error 1
make[1]: Leaving directory `/root/Desktop/aircrack-ng-1/aircrack-ng-1.1/src'
make: *** [all] Error 2

What would cause this to happen?

Offline

#2 2010-05-09 19:18:37

combuster
Member
From: Serbia
Registered: 2008-09-30
Posts: 711
Website

Re: GCC/Make problem

Try to edit makefile and remove -Werror switch...

/edit: BTW aircrack-ng is in the repos: http://www.archlinux.org/packages/commu … rcrack-ng/

Also you can check out aur for other builds if you need them...

Last edited by combuster (2010-05-09 19:19:49)

Offline

#3 2010-05-09 19:20:04

Zymus
Member
Registered: 2010-05-09
Posts: 18

Re: GCC/Make problem

Well i thought about doing that in the first place, but then i thought "Well, the author of the source must have wanted the warnings as errors for some reason" and so i edited the source and it compile, but I don't know if it will still work correctly.

Offline

#4 2010-05-09 20:01:38

combuster
Member
From: Serbia
Registered: 2008-09-30
Posts: 711
Website

Re: GCC/Make problem

Well I can't think of any reasons except the ones for debugging the code, but that shouldn't be a part of the stable release - if you got your source from some git unstable branch it could make -Werror sense smile

Offline

#5 2010-05-09 22:18:55

Zymus
Member
Registered: 2010-05-09
Posts: 18

Re: GCC/Make problem

Ok, got it working 100%. Also, do you know of a universal archive extractor? One that can do zip, bz2, gzip, rar, etc?

Offline

#6 2010-05-09 22:57:39

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: GCC/Make problem

Search the forums. Someone asks that every couple of months.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#7 2010-05-10 04:40:43

Zymus
Member
Registered: 2010-05-09
Posts: 18

Re: GCC/Make problem

Ok, i found xarchiver. Although now another problem has arisen. I had a dual boot system, Ubuntu, and Arch, and i deleted the ubuntu partition, and then moved and resized the arch partition to fill the entire hard drive. Now however, i am trying to install GRUB2, and while running grub-install, it doesn't finish. I read in another forum that if it takes more than 1 minute to complete, the first sector is bad and i need to repair it. My question however is how would i check to see if it really is a bad sector, and how would i repair it if it is?

EDIT:

I fixed it. It seems that the device.map was from grub legacy, so i deleted it, reinstalled grub2, and everything works perfectly.

However, it seems that i don't have a "update-grub" or "grub-update" command. No problem though. Probably just need to edit /etc/profile for $PATH

Last edited by Zymus (2010-05-11 01:03:58)

Offline

Board footer

Powered by FluxBB