mysterious "ld cannot find -lcrypt" error...
Ben Tomhave
btomhave@sofast.net
Mon, 21 Jan 2002 15:53:56 -0700
Greetings,
Trying to compile heartbeat-0.4.9.1 on a Mandrake 8.1 system. The system
has current versions of zlib, openssl, openssh and udc-snmp. In fact, I'm
compiling on two systems. One system worked just fine. The other system is
dying with the following:
[root@cascade heartbeat-0.4.9.1]# make
gmake[1]: Entering directory `/root/ben/heartbeat-0.4.9.1/doc'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/root/ben/heartbeat-0.4.9.1/doc'
gmake[1]: Entering directory `/root/ben/heartbeat-0.4.9.1/stonith'
cc -shared -o apcmastersnmp.so apcmastersnmp.o -lsnmp -lcrypto
/usr/bin/ld: cannot find -lcrypto
collect2: ld returned 1 exit status
gmake[1]: *** [apcmastersnmp.so] Error 1
gmake[1]: Leaving directory `/root/ben/heartbeat-0.4.9.1/stonith'
make: *** [all] Error 2
[root@cascade heartbeat-0.4.9.1]#
One might be led to believe that the correct library is not installed.
However, running "ldconfig -p | grep crypt" produces the following output:
[root@cascade heartbeat-0.4.9.1]# ldconfig -p | grep crypt
libk5crypto.so.3 (libc6) => /usr/lib/libk5crypto.so.3
libcrypto.so.0 (libc6) => /usr/lib/libcrypto.so.0
libcrypt.so.1 (libc6, OS ABI: Linux 2.2.5) => /lib/libcrypt.so.1
libcrypt.so (libc6, OS ABI: Linux 2.2.5) => /usr/lib/libcrypt.so
[root@cascade heartbeat-0.4.9.1]#
This is identical to the system which was successful, and leads me to
believe that the necessary crypt library is installed.
So, what am I missing?
Thanks!
-ben
--------------------------------------------
Ben Tomhave
Network Administrator
SoFast Communications
www.sofast.net 406-268-0000