Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POCO 1.13.3 Crypto_vs170.vcxproj build fails when using external openssl #4581

Open
Spaky opened this issue Jun 12, 2024 · 3 comments
Open
Labels

Comments

@Spaky
Copy link
Contributor

Spaky commented Jun 12, 2024

Describe the bug
Due the changes from "enh(build): vcpkg support for Visual Studio projects (OpenSSL, MariaDB client, PostgreSQL client)" introduced with 1.13.3 building of Crypto_vs170.vcxproj using with external build of failes because of missing libs of openssl.

To Reproduce
call "%env.nmake.path%\vcvars32.bat" set INCLUDE=%%INCLUDE%%;%teamcity.build.checkoutDir%\openssl.vs%VC_VERSION%.shared.%OPENSSL_VERSION%\build\native\inc set LIB=%%LIB%%;%teamcity.build.checkoutDir%\openssl.vs%VC_VERSION%.shared.%OPENSSL_VERSION%\build\native\release\lib cd download buildwin,cmd 170 build shared release Win32 nosamples notests msbuild

Expected behavior
Adding the automatic linking of openssl again.

Logs
[11:33:12 ] X509Certificate.cpp [11:33:12 ] OpenSSL 3.0.14 4 Jun 2024 [11:33:14 ] Bibliothek "..\lib\PocoCrypto.lib" und Objekt "..\lib\PocoCrypto.exp" werden erstellt. [11:33:15 ] CipherFactory.obj : error LNK2019: Verweis auf nicht aufgel”stes externes Symbol "_OSSL_PROVIDER_load" in Funktion ""public: __thiscall Poco::Crypto::CipherFactory::CipherFactory(void)" (??0CipherFactory@Crypto@Poco@@QAE@XZ)". [C:\BuildAgent3\work\c363d71bcecc6589\download\Crypto\Crypto_vs170.vcxproj] [11:33:15 ] OpenSSLInitializer.obj : error LNK2001: Nicht aufgel”stes externes Symbol "_OSSL_PROVIDER_load". [C:\BuildAgent3\work\c363d71bcecc6589\download\Crypto\Crypto_vs170.vcxproj] [11:33:15 ] RSACipherImpl.obj : error LNK2001: Nicht aufgel”stes externes Symbol "_EVP_PKEY_type". [C:\BuildAgent3\work\c363d71bcecc6589\download\Crypto\Crypto_vs170.vcxproj] [11:33:15 ] RSADigestEngine.obj : error LNK2001: Nicht aufgel”stes externes Symbol "_EVP_PKEY_type". [C:\BuildAgent3\work\c363d71bcecc6589\download\Crypto\Crypto_vs170.vcxproj]

Please add relevant environment information:

  • Windows Server 2019
  • POCO Version: 1.13.3
  • OpenSSL 3.0.14
@Spaky Spaky added the bug label Jun 12, 2024
@andrewauclair
Copy link
Contributor

Have you tried building with cmake?

@Spaky
Copy link
Contributor Author

Spaky commented Jun 14, 2024

Have you tried building with cmake?
Not yet, our build pipeline uses buildwin. I will try it locally, but i can take some time, because a lot stuff to do.
Btw. 1.13.2 works,

@seektechnz
Copy link

seektechnz commented Jun 23, 2024

+1 for this issue. I also have external symbols not found when building and statically linking with OpenSSL 3.4.0 compiled locally. Built on Windows 11 with Visual Studio 2022.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants