Installing Aircrack-ng in SUSE 11.3

I have tried to compile Aircrack -ng in Opensuse 11.2 I have received the following output
linux-z7wt:/home/jcaser/aircrack-ng-1.1 # make
make -C src all
make[1]: se ingresa al directorio /home/jcaser/aircrack-ng-1.1/src' make -C osdep make[2]: se ingresa al directorio /home/jcaser/aircrack-ng-1.1/src/osdep’
Building for Linux
make[3]: se ingresa al directorio /home/jcaser/aircrack-ng-1.1/src/osdep' make[3]: .os.Linux’ está actualizado.
make[3]: se sale del directorio /home/jcaser/aircrack-ng-1.1/src/osdep' make[2]: se sale del directorio /home/jcaser/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]: se sale del directorio `/home/jcaser/aircrack-ng-1.1/src’
make: *** [all] Error 2
I think I have taken all dependencies into consideration as follows

sqlite3-devel
libtool
libopenssl-devel
make
gcc
autoconf
automake
gcc-c++
Has anione an idea? did I forget any dependencies?
Help would be very much appreciated:shame:

Hi
It tells you here…


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

So it will exit when it strikes a warning with “-Werror”

Download the nosrc rpm from packman and add the source, then build the rpm (AS YOUR USER!!) with your files in /usr/src/packages/SOURCES

On 08/29/2010 10:36 AM, jcaser1948 wrote:
> 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

It is probably a bug in aircrack-ng. Perhaps the newer compiler finds something
that an older one ignored. If you take the “-Werror” off the compile line, it
will likely just generate a warning and continue to build. It may not run,
because under-running an array usually leads to memory corruption.

In any case, this is an aircrack-ng problem and not one for openSUSE.

O.K , thaks for the help.
In the meantime I have solved the problem by locate a CFLAGS line (about line 70).

and removing that line

then make / make install.

The only ding I had after this issue was that the files are all installed

to /usr/local/sbin, which is not in my root path.

I moved all -ng archive from
/usr/local/sbin
to
/usr/local/bin
and it works

JCaser- What file was that CFLAGS line in?

The CFLAGS line in makefile.common needs to be deleted.
Then it will install properly (It did on my 11.3).

Tony