View Issue Details

IDProjectCategoryView StatusLast Update
0006307The Dark ModTDM Installerpublic15.07.2023 15:22
Reporteres20490446e Assigned Tostgatilov  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
PlatformLinux 
Product VersionSVN 
Target VersionTDM 2.12Fixed in VersionTDM 2.12 
Summary0006307: tdm_installer: fails to build: missing include: cstdint
DescriptionIf you try to build tdm_installer, it will complain that:

make:
In file included from tdm_installer/zipsync/Path.cpp:2:
tdm_installer/zipsync/Path.cpp: In function ‘void ZipSync::CheckPath(const std::string&, bool)’:
tdm_installer/zipsync/Path.cpp:31:24: error: ‘uint8_t’ was not declared in this scope
   31 | ZipSyncAssertF(uint8_t(path[i]) >= 32, "Non-printable character %d in path", int(path[i]));
      | ^~~~~~~
tdm_installer/zipsync/Logging.h:73:41: note: in definition of macro ‘ZipSyncAssertF’
   73 | #define ZipSyncAssertF(cond, ...) if (!(cond)) g_logger->errorf(lcAssertFailed, __VA_ARGS__); else ((void)0);
      | ^~~~
tdm_installer/zipsync/Path.cpp:10:1: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
    9 | #include <sys/stat.h>
  +++ |+#include <cstdint>
   10 | #endif
make[2]: *** [zipsync/CMakeFiles/libzipsync.dir/build.make:146: zipsync/CMakeFiles/libzipsync.dir/Path.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:129: zipsync/CMakeFiles/libzipsync.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
TagsNo tags attached.

Activities

es20490446e

es20490446e

12.07.2023 16:34

reporter   ~0016033

Root cause:
https://gcc.gnu.org/gcc-13/porting_to.html
es20490446e

es20490446e

12.07.2023 17:05

reporter   ~0016034

fixed-svn.zip (7,040 bytes)
stgatilov

stgatilov

15.07.2023 10:13

administrator   ~0016035

Committed in svn rev 10434.
es20490446e

es20490446e

15.07.2023 15:22

reporter   ~0016040

Thanks ;)

Issue History

Date Modified Username Field Change
09.07.2023 01:35 es20490446e New Issue
12.07.2023 16:34 es20490446e Note Added: 0016033
12.07.2023 17:05 es20490446e Note Added: 0016034
12.07.2023 17:05 es20490446e File Added: fixed-svn.zip
15.07.2023 10:13 stgatilov Note Added: 0016035
15.07.2023 10:13 stgatilov Assigned To => stgatilov
15.07.2023 10:13 stgatilov Status new => resolved
15.07.2023 10:13 stgatilov Resolution open => fixed
15.07.2023 10:13 stgatilov Fixed in Version => TDM 2.12
15.07.2023 10:13 stgatilov Target Version => TDM 2.12
15.07.2023 15:22 es20490446e Note Added: 0016040