[omniORB] Building omniorb against openssl 3.6.5

Daniel Krügler daniel.kruegler at gmail.com
Tue Oct 20 07:51:22 UTC 2026


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.

I'm observing now a linkage error during the build as follows:

#########################################
+ set -x
+ rm -f shared/omnisslTP434_rt.lib
+ ../../../../../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
Microsoft (R) Incremental Linker Version 14.44.35229.0
Copyright (C) Microsoft Corporation.  All rights reserved.

shared\omnisslTP4.def(1) : warning LNK4093: Drive/Directory component
ignored in 'LIBRARY' statement
   Creating library shared/omnisslTP434_rt.lib and object
shared/omnisslTP434_rt.exp
libcrypto.lib(libcrypto-lib-e_capi.obj) : error LNK2019: unresolved
external symbol __imp_CertOpenStore referenced in function capi_open_store
libcrypto.lib(libcrypto-lib-e_capi.obj) : error LNK2019: unresolved
external symbol __imp_CertCloseStore referenced in function capi_find_key
libcrypto.lib(libdefault-lib-winstore_store.obj) : error LNK2001:
unresolved external symbol __imp_CertCloseStore
libcrypto.lib(libcrypto-lib-e_capi.obj) : error LNK2019: unresolved
external symbol __imp_CertEnumCertificatesInStore referenced in function
capi_find_cert
libcrypto.lib(libcrypto-lib-e_capi.obj) : error LNK2019: unresolved
external symbol __imp_CertFindCertificateInStore referenced in function
capi_find_cert
libcrypto.lib(libdefault-lib-winstore_store.obj) : error LNK2001:
unresolved external symbol __imp_CertFindCertificateInStore
libcrypto.lib(libcrypto-lib-e_capi.obj) : error LNK2019: unresolved
external symbol __imp_CertDuplicateCertificateContext referenced in
function capi_load_ssl_client_cert
libcrypto.lib(libcrypto-lib-e_capi.obj) : error LNK2019: unresolved
external symbol __imp_CertFreeCertificateContext referenced in function
capi_dsa_free
libcrypto.lib(libdefault-lib-winstore_store.obj) : error LNK2001:
unresolved external symbol __imp_CertFreeCertificateContext
libcrypto.lib(libcrypto-lib-e_capi.obj) : error LNK2019: unresolved
external symbol __imp_CertGetCertificateContextProperty referenced in
function capi_cert_get_fname
libcrypto.lib(libdefault-lib-winstore_store.obj) : error LNK2019:
unresolved external symbol __imp_CertOpenSystemStoreW referenced in
function winstore_open
shared\omnisslTP434_vc143_rt.dll : fatal error LNK1120: 8 unresolved
externals
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
+ mt.exe '/outputresource:shared/omnisslTP434_vc143_rt.dll;#2' /manifest
shared/omnisslTP434_vc143_rt.dll.manifest
#########################################

Notice that the created command line does *not* list crypt32.lib (whose
absence is the cause of above linkage errors), albeit I defined

OPEN_SSL_LIB = $(patsubst %,$(LibPathPattern),$(OPEN_SSL_ROOT)/lib) \
               libssl.lib libcrypto.lib
OMNIORB_SSL_LIB += $(OPEN_SSL_LIB) user32.lib crypt32.lib ws2_32.lib
bcrypt.lib

in my x86_win32_vs_143_64.mk.

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

OPEN_SSL_LIB = $(patsubst %,$(LibPathPattern),$(OPEN_SSL_ROOT)/lib) \
               libssl.lib libcrypto.lib \
               crypt32.lib bcrypt.lib ws2_32.lib user32.lib advapi32.lib

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

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.

Thanks,

- Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.omniorb-support.com/pipermail/omniorb-list/attachments/20261020/b2d8c1f1/attachment.htm>


More information about the omniORB-list mailing list