wpa_supplicant | ld: cannot find -lcrypto error

Toshiki Kaifu (www.confero24.com) toshiki at confero24.com
Mon Jul 4 14:01:19 EDT 2005


Friends,

I am having a hard time getting over this error.

---
gcc -o wpa_passphrase wpa_passphrase.o sha1.o md5.o -lcrypto
/usr/bin/ld: cannot find -lcrypto
collect2: ld returned 1 exit status
make: *** [wpa_passphrase] Error 1
---

Running make by leaving out wpa_passphrase in the Makefile is successful,
but I'm not sure what the consequence of it is.

Some info about my Debian 3.0r3 laptop build environment is:

----
zagreb:/usr/src/wpa_supplicant# gcc -v
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.5/specs
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared
--enable-__cxa_atexit --with-system-zlib --enable-nls
--without-included-gettext --enable-clocale=gnu --enable-debug
--enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux
Thread model: posix
gcc version 3.3.5 (Debian 1:3.3.5-13)
----

Somewhere on other lists I read that this problem could be due to linker
incompatibility.  But I'm not sure what the remedy is.  My /etc/ld.so.conf
has the folln...

----
zagreb:/usr/src/wpa_supplicant# more /etc/ld.so.conf
/usr/local/lib
/usr/X11R6/lib
/usr/local/ssl/lib
----

Would anyone know how I can avoid the '/usr/bin/ld: cannot find -lcrypto'
error?

Thanks in advance,
Toshiki



-- 
http://www.confero24.com





More information about the HostAP mailing list