-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Build error with VS 2022, and zlib compression enabled #2422
Comments
What build commands are you using to repro this? |
Originally I used it as a submodule (via FetchContent), but I have just reproduced it stand-alone. This is the command line:
and the build:
|
Any news? |
I reproduced this error as well, but the fix may also require changing
to
because |
Hmmm - why does |
This is a bit beyond my knowledge of zlib, but maybe there are performance implications with Also, 263144 isn't actually 256k. 256k is 262144. Is this a typo? |
I got the same issue, but how to slove this |
For now, I just patch the source (see the "Possible solution" section in issue description). Those are only workarounds. The actual solution must be provided by the authors. It makes me wonder, how they build it... |
Almost a year old? Any official fixes for this yet? |
Can you try following this guide for building this sdk in Visual Studio? Please let me know if zlib compression is still causing any errors for you |
Greetings! It looks like this issue hasn’t been active in longer than a week. We encourage you to check if this is still an issue in the latest release. Because it has been longer than a week since the last update on this, and in the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or add an upvote to prevent automatic closure, or if the issue is already closed, please feel free to open a new one. |
Sorry, but I cannot just jump into it. I had more than enough time when I first opened the issue, but nobody was interested back then... |
Closing for now. Please let us know if you or anyone else runs into this build error in the future |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Describe the bug
Build failed
Expected Behavior
Successful build
Current Behavior
Reproduction Steps
Build with Visual Studio 2022, and zlib compression enabled.
Possible Solution
In src/aws-cpp-sdk-core/source/client/RequestCompression.cpp:
line 159:
strm.avail_in = static_cast<uInt>((flush == Z_FINISH)?toRead-1:toRead); //skip EOF if included
line 208:
strm.avail_in = static_cast<uInt>(toRead);
Additional Information/Context
No response
AWS CPP SDK version used
1.11.48
Compiler and Version used
VS 2022
Operating System and version
Windows 10
The text was updated successfully, but these errors were encountered: