[vbox-dev] Building on Windows with static OpenSSL

Власов Константин flint at flint-inc.ru
Tue Sep 6 14:06:39 GMT 2016


Hi, devs.

I managed to build VB from sources on Windows and create an installer which is 
pretty close to the official one. However, I'm using dynamically linked OpenSSL 
while Oracle seems to use statically linked version. I tried to do the same, but 
when I built static OpenSSL and supplied it instead of the dynamic one I got 
linker conflicts. The problem is that, first, VBoxRT.dll is linked with OpenSSL 
libs, and then vboxwebsrv.exe is linked with VBoxRT.lib AND OpenSSL libs, so the 
linker outputs the following errors:

ssleay32.lib(ssl_lib.obj) : error LNK2005: SSL_set_bio already defined in VBoxRT.lib(VBoxRT.dll)
ssleay32.lib(ssl_lib.obj) : error LNK2005: SSL_read already defined in VBoxRT.lib(VBoxRT.dll)
ssleay32.lib(ssl_lib.obj) : error LNK2005: SSL_write already defined in VBoxRT.lib(VBoxRT.dll)
... (and so on, many lines)

and the build is aborted.

I wonder, how did you achieve static linking with OpenSSL?


-- 
Bye.                                    With best regards,
                                        Konstantin Vlasov.




More information about the vbox-dev mailing list