<div dir="ltr"><div>Due to the fact that several other relevant thirdparty libraries (such as libcurl) as removing support for the openssl 1.1.1 branch and require at least openssl 3.0, I'm experimenting with building omniorb 4.3.4 against the most recent version 3.6.5 of openssl on Windows using Visual Studio 2022.</div><div><br></div><div>I'm observing now a linkage error during the build as follows:</div><div><br></div><div>#########################################</div><div>+ set -x<br>+ rm -f shared/omnisslTP434_rt.lib<br>+ ../../../../../bin/x86_win32/linkwrapper -gnuwin32 -out:shared/omnisslTP434_vc143_rt.dll -DLL -manifest -STACK:10000000 -machine:X64 -debug -SAFESEH:NO -OPT:REF -OPT:ICF -def:shared/omnisslTP4.def -IMPLIB:shared/omnisslTP434_rt.lib -libpath:../../../../../lib/x86_win32 shared/sslActive.o shared/sslAddress.o shared/sslConnection.o shared/sslEndpoint.o shared/sslTransportImpl.o shared/sslContext.o shared/msvcdllstub.o -libpath:../shared omniORB434_rt.lib omnithread44_rt.lib ws2_32.lib mswsock.lib advapi32.lib user32.lib gdi32.lib -libpath:D:/_DEV/git/net.sourceforge.omniorb/target/openssl/lib libssl.lib libcrypto.lib shared/omnisslTP434_vc143_rt.res<br>Microsoft (R) Incremental Linker Version 14.44.35229.0<br>Copyright (C) Microsoft Corporation.  All rights reserved.<br><br>shared\omnisslTP4.def(1) : warning LNK4093: Drive/Directory component ignored in 'LIBRARY' statement<br>   Creating library shared/omnisslTP434_rt.lib and object shared/omnisslTP434_rt.exp<br>libcrypto.lib(libcrypto-lib-e_capi.obj) : error LNK2019: unresolved external symbol __imp_CertOpenStore referenced in function capi_open_store<br>libcrypto.lib(libcrypto-lib-e_capi.obj) : error LNK2019: unresolved external symbol __imp_CertCloseStore referenced in function capi_find_key<br>libcrypto.lib(libdefault-lib-winstore_store.obj) : error LNK2001: unresolved external symbol __imp_CertCloseStore<br>libcrypto.lib(libcrypto-lib-e_capi.obj) : error LNK2019: unresolved external symbol __imp_CertEnumCertificatesInStore referenced in function capi_find_cert<br>libcrypto.lib(libcrypto-lib-e_capi.obj) : error LNK2019: unresolved external symbol __imp_CertFindCertificateInStore referenced in function capi_find_cert<br>libcrypto.lib(libdefault-lib-winstore_store.obj) : error LNK2001: unresolved external symbol __imp_CertFindCertificateInStore<br>libcrypto.lib(libcrypto-lib-e_capi.obj) : error LNK2019: unresolved external symbol __imp_CertDuplicateCertificateContext referenced in function capi_load_ssl_client_cert<br>libcrypto.lib(libcrypto-lib-e_capi.obj) : error LNK2019: unresolved external symbol __imp_CertFreeCertificateContext referenced in function capi_dsa_free<br>libcrypto.lib(libdefault-lib-winstore_store.obj) : error LNK2001: unresolved external symbol __imp_CertFreeCertificateContext<br>libcrypto.lib(libcrypto-lib-e_capi.obj) : error LNK2019: unresolved external symbol __imp_CertGetCertificateContextProperty referenced in function capi_cert_get_fname<br>libcrypto.lib(libdefault-lib-winstore_store.obj) : error LNK2019: unresolved external symbol __imp_CertOpenSystemStoreW referenced in function winstore_open<br>shared\omnisslTP434_vc143_rt.dll : fatal error LNK1120: 8 unresolved externals<br>link -out:shared\omnisslTP434_vc143_rt.dll -DLL -manifest -STACK:10000000 -machine:X64 -debug -SAFESEH:NO -OPT:REF -OPT:ICF -def:shared\omnisslTP4.def -IMPLIB:shared/omnisslTP434_rt.lib -libpath:..\..\..\..\..\lib\x86_win32 shared\sslActive.o shared\sslAddress.o shared\sslConnection.o shared\sslEndpoint.o shared\sslTransportImpl.o shared\sslContext.o shared\msvcdllstub.o -libpath:..\shared omniORB434_rt.lib omnithread44_rt.lib ws2_32.lib mswsock.lib advapi32.lib user32.lib gdi32.lib -libpath:D:\_DEV\git\net.sourceforge.omniorb\target\openssl\lib libssl.lib libcrypto.lib shared\omnisslTP434_vc143_rt.res<br>+ mt.exe '/outputresource:shared/omnisslTP434_vc143_rt.dll;#2' /manifest shared/omnisslTP434_vc143_rt.dll.manifest</div><div>
#########################################

<br><br></div><div>Notice that the created command line does *not* list crypt32.lib (whose absence is the cause of above linkage errors), albeit I defined</div><div><br></div><div>OPEN_SSL_LIB = $(patsubst %,$(LibPathPattern),$(OPEN_SSL_ROOT)/lib) \<br>               libssl.lib libcrypto.lib<br>OMNIORB_SSL_LIB += $(OPEN_SSL_LIB) user32.lib crypt32.lib ws2_32.lib bcrypt.lib</div><div><br></div><div>in my <a href="http://x86_win32_vs_143_64.mk">x86_win32_vs_143_64.mk</a>. </div><div><br></div><div>It seems as if the variable 
OMNIORB_SSL_LIB is not properly considered for the build of 
omnisslTP434_rt.lib. For testing purposes I instead expanded 
OPEN_SSL_LIB as follows</div><div><br></div><div>OPEN_SSL_LIB = $(patsubst %,$(LibPathPattern),$(OPEN_SSL_ROOT)/lib) \<br>               libssl.lib libcrypto.lib \<br>               crypt32.lib bcrypt.lib ws2_32.lib user32.lib advapi32.lib<br><br></div><div>which again made the build succeed. So there seems to be a defect in one of the other .mk files provided by omniorb, not properly respecting the 
OMNIORB_SSL_LIB variable</div><div><br></div><div>I can live with my workaround for now, but a more appropriate fix in the provided omniorb .mk file collection would be very much appreciated.</div><div><br></div><div>Thanks,</div><div><br></div><div>- Daniel</div></div>