CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. 100%100%100%100%100%Done tc-play-2.0/ tc-play-2.0/.gitignore tc-play-2.0/CHANGELOG tc-play-2.0/CMakeLists.txt tc-play-2.0/LICENSE tc-play-2.0/Makefile.classic tc-play-2.0/README.md tc-play-2.0/crc32.c tc-play-2.0/crc32.h tc-play-2.0/crypto-dev.c tc-play-2.0/crypto-gcrypt.c tc-play-2.0/crypto.c tc-play-2.0/generic_xts.c tc-play-2.0/generic_xts.h tc-play-2.0/hdr.c tc-play-2.0/humanize.c tc-play-2.0/humanize.h tc-play-2.0/io.c tc-play-2.0/main.c tc-play-2.0/pbkdf2-gcrypt.c tc-play-2.0/pbkdf2-openssl.c tc-play-2.0/safe_mem.c tc-play-2.0/tcplay.3 tc-play-2.0/tcplay.8 tc-play-2.0/tcplay.c tc-play-2.0/tcplay.h tc-play-2.0/tcplay.map tc-play-2.0/tcplay_api.c tc-play-2.0/tcplay_api.h tc-play-2.0/tcplay_api_internal.h tc-play-2.0/tcplay_api_test.c tc-play-2.0/test/ tc-play-2.0/test/Gemfile tc-play-2.0/test/Makefile tc-play-2.0/test/README tc-play-2.0/test/features/ tc-play-2.0/test/features/create_vol_api.feature tc-play-2.0/test/features/create_vol_cli.feature tc-play-2.0/test/features/modify_vol_api.feature tc-play-2.0/test/features/modify_vol_cli.feature tc-play-2.0/test/features/passphrase_64_api.feature tc-play-2.0/test/features/passphrase_64_cli.feature tc-play-2.0/test/features/query_api.feature tc-play-2.0/test/features/restore_hdr_api.feature tc-play-2.0/test/features/restore_hdr_cli.feature tc-play-2.0/test/features/save_hdr_api.feature tc-play-2.0/test/features/save_hdr_cli.feature tc-play-2.0/test/features/step_definitions/ tc-play-2.0/test/features/step_definitions/libtcplay_steps.rb tc-play-2.0/test/features/step_definitions/tcplay_steps.rb tc-play-2.0/test/features/support/ tc-play-2.0/test/features/support/env.rb tc-play-2.0/test/features/vol_test1_api.feature tc-play-2.0/test/features/vol_test1_cli.feature tc-play-2.0/test/features/vol_test2_api.feature tc-play-2.0/test/features/vol_test2_cli.feature tc-play-2.0/test/keyfiles/ tc-play-2.0/test/keyfiles/key.1 tc-play-2.0/test/keyfiles/key.2 tc-play-2.0/test/reduce_test_vol.sh tc-play-2.0/test/volumes/ tc-play-2.0/test/volumes/test1.tc tc-play-2.0/test/volumes/test2.desc tc-play-2.0/test/volumes/test2.tc tc-play-2.0/test/volumes/test_long.tc -- The C compiler identification is GNU 11.2.0 -- The CXX compiler identification is GNU 11.2.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2") -- Checking for module 'devmapper' -- Found devmapper, version 1.02.179 -- Checking for module 'uuid' -- Found uuid, version 2.37.4 -- Looking for gcry_kdf_derive in gcrypt -- Looking for gcry_kdf_derive in gcrypt - found -- Configuring done -- Generating done -- Build files have been written to: /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/build [ 2%] Building C object CMakeFiles/tcplay-static.dir/tcplay_api.c.o In file included from /usr/include/stdlib.h:825, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay_api.c:30: /usr/include/bits/stdlib-bsearch.h: In function ‘bsearch’: /usr/include/bits/stdlib-bsearch.h:32:13: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 32 | __p = (void *) (((const char *) __base) + (__idx * __size)); | ^ /usr/include/bits/stdlib-bsearch.h:39:16: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 39 | return (void *) __p; | ^ [ 5%] Building C object CMakeFiles/tcplay-static.dir/tcplay.c.o In file included from /usr/include/stdlib.h:825, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c:40: /usr/include/bits/stdlib-bsearch.h: In function ‘bsearch’: /usr/include/bits/stdlib-bsearch.h:32:13: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 32 | __p = (void *) (((const char *) __base) + (__idx * __size)); | ^ /usr/include/bits/stdlib-bsearch.h:39:16: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 39 | return (void *) __p; | ^ In function ‘new_info’, inlined from ‘process_hdr’ at /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c:506:14: /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c:368:9: warning: ‘strncpy’ specified bound 4096 equals destination size [-Wstringop-truncation] 368 | strncpy(info->dev, dev, sizeof(info->dev)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c: In function ‘dm_setup’: /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c:1796:48: warning: ‘%s’ directive output may be truncated writing up to 4095 bytes into a region of size 512 [-Wformat-truncation=] 1796 | snprintf(params, 512, "%s 0", dev); | ^~ ~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c:1796:25: note: ‘snprintf’ output between 3 and 4098 bytes into a destination of size 512 1796 | snprintf(params, 512, "%s 0", dev); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c:1811:39: warning: ‘%s’ directive output may be truncated writing up to 4095 bytes into a region of size between 108 and 508 [-Wformat-truncation=] 1811 | snprintf(params, 512, "%s %s %"PRIu64 " %s %"PRIu64 " %s", | ^~~~~~~~~ 1812 | cipher_chain->cipher->dm_crypt_str, cipher_chain->dm_key, 1813 | (uint64_t)INFO_TO_DM_BLOCKS(info, skip), dev, | ~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c:1811:57: note: format string is defined here 1811 | snprintf(params, 512, "%s %s %"PRIu64 " %s %"PRIu64 " %s", | ^~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c:1811:39: note: directive argument in the range [0, 36028797018963967] 1811 | snprintf(params, 512, "%s %s %"PRIu64 " %s %"PRIu64 " %s", | ^~~~~~~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c:1811:17: note: ‘snprintf’ output 8 or more bytes (assuming 4535) into a destination of size 512 1811 | snprintf(params, 512, "%s %s %"PRIu64 " %s %"PRIu64 " %s", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1812 | cipher_chain->cipher->dm_crypt_str, cipher_chain->dm_key, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1813 | (uint64_t)INFO_TO_DM_BLOCKS(info, skip), dev, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1814 | (uint64_t)offset, | ~~~~~~~~~~~~~~~~~ 1815 | TC_FLAG_SET(info->flags, ALLOW_TRIM) ? "1 allow_discards" : ""); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c: In function ‘dm_info_map’: /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c:1552:9: warning: ‘strncpy’ specified bound 4096 equals destination size [-Wstringop-truncation] 1552 | strncpy(map, map_name, PATH_MAX); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘dm_get_table’, inlined from ‘dm_info_map’ at /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c:1558:18: /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c:1462:17: warning: ‘strncpy’ specified bound 256 equals destination size [-Wstringop-truncation] 1462 | strncpy(tc_table->target, target_type, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1463 | sizeof(tc_table->target)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c:1478:41: warning: ‘strncpy’ specified bound 256 equals destination size [-Wstringop-truncation] 1478 | strncpy(tc_table->cipher, p1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1479 | sizeof(tc_table->cipher)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ [ 8%] Building C object CMakeFiles/tcplay-static.dir/crc32.c.o In file included from /usr/include/stdlib.h:825, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/crc32.c:40: /usr/include/bits/stdlib-bsearch.h: In function ‘bsearch’: /usr/include/bits/stdlib-bsearch.h:32:13: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 32 | __p = (void *) (((const char *) __base) + (__idx * __size)); | ^ /usr/include/bits/stdlib-bsearch.h:39:16: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 39 | return (void *) __p; | ^ [ 11%] Building C object CMakeFiles/tcplay-static.dir/safe_mem.c.o In file included from /usr/include/stdlib.h:825, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/safe_mem.c:32: /usr/include/bits/stdlib-bsearch.h: In function ‘bsearch’: /usr/include/bits/stdlib-bsearch.h:32:13: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 32 | __p = (void *) (((const char *) __base) + (__idx * __size)); | ^ /usr/include/bits/stdlib-bsearch.h:39:16: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 39 | return (void *) __p; | ^ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/safe_mem.c: In function ‘_alloc_safe_mem’: /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/safe_mem.c:66:13: warning: ‘mem’ may be used uninitialized [-Wmaybe-uninitialized] 66 | if (mlock(mem, alloc_sz) < 0) { | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/safe_mem.c:31: /usr/include/sys/mman.h:103:12: note: by argument 1 of type ‘const void *’ to ‘mlock’ declared here 103 | extern int mlock (const void *__addr, size_t __len) __THROW; | ^~~~~ [ 13%] Building C object CMakeFiles/tcplay-static.dir/io.c.o In file included from /usr/include/sys/uio.h:168, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/io.c:38: /usr/include/bits/uio-ext.h:45: warning: "RWF_HIPRI" redefined 45 | #define RWF_HIPRI 0x00000001 /* High priority request. */ | In file included from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/io.c:34: /usr/include/linux/fs.h:286: note: this is the location of the previous definition 286 | #define RWF_HIPRI ((__kernel_rwf_t)0x00000001) | In file included from /usr/include/sys/uio.h:168, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/io.c:38: /usr/include/bits/uio-ext.h:46: warning: "RWF_DSYNC" redefined 46 | #define RWF_DSYNC 0x00000002 /* per-IO O_DSYNC. */ | In file included from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/io.c:34: /usr/include/linux/fs.h:289: note: this is the location of the previous definition 289 | #define RWF_DSYNC ((__kernel_rwf_t)0x00000002) | In file included from /usr/include/sys/uio.h:168, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/io.c:38: /usr/include/bits/uio-ext.h:47: warning: "RWF_SYNC" redefined 47 | #define RWF_SYNC 0x00000004 /* per-IO O_SYNC. */ | In file included from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/io.c:34: /usr/include/linux/fs.h:292: note: this is the location of the previous definition 292 | #define RWF_SYNC ((__kernel_rwf_t)0x00000004) | In file included from /usr/include/sys/uio.h:168, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/io.c:38: /usr/include/bits/uio-ext.h:48: warning: "RWF_NOWAIT" redefined 48 | #define RWF_NOWAIT 0x00000008 /* per-IO nonblocking mode. */ | In file included from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/io.c:34: /usr/include/linux/fs.h:295: note: this is the location of the previous definition 295 | #define RWF_NOWAIT ((__kernel_rwf_t)0x00000008) | In file included from /usr/include/sys/uio.h:168, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/io.c:38: /usr/include/bits/uio-ext.h:49: warning: "RWF_APPEND" redefined 49 | #define RWF_APPEND 0x00000010 /* per-IO O_APPEND. */ | In file included from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/io.c:34: /usr/include/linux/fs.h:298: note: this is the location of the previous definition 298 | #define RWF_APPEND ((__kernel_rwf_t)0x00000010) | In file included from /usr/include/stdlib.h:825, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/io.c:43: /usr/include/bits/stdlib-bsearch.h: In function ‘bsearch’: /usr/include/bits/stdlib-bsearch.h:32:13: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 32 | __p = (void *) (((const char *) __base) + (__idx * __size)); | ^ /usr/include/bits/stdlib-bsearch.h:39:16: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 39 | return (void *) __p; | ^ [ 16%] Building C object CMakeFiles/tcplay-static.dir/hdr.c.o In file included from /usr/include/stdlib.h:825, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/hdr.c:39: /usr/include/bits/stdlib-bsearch.h: In function ‘bsearch’: /usr/include/bits/stdlib-bsearch.h:32:13: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 32 | __p = (void *) (((const char *) __base) + (__idx * __size)); | ^ /usr/include/bits/stdlib-bsearch.h:39:16: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 39 | return (void *) __p; | ^ [ 19%] Building C object CMakeFiles/tcplay-static.dir/humanize.c.o In file included from /usr/include/stdlib.h:825, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:31: /usr/include/bits/stdlib-bsearch.h: In function ‘bsearch’: /usr/include/bits/stdlib-bsearch.h:32:13: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 32 | __p = (void *) (((const char *) __base) + (__idx * __size)); | ^ /usr/include/bits/stdlib-bsearch.h:39:16: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 39 | return (void *) __p; | ^ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c: In function ‘_dehumanize_number’: /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:93:28: warning: this statement may fall through [-Wimplicit-fallthrough=] 93 | multiplier *= 1024; | ~~~~~~~~~~~^~~~~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:94:9: note: here 94 | case 'z': | ^~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:95:28: warning: this statement may fall through [-Wimplicit-fallthrough=] 95 | multiplier *= 1024; | ~~~~~~~~~~~^~~~~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:96:9: note: here 96 | case 'e': | ^~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:97:28: warning: this statement may fall through [-Wimplicit-fallthrough=] 97 | multiplier *= 1024; | ~~~~~~~~~~~^~~~~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:98:9: note: here 98 | case 'p': | ^~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:99:28: warning: this statement may fall through [-Wimplicit-fallthrough=] 99 | multiplier *= 1024; | ~~~~~~~~~~~^~~~~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:100:9: note: here 100 | case 't': | ^~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:101:28: warning: this statement may fall through [-Wimplicit-fallthrough=] 101 | multiplier *= 1024; | ~~~~~~~~~~~^~~~~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:102:9: note: here 102 | case 'g': | ^~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:103:28: warning: this statement may fall through [-Wimplicit-fallthrough=] 103 | multiplier *= 1024; | ~~~~~~~~~~~^~~~~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:104:9: note: here 104 | case 'm': | ^~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:105:28: warning: this statement may fall through [-Wimplicit-fallthrough=] 105 | multiplier *= 1024; | ~~~~~~~~~~~^~~~~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:106:9: note: here 106 | case 'k': | ^~~~ [ 22%] Building C object CMakeFiles/tcplay-static.dir/crypto.c.o [ 25%] Building C object CMakeFiles/tcplay-static.dir/generic_xts.c.o In file included from /usr/include/stdlib.h:825, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/generic_xts.c:23: /usr/include/bits/stdlib-bsearch.h: In function ‘bsearch’: /usr/include/bits/stdlib-bsearch.h:32:13: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 32 | __p = (void *) (((const char *) __base) + (__idx * __size)); | ^ /usr/include/bits/stdlib-bsearch.h:39:16: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 39 | return (void *) __p; | ^ [ 27%] Building C object CMakeFiles/tcplay-static.dir/crypto-gcrypt.c.o In file included from /usr/include/stdlib.h:825, from /usr/include/gcrypt.h:26, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/crypto-gcrypt.c:42: /usr/include/bits/stdlib-bsearch.h: In function ‘bsearch’: /usr/include/bits/stdlib-bsearch.h:32:13: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 32 | __p = (void *) (((const char *) __base) + (__idx * __size)); | ^ /usr/include/bits/stdlib-bsearch.h:39:16: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 39 | return (void *) __p; | ^ [ 30%] Building C object CMakeFiles/tcplay-static.dir/pbkdf2-gcrypt.c.o In file included from /usr/include/stdlib.h:825, from /usr/include/gcrypt.h:26, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/pbkdf2-gcrypt.c:38: /usr/include/bits/stdlib-bsearch.h: In function ‘bsearch’: /usr/include/bits/stdlib-bsearch.h:32:13: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 32 | __p = (void *) (((const char *) __base) + (__idx * __size)); | ^ /usr/include/bits/stdlib-bsearch.h:39:16: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 39 | return (void *) __p; | ^ [ 33%] Linking C static library libtcplay.a [ 33%] Built target tcplay-static [ 36%] Building C object CMakeFiles/tcplay-so.dir/tcplay_api.c.o In file included from /usr/include/stdlib.h:825, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay_api.c:30: /usr/include/bits/stdlib-bsearch.h: In function ‘bsearch’: /usr/include/bits/stdlib-bsearch.h:32:13: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 32 | __p = (void *) (((const char *) __base) + (__idx * __size)); | ^ /usr/include/bits/stdlib-bsearch.h:39:16: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 39 | return (void *) __p; | ^ [ 38%] Building C object CMakeFiles/tcplay-so.dir/tcplay.c.o In file included from /usr/include/stdlib.h:825, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c:40: /usr/include/bits/stdlib-bsearch.h: In function ‘bsearch’: /usr/include/bits/stdlib-bsearch.h:32:13: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 32 | __p = (void *) (((const char *) __base) + (__idx * __size)); | ^ /usr/include/bits/stdlib-bsearch.h:39:16: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 39 | return (void *) __p; | ^ In function ‘new_info’, inlined from ‘process_hdr’ at /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c:506:14: /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c:368:9: warning: ‘strncpy’ specified bound 4096 equals destination size [-Wstringop-truncation] 368 | strncpy(info->dev, dev, sizeof(info->dev)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c: In function ‘dm_setup’: /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c:1796:48: warning: ‘%s’ directive output may be truncated writing up to 4095 bytes into a region of size 512 [-Wformat-truncation=] 1796 | snprintf(params, 512, "%s 0", dev); | ^~ ~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c:1796:25: note: ‘snprintf’ output between 3 and 4098 bytes into a destination of size 512 1796 | snprintf(params, 512, "%s 0", dev); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c:1811:39: warning: ‘%s’ directive output may be truncated writing up to 4095 bytes into a region of size between 108 and 508 [-Wformat-truncation=] 1811 | snprintf(params, 512, "%s %s %"PRIu64 " %s %"PRIu64 " %s", | ^~~~~~~~~ 1812 | cipher_chain->cipher->dm_crypt_str, cipher_chain->dm_key, 1813 | (uint64_t)INFO_TO_DM_BLOCKS(info, skip), dev, | ~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c:1811:57: note: format string is defined here 1811 | snprintf(params, 512, "%s %s %"PRIu64 " %s %"PRIu64 " %s", | ^~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c:1811:39: note: directive argument in the range [0, 36028797018963967] 1811 | snprintf(params, 512, "%s %s %"PRIu64 " %s %"PRIu64 " %s", | ^~~~~~~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c:1811:17: note: ‘snprintf’ output 8 or more bytes (assuming 4535) into a destination of size 512 1811 | snprintf(params, 512, "%s %s %"PRIu64 " %s %"PRIu64 " %s", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1812 | cipher_chain->cipher->dm_crypt_str, cipher_chain->dm_key, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1813 | (uint64_t)INFO_TO_DM_BLOCKS(info, skip), dev, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1814 | (uint64_t)offset, | ~~~~~~~~~~~~~~~~~ 1815 | TC_FLAG_SET(info->flags, ALLOW_TRIM) ? "1 allow_discards" : ""); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c: In function ‘dm_info_map’: /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c:1552:9: warning: ‘strncpy’ specified bound 4096 equals destination size [-Wstringop-truncation] 1552 | strncpy(map, map_name, PATH_MAX); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘dm_get_table’, inlined from ‘dm_info_map’ at /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c:1558:18: /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c:1462:17: warning: ‘strncpy’ specified bound 256 equals destination size [-Wstringop-truncation] 1462 | strncpy(tc_table->target, target_type, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1463 | sizeof(tc_table->target)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c:1478:41: warning: ‘strncpy’ specified bound 256 equals destination size [-Wstringop-truncation] 1478 | strncpy(tc_table->cipher, p1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1479 | sizeof(tc_table->cipher)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ [ 41%] Building C object CMakeFiles/tcplay-so.dir/crc32.c.o In file included from /usr/include/stdlib.h:825, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/crc32.c:40: /usr/include/bits/stdlib-bsearch.h: In function ‘bsearch’: /usr/include/bits/stdlib-bsearch.h:32:13: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 32 | __p = (void *) (((const char *) __base) + (__idx * __size)); | ^ /usr/include/bits/stdlib-bsearch.h:39:16: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 39 | return (void *) __p; | ^ [ 44%] Building C object CMakeFiles/tcplay-so.dir/safe_mem.c.o In file included from /usr/include/stdlib.h:825, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/safe_mem.c:32: /usr/include/bits/stdlib-bsearch.h: In function ‘bsearch’: /usr/include/bits/stdlib-bsearch.h:32:13: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 32 | __p = (void *) (((const char *) __base) + (__idx * __size)); | ^ /usr/include/bits/stdlib-bsearch.h:39:16: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 39 | return (void *) __p; | ^ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/safe_mem.c: In function ‘_alloc_safe_mem’: /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/safe_mem.c:66:13: warning: ‘mem’ may be used uninitialized [-Wmaybe-uninitialized] 66 | if (mlock(mem, alloc_sz) < 0) { | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/safe_mem.c:31: /usr/include/sys/mman.h:103:12: note: by argument 1 of type ‘const void *’ to ‘mlock’ declared here 103 | extern int mlock (const void *__addr, size_t __len) __THROW; | ^~~~~ [ 47%] Building C object CMakeFiles/tcplay-so.dir/io.c.o In file included from /usr/include/sys/uio.h:168, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/io.c:38: /usr/include/bits/uio-ext.h:45: warning: "RWF_HIPRI" redefined 45 | #define RWF_HIPRI 0x00000001 /* High priority request. */ | In file included from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/io.c:34: /usr/include/linux/fs.h:286: note: this is the location of the previous definition 286 | #define RWF_HIPRI ((__kernel_rwf_t)0x00000001) | In file included from /usr/include/sys/uio.h:168, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/io.c:38: /usr/include/bits/uio-ext.h:46: warning: "RWF_DSYNC" redefined 46 | #define RWF_DSYNC 0x00000002 /* per-IO O_DSYNC. */ | In file included from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/io.c:34: /usr/include/linux/fs.h:289: note: this is the location of the previous definition 289 | #define RWF_DSYNC ((__kernel_rwf_t)0x00000002) | In file included from /usr/include/sys/uio.h:168, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/io.c:38: /usr/include/bits/uio-ext.h:47: warning: "RWF_SYNC" redefined 47 | #define RWF_SYNC 0x00000004 /* per-IO O_SYNC. */ | In file included from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/io.c:34: /usr/include/linux/fs.h:292: note: this is the location of the previous definition 292 | #define RWF_SYNC ((__kernel_rwf_t)0x00000004) | In file included from /usr/include/sys/uio.h:168, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/io.c:38: /usr/include/bits/uio-ext.h:48: warning: "RWF_NOWAIT" redefined 48 | #define RWF_NOWAIT 0x00000008 /* per-IO nonblocking mode. */ | In file included from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/io.c:34: /usr/include/linux/fs.h:295: note: this is the location of the previous definition 295 | #define RWF_NOWAIT ((__kernel_rwf_t)0x00000008) | In file included from /usr/include/sys/uio.h:168, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/io.c:38: /usr/include/bits/uio-ext.h:49: warning: "RWF_APPEND" redefined 49 | #define RWF_APPEND 0x00000010 /* per-IO O_APPEND. */ | In file included from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/io.c:34: /usr/include/linux/fs.h:298: note: this is the location of the previous definition 298 | #define RWF_APPEND ((__kernel_rwf_t)0x00000010) | In file included from /usr/include/stdlib.h:825, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/io.c:43: /usr/include/bits/stdlib-bsearch.h: In function ‘bsearch’: /usr/include/bits/stdlib-bsearch.h:32:13: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 32 | __p = (void *) (((const char *) __base) + (__idx * __size)); | ^ /usr/include/bits/stdlib-bsearch.h:39:16: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 39 | return (void *) __p; | ^ [ 50%] Building C object CMakeFiles/tcplay-so.dir/hdr.c.o In file included from /usr/include/stdlib.h:825, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/hdr.c:39: /usr/include/bits/stdlib-bsearch.h: In function ‘bsearch’: /usr/include/bits/stdlib-bsearch.h:32:13: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 32 | __p = (void *) (((const char *) __base) + (__idx * __size)); | ^ /usr/include/bits/stdlib-bsearch.h:39:16: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 39 | return (void *) __p; | ^ [ 52%] Building C object CMakeFiles/tcplay-so.dir/humanize.c.o In file included from /usr/include/stdlib.h:825, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:31: /usr/include/bits/stdlib-bsearch.h: In function ‘bsearch’: /usr/include/bits/stdlib-bsearch.h:32:13: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 32 | __p = (void *) (((const char *) __base) + (__idx * __size)); | ^ /usr/include/bits/stdlib-bsearch.h:39:16: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 39 | return (void *) __p; | ^ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c: In function ‘_dehumanize_number’: /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:93:28: warning: this statement may fall through [-Wimplicit-fallthrough=] 93 | multiplier *= 1024; | ~~~~~~~~~~~^~~~~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:94:9: note: here 94 | case 'z': | ^~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:95:28: warning: this statement may fall through [-Wimplicit-fallthrough=] 95 | multiplier *= 1024; | ~~~~~~~~~~~^~~~~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:96:9: note: here 96 | case 'e': | ^~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:97:28: warning: this statement may fall through [-Wimplicit-fallthrough=] 97 | multiplier *= 1024; | ~~~~~~~~~~~^~~~~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:98:9: note: here 98 | case 'p': | ^~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:99:28: warning: this statement may fall through [-Wimplicit-fallthrough=] 99 | multiplier *= 1024; | ~~~~~~~~~~~^~~~~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:100:9: note: here 100 | case 't': | ^~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:101:28: warning: this statement may fall through [-Wimplicit-fallthrough=] 101 | multiplier *= 1024; | ~~~~~~~~~~~^~~~~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:102:9: note: here 102 | case 'g': | ^~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:103:28: warning: this statement may fall through [-Wimplicit-fallthrough=] 103 | multiplier *= 1024; | ~~~~~~~~~~~^~~~~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:104:9: note: here 104 | case 'm': | ^~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:105:28: warning: this statement may fall through [-Wimplicit-fallthrough=] 105 | multiplier *= 1024; | ~~~~~~~~~~~^~~~~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:106:9: note: here 106 | case 'k': | ^~~~ [ 55%] Building C object CMakeFiles/tcplay-so.dir/crypto.c.o [ 58%] Building C object CMakeFiles/tcplay-so.dir/generic_xts.c.o In file included from /usr/include/stdlib.h:825, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/generic_xts.c:23: /usr/include/bits/stdlib-bsearch.h: In function ‘bsearch’: /usr/include/bits/stdlib-bsearch.h:32:13: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 32 | __p = (void *) (((const char *) __base) + (__idx * __size)); | ^ /usr/include/bits/stdlib-bsearch.h:39:16: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 39 | return (void *) __p; | ^ [ 61%] Building C object CMakeFiles/tcplay-so.dir/crypto-gcrypt.c.o In file included from /usr/include/stdlib.h:825, from /usr/include/gcrypt.h:26, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/crypto-gcrypt.c:42: /usr/include/bits/stdlib-bsearch.h: In function ‘bsearch’: /usr/include/bits/stdlib-bsearch.h:32:13: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 32 | __p = (void *) (((const char *) __base) + (__idx * __size)); | ^ /usr/include/bits/stdlib-bsearch.h:39:16: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 39 | return (void *) __p; | ^ [ 63%] Building C object CMakeFiles/tcplay-so.dir/pbkdf2-gcrypt.c.o In file included from /usr/include/stdlib.h:825, from /usr/include/gcrypt.h:26, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/pbkdf2-gcrypt.c:38: /usr/include/bits/stdlib-bsearch.h: In function ‘bsearch’: /usr/include/bits/stdlib-bsearch.h:32:13: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 32 | __p = (void *) (((const char *) __base) + (__idx * __size)); | ^ /usr/include/bits/stdlib-bsearch.h:39:16: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 39 | return (void *) __p; | ^ [ 66%] Linking C shared library libtcplay.so [ 66%] Built target tcplay-so [ 69%] Building C object CMakeFiles/tcplay-bin.dir/main.c.o In file included from /usr/include/stdlib.h:825, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/main.c:33: /usr/include/bits/stdlib-bsearch.h: In function ‘bsearch’: /usr/include/bits/stdlib-bsearch.h:32:13: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 32 | __p = (void *) (((const char *) __base) + (__idx * __size)); | ^ /usr/include/bits/stdlib-bsearch.h:39:16: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 39 | return (void *) __p; | ^ [ 72%] Building C object CMakeFiles/tcplay-bin.dir/tcplay.c.o In file included from /usr/include/stdlib.h:825, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c:40: /usr/include/bits/stdlib-bsearch.h: In function ‘bsearch’: /usr/include/bits/stdlib-bsearch.h:32:13: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 32 | __p = (void *) (((const char *) __base) + (__idx * __size)); | ^ /usr/include/bits/stdlib-bsearch.h:39:16: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 39 | return (void *) __p; | ^ In function ‘new_info’, inlined from ‘process_hdr’ at /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c:506:14: /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c:368:9: warning: ‘strncpy’ specified bound 4096 equals destination size [-Wstringop-truncation] 368 | strncpy(info->dev, dev, sizeof(info->dev)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c: In function ‘dm_setup’: /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c:1796:48: warning: ‘%s’ directive output may be truncated writing up to 4095 bytes into a region of size 512 [-Wformat-truncation=] 1796 | snprintf(params, 512, "%s 0", dev); | ^~ ~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c:1796:25: note: ‘snprintf’ output between 3 and 4098 bytes into a destination of size 512 1796 | snprintf(params, 512, "%s 0", dev); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c:1811:39: warning: ‘%s’ directive output may be truncated writing up to 4095 bytes into a region of size between 108 and 508 [-Wformat-truncation=] 1811 | snprintf(params, 512, "%s %s %"PRIu64 " %s %"PRIu64 " %s", | ^~~~~~~~~ 1812 | cipher_chain->cipher->dm_crypt_str, cipher_chain->dm_key, 1813 | (uint64_t)INFO_TO_DM_BLOCKS(info, skip), dev, | ~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c:1811:57: note: format string is defined here 1811 | snprintf(params, 512, "%s %s %"PRIu64 " %s %"PRIu64 " %s", | ^~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c:1811:39: note: directive argument in the range [0, 36028797018963967] 1811 | snprintf(params, 512, "%s %s %"PRIu64 " %s %"PRIu64 " %s", | ^~~~~~~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c:1811:17: note: ‘snprintf’ output 8 or more bytes (assuming 4535) into a destination of size 512 1811 | snprintf(params, 512, "%s %s %"PRIu64 " %s %"PRIu64 " %s", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1812 | cipher_chain->cipher->dm_crypt_str, cipher_chain->dm_key, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1813 | (uint64_t)INFO_TO_DM_BLOCKS(info, skip), dev, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1814 | (uint64_t)offset, | ~~~~~~~~~~~~~~~~~ 1815 | TC_FLAG_SET(info->flags, ALLOW_TRIM) ? "1 allow_discards" : ""); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c: In function ‘dm_info_map’: /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c:1552:9: warning: ‘strncpy’ specified bound 4096 equals destination size [-Wstringop-truncation] 1552 | strncpy(map, map_name, PATH_MAX); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘dm_get_table’, inlined from ‘dm_info_map’ at /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c:1558:18: /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c:1462:17: warning: ‘strncpy’ specified bound 256 equals destination size [-Wstringop-truncation] 1462 | strncpy(tc_table->target, target_type, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1463 | sizeof(tc_table->target)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/tcplay.c:1478:41: warning: ‘strncpy’ specified bound 256 equals destination size [-Wstringop-truncation] 1478 | strncpy(tc_table->cipher, p1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1479 | sizeof(tc_table->cipher)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ [ 75%] Building C object CMakeFiles/tcplay-bin.dir/crc32.c.o In file included from /usr/include/stdlib.h:825, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/crc32.c:40: /usr/include/bits/stdlib-bsearch.h: In function ‘bsearch’: /usr/include/bits/stdlib-bsearch.h:32:13: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 32 | __p = (void *) (((const char *) __base) + (__idx * __size)); | ^ /usr/include/bits/stdlib-bsearch.h:39:16: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 39 | return (void *) __p; | ^ [ 77%] Building C object CMakeFiles/tcplay-bin.dir/safe_mem.c.o In file included from /usr/include/stdlib.h:825, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/safe_mem.c:32: /usr/include/bits/stdlib-bsearch.h: In function ‘bsearch’: /usr/include/bits/stdlib-bsearch.h:32:13: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 32 | __p = (void *) (((const char *) __base) + (__idx * __size)); | ^ /usr/include/bits/stdlib-bsearch.h:39:16: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 39 | return (void *) __p; | ^ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/safe_mem.c: In function ‘_alloc_safe_mem’: /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/safe_mem.c:66:13: warning: ‘mem’ may be used uninitialized [-Wmaybe-uninitialized] 66 | if (mlock(mem, alloc_sz) < 0) { | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/safe_mem.c:31: /usr/include/sys/mman.h:103:12: note: by argument 1 of type ‘const void *’ to ‘mlock’ declared here 103 | extern int mlock (const void *__addr, size_t __len) __THROW; | ^~~~~ [ 80%] Building C object CMakeFiles/tcplay-bin.dir/io.c.o In file included from /usr/include/sys/uio.h:168, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/io.c:38: /usr/include/bits/uio-ext.h:45: warning: "RWF_HIPRI" redefined 45 | #define RWF_HIPRI 0x00000001 /* High priority request. */ | In file included from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/io.c:34: /usr/include/linux/fs.h:286: note: this is the location of the previous definition 286 | #define RWF_HIPRI ((__kernel_rwf_t)0x00000001) | In file included from /usr/include/sys/uio.h:168, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/io.c:38: /usr/include/bits/uio-ext.h:46: warning: "RWF_DSYNC" redefined 46 | #define RWF_DSYNC 0x00000002 /* per-IO O_DSYNC. */ | In file included from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/io.c:34: /usr/include/linux/fs.h:289: note: this is the location of the previous definition 289 | #define RWF_DSYNC ((__kernel_rwf_t)0x00000002) | In file included from /usr/include/sys/uio.h:168, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/io.c:38: /usr/include/bits/uio-ext.h:47: warning: "RWF_SYNC" redefined 47 | #define RWF_SYNC 0x00000004 /* per-IO O_SYNC. */ | In file included from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/io.c:34: /usr/include/linux/fs.h:292: note: this is the location of the previous definition 292 | #define RWF_SYNC ((__kernel_rwf_t)0x00000004) | In file included from /usr/include/sys/uio.h:168, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/io.c:38: /usr/include/bits/uio-ext.h:48: warning: "RWF_NOWAIT" redefined 48 | #define RWF_NOWAIT 0x00000008 /* per-IO nonblocking mode. */ | In file included from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/io.c:34: /usr/include/linux/fs.h:295: note: this is the location of the previous definition 295 | #define RWF_NOWAIT ((__kernel_rwf_t)0x00000008) | In file included from /usr/include/sys/uio.h:168, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/io.c:38: /usr/include/bits/uio-ext.h:49: warning: "RWF_APPEND" redefined 49 | #define RWF_APPEND 0x00000010 /* per-IO O_APPEND. */ | In file included from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/io.c:34: /usr/include/linux/fs.h:298: note: this is the location of the previous definition 298 | #define RWF_APPEND ((__kernel_rwf_t)0x00000010) | In file included from /usr/include/stdlib.h:825, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/io.c:43: /usr/include/bits/stdlib-bsearch.h: In function ‘bsearch’: /usr/include/bits/stdlib-bsearch.h:32:13: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 32 | __p = (void *) (((const char *) __base) + (__idx * __size)); | ^ /usr/include/bits/stdlib-bsearch.h:39:16: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 39 | return (void *) __p; | ^ [ 83%] Building C object CMakeFiles/tcplay-bin.dir/hdr.c.o In file included from /usr/include/stdlib.h:825, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/hdr.c:39: /usr/include/bits/stdlib-bsearch.h: In function ‘bsearch’: /usr/include/bits/stdlib-bsearch.h:32:13: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 32 | __p = (void *) (((const char *) __base) + (__idx * __size)); | ^ /usr/include/bits/stdlib-bsearch.h:39:16: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 39 | return (void *) __p; | ^ [ 86%] Building C object CMakeFiles/tcplay-bin.dir/humanize.c.o In file included from /usr/include/stdlib.h:825, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:31: /usr/include/bits/stdlib-bsearch.h: In function ‘bsearch’: /usr/include/bits/stdlib-bsearch.h:32:13: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 32 | __p = (void *) (((const char *) __base) + (__idx * __size)); | ^ /usr/include/bits/stdlib-bsearch.h:39:16: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 39 | return (void *) __p; | ^ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c: In function ‘_dehumanize_number’: /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:93:28: warning: this statement may fall through [-Wimplicit-fallthrough=] 93 | multiplier *= 1024; | ~~~~~~~~~~~^~~~~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:94:9: note: here 94 | case 'z': | ^~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:95:28: warning: this statement may fall through [-Wimplicit-fallthrough=] 95 | multiplier *= 1024; | ~~~~~~~~~~~^~~~~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:96:9: note: here 96 | case 'e': | ^~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:97:28: warning: this statement may fall through [-Wimplicit-fallthrough=] 97 | multiplier *= 1024; | ~~~~~~~~~~~^~~~~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:98:9: note: here 98 | case 'p': | ^~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:99:28: warning: this statement may fall through [-Wimplicit-fallthrough=] 99 | multiplier *= 1024; | ~~~~~~~~~~~^~~~~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:100:9: note: here 100 | case 't': | ^~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:101:28: warning: this statement may fall through [-Wimplicit-fallthrough=] 101 | multiplier *= 1024; | ~~~~~~~~~~~^~~~~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:102:9: note: here 102 | case 'g': | ^~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:103:28: warning: this statement may fall through [-Wimplicit-fallthrough=] 103 | multiplier *= 1024; | ~~~~~~~~~~~^~~~~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:104:9: note: here 104 | case 'm': | ^~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:105:28: warning: this statement may fall through [-Wimplicit-fallthrough=] 105 | multiplier *= 1024; | ~~~~~~~~~~~^~~~~~~ /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/humanize.c:106:9: note: here 106 | case 'k': | ^~~~ [ 88%] Building C object CMakeFiles/tcplay-bin.dir/crypto.c.o [ 91%] Building C object CMakeFiles/tcplay-bin.dir/generic_xts.c.o In file included from /usr/include/stdlib.h:825, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/generic_xts.c:23: /usr/include/bits/stdlib-bsearch.h: In function ‘bsearch’: /usr/include/bits/stdlib-bsearch.h:32:13: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 32 | __p = (void *) (((const char *) __base) + (__idx * __size)); | ^ /usr/include/bits/stdlib-bsearch.h:39:16: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 39 | return (void *) __p; | ^ [ 94%] Building C object CMakeFiles/tcplay-bin.dir/crypto-gcrypt.c.o In file included from /usr/include/stdlib.h:825, from /usr/include/gcrypt.h:26, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/crypto-gcrypt.c:42: /usr/include/bits/stdlib-bsearch.h: In function ‘bsearch’: /usr/include/bits/stdlib-bsearch.h:32:13: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 32 | __p = (void *) (((const char *) __base) + (__idx * __size)); | ^ /usr/include/bits/stdlib-bsearch.h:39:16: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 39 | return (void *) __p; | ^ [ 97%] Building C object CMakeFiles/tcplay-bin.dir/pbkdf2-gcrypt.c.o In file included from /usr/include/stdlib.h:825, from /usr/include/gcrypt.h:26, from /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0/pbkdf2-gcrypt.c:38: /usr/include/bits/stdlib-bsearch.h: In function ‘bsearch’: /usr/include/bits/stdlib-bsearch.h:32:13: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 32 | __p = (void *) (((const char *) __base) + (__idx * __size)); | ^ /usr/include/bits/stdlib-bsearch.h:39:16: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 39 | return (void *) __p; | ^ [100%] Linking C executable tcplay [100%] Built target tcplay-bin Consolidate compiler generated dependencies of target tcplay-static [ 33%] Built target tcplay-static Consolidate compiler generated dependencies of target tcplay-so [ 66%] Built target tcplay-so Consolidate compiler generated dependencies of target tcplay-bin [100%] Built target tcplay-bin Install the project... -- Install configuration: "Release" -- Installing: /usr/src/slapt-src-x86_64/system/tc-play/package-tc-play/usr/sbin/tcplay -- Installing: /usr/src/slapt-src-x86_64/system/tc-play/package-tc-play/usr/lib64/libtcplay.a -- Installing: /usr/src/slapt-src-x86_64/system/tc-play/package-tc-play/usr/lib64/libtcplay.so.2.0 -- Installing: /usr/src/slapt-src-x86_64/system/tc-play/package-tc-play/usr/lib64/libtcplay.so -- Installing: /usr/src/slapt-src-x86_64/system/tc-play/package-tc-play/usr/lib64/pkgconfig/tcplay.pc -- Installing: /usr/src/slapt-src-x86_64/system/tc-play/package-tc-play/usr/include/tcplay_api.h -- Installing: /usr/src/slapt-src-x86_64/system/tc-play/package-tc-play/usr/share/man/man3/tcplay.3 -- Installing: /usr/src/slapt-src-x86_64/system/tc-play/package-tc-play/usr/share/man/man8/tcplay.8 Slackware package maker, version 3.14159265. Searching for symbolic links: usr/lib64/libtcplay.so libtcplay.so.2.0 Making symbolic link creation script: ( cd usr/lib64 ; rm -rf libtcplay.so ) ( cd usr/lib64 ; ln -sf libtcplay.so.2.0 libtcplay.so ) It is recommended that you make these lines your new installation script. Would you like to make this stuff the install script for this package and remove the symbolic links ([y]es, [n]o)? y Removing symbolic links: removed './usr/lib64/libtcplay.so' Creating your new ./install/doinst.sh... This next step is optional - you can set the directories in your package to some sane permissions. If any of the directories in your package have special permissions, then DO NOT reset them here! Would you like to reset all directory permissions to 755 (drwxr-xr-x) and directory ownerships to root.root ([y]es, [n]o)? n Creating Slackware package: /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0-x86_64-1salix15.0.txz ./ install/ install/doinst.sh install/slack-desc usr/ usr/doc/ usr/doc/tc-play-2.0/ usr/doc/tc-play-2.0/CHANGELOG usr/doc/tc-play-2.0/README.md usr/doc/tc-play-2.0/tc-play.SlackBuild usr/include/ usr/include/tcplay_api.h usr/lib64/ usr/lib64/libtcplay.so.2.0 usr/lib64/pkgconfig/ usr/lib64/pkgconfig/tcplay.pc usr/man/ usr/man/man3/ usr/man/man3/tcplay.3.gz usr/man/man8/ usr/man/man8/tcplay.8.gz usr/sbin/ usr/sbin/tcplay Slackware package /usr/src/slapt-src-x86_64/system/tc-play/tc-play-2.0-x86_64-1salix15.0.txz created. Installing package tc-play-2.0-x86_64-1salix15.0... | tc-play (TrueCrypt implementation) | | This implementation supports mapping (opening) both system | and normal TrueCrypt volumes. opening hidden volumes and | opening an outer volume while protecting a hidden volume. | Create volumes, including hidden volumes, restoring from the backup | header (if present), change passphrase, keyfile and PBKDF2 | PRF function. | | https://github.com/bwalex/tc-play | | |