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

cmake --build build 时报错 #5

Closed
yyzworker opened this issue Jul 27, 2023 · 1 comment · Fixed by #6
Closed

cmake --build build 时报错 #5

yyzworker opened this issue Jul 27, 2023 · 1 comment · Fixed by #6

Comments

@yyzworker
Copy link

cmake --build build时报错
[root@idtcentos7 fastcws]# cmake --build build
[ 1%] Building C object external/zlib/CMakeFiles/zlib.dir/adler32.o
[ 2%] Building C object external/zlib/CMakeFiles/zlib.dir/compress.o
[ 3%] Building C object external/zlib/CMakeFiles/zlib.dir/crc32.o
[ 4%] Building C object external/zlib/CMakeFiles/zlib.dir/deflate.o
[ 5%] Building C object external/zlib/CMakeFiles/zlib.dir/gzclose.o
[ 6%] Building C object external/zlib/CMakeFiles/zlib.dir/gzlib.o
[ 7%] Building C object external/zlib/CMakeFiles/zlib.dir/gzread.o
[ 8%] Building C object external/zlib/CMakeFiles/zlib.dir/gzwrite.o
[ 9%] Building C object external/zlib/CMakeFiles/zlib.dir/inflate.o
[ 10%] Building C object external/zlib/CMakeFiles/zlib.dir/infback.o
[ 11%] Building C object external/zlib/CMakeFiles/zlib.dir/inftrees.o
[ 12%] Building C object external/zlib/CMakeFiles/zlib.dir/inffast.o
[ 13%] Building C object external/zlib/CMakeFiles/zlib.dir/trees.o
[ 14%] Building C object external/zlib/CMakeFiles/zlib.dir/uncompr.o
[ 15%] Building C object external/zlib/CMakeFiles/zlib.dir/zutil.o
[ 17%] Linking C shared library libz.so
[ 17%] Built target zlib
[ 18%] Building C object external/zlib/CMakeFiles/zlibstatic.dir/adler32.o
[ 19%] Building C object external/zlib/CMakeFiles/zlibstatic.dir/compress.o
[ 20%] Building C object external/zlib/CMakeFiles/zlibstatic.dir/crc32.o
[ 21%] Building C object external/zlib/CMakeFiles/zlibstatic.dir/deflate.o
[ 22%] Building C object external/zlib/CMakeFiles/zlibstatic.dir/gzclose.o
[ 23%] Building C object external/zlib/CMakeFiles/zlibstatic.dir/gzlib.o
[ 24%] Building C object external/zlib/CMakeFiles/zlibstatic.dir/gzread.o
[ 25%] Building C object external/zlib/CMakeFiles/zlibstatic.dir/gzwrite.o
[ 26%] Building C object external/zlib/CMakeFiles/zlibstatic.dir/inflate.o
[ 27%] Building C object external/zlib/CMakeFiles/zlibstatic.dir/infback.o
[ 28%] Building C object external/zlib/CMakeFiles/zlibstatic.dir/inftrees.o
[ 29%] Building C object external/zlib/CMakeFiles/zlibstatic.dir/inffast.o
[ 30%] Building C object external/zlib/CMakeFiles/zlibstatic.dir/trees.o
[ 31%] Building C object external/zlib/CMakeFiles/zlibstatic.dir/uncompr.o
[ 32%] Building C object external/zlib/CMakeFiles/zlibstatic.dir/zutil.o
[ 34%] Linking C static library libz.a
[ 34%] Built target zlibstatic
[ 35%] Building C object external/zlib/CMakeFiles/example.dir/test/example.o
[ 36%] Linking C executable example
[ 36%] Built target example
[ 37%] Building C object external/zlib/CMakeFiles/minigzip.dir/test/minigzip.o
/root/fastcws/external/zlib/test/minigzip.c: In function ‘file_uncompress’:
/root/fastcws/external/zlib/test/minigzip.c:503:5: error: unknown type name ‘z_size_t’
z_size_t len = strlen(file);
^
gmake[2]: *** [external/zlib/CMakeFiles/minigzip.dir/test/minigzip.o] Error 1
gmake[1]: *** [external/zlib/CMakeFiles/minigzip.dir/all] Error 2
gmake: *** [all] Error 2

@omegacoleman
Copy link
Contributor

感谢汇报,看起来是此问题:madler/zlib#772

从上游的反馈来看,修改external/zlib/CMakeLists.txt可以解决此问题:madler/zlib#343

或者,由于minigzip在本项目中没有使用,直接移除掉相关的部分也可以

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

Successfully merging a pull request may close this issue.

2 participants