Results 1 to 1 of 1
Hi,
I'm trying to make a program that uses openssl. The Makefile uses the -static option and when I try to make it this way it gives the following error:
...
- 06-04-2008 #1Linux Newbie
- Join Date
- Apr 2008
- Posts
- 110
openssl and lcrypto problem
Hi,
I'm trying to make a program that uses openssl. The Makefile uses the -static option and when I try to make it this way it gives the following error:
Along with several other undefined references.Code:../lib/libopensc.a(card-gpk.o)(.text+0x1254): In function `gpk_compute_crycks': : undefined reference to `DES_set_key_unchecked'
When I remove the -static option, it gives the same error. However, when I remove the -static option and add -lcrypto, the program compiles and links properly.
With both -static and -lcrypto I get the following error:
I have openssl and openssl-devel installed according to urpmi, but when I do a "rpm -q" it can only find openssl and not openssl-devel. Is there a static version of the library that I also need to install?Code:/usr/bin/ld: cannot find -lcrypto
I'm using Mandrake 9.1 btw.


Reply With Quote