Compilation wpa_suplicant - /bin/ld: cannot find -lcrypto

Vu Hai NGUYEN vh.nguyen
Fri Mar 28 01:18:10 PDT 2014

Thank you Jouni Malinen for your response, actually when I said I look in the directory /lib/usr I meant it was in my cross compile already,  sorry for not be clear.
This is the path of my lib,

Route de Mayres - B.P. 9

De : hostap-bounces at [hostap-bounces at] de la part de Jouni Malinen [j at]
Date d'envoi : jeudi 27 mars 2014 22:27
? : hostap at
Objet : Re: Compilation wpa_suplicant - /bin/ld: cannot find -lcrypto

On Thu, Mar 27, 2014 at 05:11:41PM +0100, Vu Hai NGUYEN wrote:
> /home/alberix2/Cross-Compiler/Marvell_toolchain_201201/armv7-marvell-linux-gnueabi-softfp_i686/bin/../lib/gcc/arm-marvell-linux-gnueabi/4.6.2/../../../../arm-marvell-linux-gnueabi/bin/ld: cannot find -lcrypto

> I have looked on the internet and found that the problem may concerned about missing library file "" in the directory /lib/usr, I went into the directory and saw 2 file and (this is just a link to Their permission is Read only, but even if I changed their permission to Read & Write, the error is still there and I don't know how to correct it.

That linker command line seems to imply that you are using a cross
compiler. As such, you would need to have this library available as part
of that cross compiler setup. Having it available from the host system
is not going to help.

Jouni Malinen                                            PGP id EFC895FA
HostAP mailing list
HostAP at

More information about the Hostap mailing list