I am having issues porting a Windows project I have on Ubuntu 18.04. I have one main project with about 10 sub-projects. I am using CMake for this project. For some reason, one of my sub-project fails with the following error:
/usr/bin/ld: CMakeFiles/unittest.dir/network/Test.cpp.o: undefined reference to symbol 'BIO_ctrl_pending@@OPENSSL_1_1_0'
//usr/lib/x86_64-linux-gnu/libcrypto.so.1.1: error adding symbols: DSO missing from command line
I have a lot of CMake related artifacts for my project, so I am not too sure what would help you guys diagnose this. I noticed that two sub-projects use the same libraries, yet one fails for the reason listed above when the other doesn't. I noticed that in a generated build.cmake file, I have this external object file that is included :
/lib/x86_64-linux-gnu/libcrypt-2.27.so
This is strange because I have never included a path towards this library. I also do not have a path towards /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
. I don't understand why it tries to use that library when mine is in a different folder.
For this sub-project, I am using open-ssl and cryptopp. My only guess would be that these two libraries have some sort of conflict, but this is only the case on one sub-project when they have the same dependencies.
I'm sorry I am not giving you much here, but if you tell me what would be relevant to show, I will edit my post to add any code you would need to help. I simply have no clue where to even look anymore for this.