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:
Code:
../lib/libopensc.a(card-gpk.o)(.text+0x1254): In function `gpk_compute_crycks':
: undefined reference to `DES_set_key_unchecked'
Along with several other undefined references.

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:
Code:
/usr/bin/ld: cannot find -lcrypto
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?

I'm using Mandrake 9.1 btw.