I am trying to cross-compile aircrack-ng for the GL-AR300M
To inovke Make -
sudo make CC=/home/dev/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-uclibc-gcc CXX=/home/dev/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-uclibc-c++ LD=/home/dev/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-uclibc-ld
Returns -
make -C src all
make[1]: Entering directory ‘/home/dev/openwrt/package/trunk/src’
/home/dev/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-uclibc-gcc -g -W -Wall -O3 -DOLD_SSE_CORE=1 -pthread -D_FILE_OFFSET_BITS=64 -D_REVISION=2913 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -fstack-protector -Wno-unused-but-set-variable -Wno-array-bounds -Iinclude -c -o aircrack-ng.o aircrack-ng.c
mips-openwrt-linux-uclibc-gcc: warning: environment variable ‘STAGING_DIR’ not defined
/home/dev/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-uclibc-gcc -g -W -Wall -O3 -DOLD_SSE_CORE=1 -pthread -D_FILE_OFFSET_BITS=64 -D_REVISION=2913 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -fstack-protector -Wno-unused-but-set-variable -Wno-array-bounds -Iinclude -c -o cpuid.o cpuid.c
mips-openwrt-linux-uclibc-gcc: warning: environment variable ‘STAGING_DIR’ not defined
/home/dev/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-uclibc-gcc -g -W -Wall -O3 -DOLD_SSE_CORE=1 -pthread -D_FILE_OFFSET_BITS=64 -D_REVISION=2913 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -fstack-protector -Wno-unused-but-set-variable -Wno-array-bounds -Iinclude -c -o crypto.o crypto.c
mips-openwrt-linux-uclibc-gcc: warning: environment variable ‘STAGING_DIR’ not defined
/home/dev/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-uclibc-gcc -g -W -Wall -O3 -DOLD_SSE_CORE=1 -pthread -D_FILE_OFFSET_BITS=64 -D_REVISION=2913 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -fstack-protector -Wno-unused-but-set-variable -Wno-array-bounds -Iinclude -c -o common.o common.c
mips-openwrt-linux-uclibc-gcc: warning: environment variable ‘STAGING_DIR’ not defined
/home/dev/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-uclibc-gcc -g -W -Wall -O3 -DOLD_SSE_CORE=1 -pthread -D_FILE_OFFSET_BITS=64 -D_REVISION=2913 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -fstack-protector -Wno-unused-but-set-variable -Wno-array-bounds -Iinclude -c -o uniqueiv.o uniqueiv.c
mips-openwrt-linux-uclibc-gcc: warning: environment variable ‘STAGING_DIR’ not defined
/home/dev/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-uclibc-gcc -g -W -Wall -O3 -DOLD_SSE_CORE=1 -pthread -D_FILE_OFFSET_BITS=64 -D_REVISION=2913 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -fstack-protector -Wno-unused-but-set-variable -Wno-array-bounds -Iinclude -c -o sha1-sse2.o sha1-sse2.S
mips-openwrt-linux-uclibc-gcc: warning: environment variable ‘STAGING_DIR’ not defined
/home/dev/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-uclibc-gcc -g -W -Wall -O3 -DOLD_SSE_CORE=1 -pthread -D_FILE_OFFSET_BITS=64 -D_REVISION=2913 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -fstack-protector -Wno-unused-but-set-variable -Wno-array-bounds -Iinclude -c -o aircrack-ptw-lib.o aircrack-ptw-lib.c
mips-openwrt-linux-uclibc-gcc: warning: environment variable ‘STAGING_DIR’ not defined
/home/dev/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-uclibc-c++ -g -W -Wall -O3 -DOLD_SSE_CORE=1 -pthread -D_FILE_OFFSET_BITS=64 -D_REVISION=2913 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -fstack-protector -Wno-unused-but-set-variable -Wno-array-bounds -Iinclude -fdata-sections -ffunction-sections -c -o linecount.o linecount.cpp
mips-openwrt-linux-uclibc-c++: warning: environment variable ‘STAGING_DIR’ not defined
ar cru liblinecount.a linecount.o
ar: u' modifier ignored since
D’ is the default (see `U’)
ranlib liblinecount.a
touch liblinecount.a
/home/dev/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-uclibc-gcc -g -W -Wall -O3 -DOLD_SSE_CORE=1 -pthread -D_FILE_OFFSET_BITS=64 -D_REVISION=2913 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -fstack-protector -Wno-unused-but-set-variable -Wno-array-bounds -Iinclude aircrack-ng.o cpuid.o crypto.o common.o uniqueiv.o sha1-sse2.o aircrack-ptw-lib.o liblinecount.a -o aircrack-ng -lpthread -lssl -lcrypto -lstdc++
/home/dev/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/lib/gcc/mips-openwrt-linux-uclibc/4.8.3/…/…/…/…/mips-openwrt-linux-uclibc/bin/ld: cannot find -lssl
/home/dev/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/lib/gcc/mips-openwrt-linux-uclibc/4.8.3/…/…/…/…/mips-openwrt-linux-uclibc/bin/ld: cannot find -lcrypto
/home/dev/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/lib/gcc/mips-openwrt-linux-uclibc/4.8.3/…/…/…/…/mips-openwrt-linux-uclibc/bin/ld: cannot find -lssp_nonshared
/home/dev/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/lib/gcc/mips-openwrt-linux-uclibc/4.8.3/…/…/…/…/mips-openwrt-linux-uclibc/bin/ld: cannot find -lssp
collect2: error: ld returned 1 exit status
Makefile:181: recipe for target ‘aircrack-ng’ failed
make[1]: *** [aircrack-ng] Error 1
make[1]: Leaving directory ‘/home/dev/openwrt/package/trunk/src’
Makefile:25: recipe for target ‘all’ failed
make: *** [all] Error 2
dev@bpT61 ~/openwrt/package/trunk/src $ file *.o
aircrack-ng.o: ELF 32-bit MSB relocatable, MIPS, MIPS-I version 1 (SYSV), not stripped
aircrack-ptw-lib.o: ELF 32-bit MSB relocatable, MIPS, MIPS-I version 1 (SYSV), not stripped
common.o: ELF 32-bit MSB relocatable, MIPS, MIPS-I version 1 (SYSV), not stripped
cpuid.o: ELF 32-bit MSB relocatable, MIPS, MIPS-I version 1 (SYSV), not stripped
crypto.o: ELF 32-bit MSB relocatable, MIPS, MIPS-I version 1 (SYSV), not stripped
linecount.o: ELF 32-bit MSB relocatable, MIPS, MIPS-I version 1 (SYSV), not stripped
sha1-sse2.o: ELF 32-bit MSB relocatable, MIPS, MIPS-I version 1 (SYSV), not stripped
uniqueiv.o: ELF 32-bit MSB relocatable, MIPS, MIPS-I version 1 (SYSV), not stripped
I am new at this so I have a few questions:
1 - Looking at the source code, I was a able to take care of all of the missing include objects that were being kicked out at the compile. Now that those have been resolved, I am seeing the link errors.
2 - Do the missing link objects need to go in the same folders that the originally missing compile objects went?
3 - As I am new to this, any guidance on which packages I need to look at given the errors kicked out?
Thank you.