Skip to content
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

Zlib tests fail: zlib version mismatch! #23

Closed
Krognol opened this issue Jul 12, 2017 · 5 comments
Closed

Zlib tests fail: zlib version mismatch! #23

Krognol opened this issue Jul 12, 2017 · 5 comments

Comments

@Krognol
Copy link

Krognol commented Jul 12, 2017

echoing zlibVersion gives me 1.2.8.

Running
Nim 0.17.0
Windows 10

@Krognol
Copy link
Author

Krognol commented Jul 13, 2017

Works fine on my linux vm. I guess my zlib version is outdated? Where does Nim even look for .dll's?

@fabianallendorf
Copy link

Is there a way to fix this yet? I have the exact same problem. Even when I download a newer zlib version, it errors with could not load zlib1.dll

@dom96
Copy link
Contributor

dom96 commented Sep 19, 2017

@Papanoah that seems like a different error. Are you sure the DLL's architecture matches your executable? (the DLL could be 64 bit whereas your exe is 32 bit).

@fabianallendorf
Copy link

@dom96 It's true, i've tried it with 32 bit dlls apparently. However, each 64bit zlib version from 1.2.7 up to 1.2.11 produces the version error. I'm not really into this issue but judging from the zlib doc, this may have something to do with z_stream size difference.

Z_VERSION_ERROR: The version requested is not compatible with the library version, or the z_stream size differs from that used by the library.

@snej
Copy link
Contributor

snej commented Jun 19, 2020

Same as #39 and #53. The error is because the ZStream struct is badly defined and has the wrong size on LP64 OSs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants