-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
error: unknown type name ‘z_size_t’ from test/minigzip.c #772
Comments
I just tried zlib 1.2.13 on "CentOS Linux release 7.9.2009 (AltArch)" with ./configure and make test, and worked fine. Why does your compile have the |
Hi @madler, I get the same error than @kirankotari on zlib v1.2.13.
And I get this error:
I'm on CentOS Linux release 7.9.2009 (Core) with Gcc8.2 |
Just to add some information, with same agent and same compiler, it fails on 1.2.13 but succeed with 1.2.12... |
@madler I have added this as part of other software, do you want me to remove before installing Note:- |
@kirankotari I fount the issue. I discovered that zlib.h was including the zconf.h located in /usr/include, which is quite old and doesn't define Workaround is to add this in minigzip.c:
I think the issue is related to the commit 2d6d59e. And my compiler (Intel icpc) use /usr/include folder because it define it in environment variable CPLUS_INCLUDE_PATH. 😡 |
@madler I think there is an issue in zlib CMakeLists.txt... To be sure to include the good zlib.h, I think that main CMakelists.txt should copy zlib.h into build directory. |
These changes might help you: |
This reverts commit ccdb6e9.
Possibly fixed with 2e3d86c . |
Hi Team,
I am pretty confused at this point, I saw
z_size_t
was defined in the zconf.h and it's has been included in zlib.hLooking for help what to do at this point.
From zconf.h
How to reproduce the error:
OS: PRETTY_NAME="CentOS Linux 7 (Core)"
Zlib version: zlib-1.2.13.tar
This error occurred on make
Error log:
Let me know if any more details needed.
Thanks for the contributions.
The text was updated successfully, but these errors were encountered: