Hello everyone,

As you read through my question, you'll noticed I am quite new. I've been searching for an answer all over, but I think I may just be reading the solution incorrectly. I followed the cross compiling instructions at http://wiki.openwrt.org/doc/devel/crosscompile and a few other sources.

I'm running Debian 6 in a VM and trying to compile aircrack-ng for a Netgear WNDR3700 router. I know this is already available as an opkg, but I just wanted to try cross compiling as this is a known working application (this all stemmed from me trying to cross compile a different app).

So here is what I've done thus far and where my road block is:

1. Installed OpenWrt buildroot

2. Downloaded and extract aircrack-ng into ~/openwrt/trunk/package

3. I ran the make command with specific parameters to point to the mips compiler and this is what I get:

ake CC=mips-openwrt-linux-uclibc-gcc LD=mips-openwrt-linux-uclibc-ld
make -C src all
make[1]: Entering directory `/home/user/openwrt/trunk/package/aircrack-ng-1.1/src'
make -C osdep
make[2]: Entering directory `/home/user/openwrt/trunk/package/aircrack-ng-1.1/src/osdep'
Building for Linux
make[3]: Entering directory `/home/user/openwrt/trunk/package/aircrack-ng-1.1/src/osdep'
mips-openwrt-linux-uclibc-gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0  -fPIC -I..    -c -o osdep.o osdep.c
mips-openwrt-linux-uclibc-gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0  -fPIC -I..    -c -o network.o network.c
mips-openwrt-linux-uclibc-gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0  -fPIC -I..    -c -o linux.o linux.c
mips-openwrt-linux-uclibc-gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0  -fPIC -I..    -c -o linux_tap.o linux_tap.c
mips-openwrt-linux-uclibc-gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0  -fPIC -I..    -c -o radiotap/radiotap-parser.o radiotap/radiotap-parser.c
mips-openwrt-linux-uclibc-gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0  -fPIC -I..    -c -o common.o common.c
ar cru libosdep.a  osdep.o network.o linux.o linux_tap.o radiotap/radiotap-parser.o common.o
ranlib libosdep.a 
touch .os.Linux
make[3]: Leaving directory `/home/user/openwrt/trunk/package/aircrack-ng-1.1/src/osdep'
make[2]: Leaving directory `/home/user/openwrt/trunk/package/aircrack-ng-1.1/src/osdep'
mips-openwrt-linux-uclibc-gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0  -Iinclude   -c -o aircrack-ng.o aircrack-ng.c
In file included from aircrack-ng.c:65:0:
crypto.h:12:26: fatal error: openssl/hmac.h: No such file or directory
compilation terminated.
make[1]: *** [aircrack-ng.o] Error 1
make[1]: Leaving directory `/home/user/openwrt/trunk/package/aircrack-ng-1.1/src'
make: *** [all] Error 2

I tried manually creating an openssl directory in the aircrack-ng/src/include directory and coping the contents from /usr/include/openssl, but this is what I ended up with:

mips-openwrt-linux-uclibc-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 `/home/user/openwrt/trunk/package/aircrack-ng-1.1/src'
make: *** [all] Error 2

I apologize for such a lengthy post, but I just want to learn! I thank you all for your patience and help.