2020-11-25 14:07 CET

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0006388Spring engineLinuxpublic2020-11-02 18:59
ReporterThinkSome 
Assigned Toabma 
PrioritylowSeveritytrivialReproducibilityalways
StatusresolvedResolutionunable to reproduce 
Product Version104.0 +git 
Target VersionFixed in Version 
Summary0006388: Build issues on Fedora 31: Z_BEST_COMPRESSION/Z_DEFLATED not declared in this scope
Description/home/user/spring/rts/Sim/Path/Default/PathEstimator.cpp: In member function ?bool CPathEstimator::WriteFile(const string&, const string&)?:
/home/user/spring/rts/Sim/Path/Default/PathEstimator.cpp:1026:82: error: ?Z_DEFLATED? was not declared in this scope
 1026 | zipOpenNewFileInZip(file, "pathinfo", nullptr, nullptr, 0, nullptr, 0, nullptr, Z_DEFLATED, Z_BEST_COMPRESSION);
      | ^~~~~~~~~~
/home/user/spring/rts/Sim/Path/Default/PathEstimator.cpp:1026:94: error: ?Z_BEST_COMPRESSION? was not declared in this scope
 1026 | zipOpenNewFileInZip(file, "pathinfo", nullptr, nullptr, 0, nullptr, 0, nullptr, Z_DEFLATED, Z_BEST_COMPRESSION);
      | ^~~~~~~~~~~~~~~~~~
Steps To ReproduceEnvironment:
Install F31 via https://framagit.org/specing/fedora/-/blob/master/kickstart
+ dnf install gcc-c++ cmake boost-devel DevIL-devel freetype-devel libunwind-devel glew-devel libvorbis-devel libXcursor-devel openal-devel SDL2-devel p7zip git curl jsoncpp libcurl-devel jsoncpp-devel minizip-devel vim

ccmake ../spring/ -DAI_TYPES=NATIVE -DCMAKE_INSTALL_PREFIX="$HOME/install/spring/104.0.1_p1474" -Wno-dev
Additional Informationgrep -r Z_BEST_COMPRESSION /usr/include/
/usr/include/zlib.h:#define Z_BEST_COMPRESSION 9
grep -r Z_DEFLATED /usr/include/
/usr/include/zlib.h:#define Z_DEFLATED 8
/usr/include/zlib.h: The method parameter is the compression method. It must be Z_DEFLATED in
TagsNo tags attached.
Checked infolog.txt for ErrorsIrrelevant
Attached Files

-Relationships
+Relationships

-Notes

~0020459

abma (administrator)

zlib.h should be included via https://github.com/spring/spring/blob/develop/rts/lib/minizip/zip.h#L50

so, without more details i can't help here. is there maybe an other zlib.h available which breaks compile?

~0020542

abma (administrator)

no feedback -> closing
+Notes

-Issue History
Date Modified Username Field Change
2020-05-07 11:53 ThinkSome New Issue
2020-07-06 13:34 abma Status new => feedback
2020-07-06 13:34 abma Note Added: 0020459
2020-11-02 18:59 abma Assigned To => abma
2020-11-02 18:59 abma Status feedback => resolved
2020-11-02 18:59 abma Resolution open => unable to reproduce
2020-11-02 18:59 abma Note Added: 0020542
+Issue History