[CDRIVER-3098] libbson and libmongoc built on Windows Server can't be dlopened on Windows 10 Created: 25/Apr/19  Updated: 27/Oct/23  Resolved: 16/Aug/19

Status: Closed
Project: C Driver
Component/s: libbson, libmongoc
Affects Version/s: 1.14.0
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Felipe Noronha Tavares Assignee: Kevin Albertson
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Appveyor
Visual Studio 2017
Windows Server 2016



 Description   

See gist at https://gist.github.com/felipenoris/76b7c969b606ae669c91c27ddb6cbaec .

I'm using appveyor as build envorinment to distribute to windows desktop machines.
The resulting DLLs work fine on Windows Server as well as Windows 7 Desktops.

However, the DLLs can't be dlopened on Windows 10.

Actually, all DLLs produced at 'bin' folder can be opened on Windows 10, except libbson and libmongoc.



 Comments   
Comment by Kevin Albertson [ 16/Aug/19 ]

Hi felipenoris, we're closing this ticket, but feel free to re-open if you have more information to provide.

Comment by Rathi Gnanasekaran [ 29/Jul/19 ]

felipenoris please provide us with the requested information in the next couple of days. We will proceed to close this ticket if we do not hear from you.

Comment by Kevin Albertson [ 24/Jun/19 ]

Thanks for the report felipenoris. Apologies if I'm misunderstanding, the gist you linked to includes the AppVeyor configuration and log, which contains the cmake output. But I'm unclear on where the failure is or how I can reproduce it locally.

The AppVeyor logs does not seem to indicate an error. I see it configures with cmake:

cmake -G "Visual Studio 15 2017 Win64" "-DCMAKE_INSTALL_PREFIX=%APPVEYOR_BUILD_FOLDER%/target" "-DCMAKE_PREFIX_PATH=%APPVEYOR_BUILD_FOLDER%/target" ..

Builds with msbuild:

msbuild.exe /p:Configuration=RelWithDebInfo ALL_BUILD.vcxproj

And tars + publishes the artifacts

tar -zcvf ../mongo-c-driver-builder.v1.14.0.x86_64-windows.tar.gz *

How are you attempting to dlopen libbson/libmongoc?

Comment by Felipe Noronha Tavares [ 26/Apr/19 ]

Today I was able to compile libbson and libmongoc on a Windows 10 Machine, with Visual Studio 2015 C++ Build Tools.
The result is the same: I can't dlopen libbson or libmongoc.
In this case, the difference is that I'm compiling and trying to dlopen in the same machine/operating system.

Generated at Wed Feb 07 21:17:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.