0

I was compiling openssl 1.0.1l on Ubuntu 14.10, I used the following instructions to build the library.

./config 
make -j4

But when I use it with libCURL, it gives me the following linker error:

libssl.a(ssl_algs.o): In function `SSL_library_init':
ssl_algs.c:(.text+0x1f): undefined reference to `EVP_idea_cbc'

Really wired. This version of openssl is working properly on other platform.

Any suggestions would be appreciated.

Thanks.

jww
  • 97,681
  • 90
  • 411
  • 885
zilongshanren
  • 489
  • 4
  • 8
  • It seems you just [don't link to libcrypto](http://stackoverflow.com/a/23025421/4074081) – dewaffled Mar 17 '15 at 09:50
  • @frymode yes, I'm not linking the prebuilt version of crypto, it links to the system crypto. I forget to delete the CMake cache. – zilongshanren Mar 17 '15 at 09:55
  • Possible duplicate of [Undefined reference to EVP\_idea\_ecb](http://stackoverflow.com/questions/27903198/undefined-reference-to-evp-idea-ecb-on-debian) – jww Mar 18 '15 at 04:16

1 Answers1

0

I'm using CMake to compile my project. But I don't delete the cache and it still link to the system crypto library, not the prebuilt version of my own.

I use make VERBOSE=1 to identify this mistake.

jww
  • 97,681
  • 90
  • 411
  • 885
zilongshanren
  • 489
  • 4
  • 8