OpenWrt Forum Archive

Topic: Cross-compiling aircrack-ng - how to use MIPS openssl library

The content of this topic has been archived on 14 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Please assume I am ignorant...

When I try to cross-compile aircrack-ng 1.2 rc4  for my router (GL-AR300M) I get the following errors:

ld: cannot find -lssl
ld: cannot find -lcrypto
ld: cannot find -lssp-nonshared
ld: cannot find -lssp

I have been told that I need the MIPS flavor of OpenSSL in order for the linker to work.

Where would I find this?

Assuming it is not available is there a particular branch/variant/vintage I need to cross-compile to be able to link?

In either case where should the appropriate objects be placed in the toolchain or build_dir or wherever?

Thank you.

OpenSSL is already part of OpenWrt, you just need to select it and have the build system compile it for the target system.  Editing the aircrack Makefile to make OpenSSL a dependency would make that automatic.

There is no part of this that is not the first time I've done something.

I selected OpenSSL as part of the environment when I built menuconfig.
That being so, where would I find OpenSSL in the build setup or toolchain?

Thank you.

The discussion might have continued from here.