bwalex / tc-play

Free and simple TrueCrypt/VeraCrypt Implementation based on dm-crypt
BSD 2-Clause "Simplified" License
551 stars 56 forks source link

Cannot compile #49

Closed tobiasBora closed 10 years ago

tobiasBora commented 10 years ago

Hello,

I tried to install the commit https://github.com/bwalex/tc-play/commit/b681a71038ad5a3583991f5111c3b4abdc258ef0 and I can't compile on a 64bits Kubuntu computer with the lines mkdir objdir cd objdir cmake .. make

I've the error :

Scanning dependencies of target tcplay-bin [ 3%] Building C object CMakeFiles/tcplay-bin.dir/main.c.o [ 6%] Building C object CMakeFiles/tcplay-bin.dir/tcplay.c.o
/home/tob/Logiciels/Securite/tc-play/tcplay.c: In function ‘modify_volume’: /home/tob/Logiciels/Securite/tc-play/tcplay.c:1165:14: attention : variable ‘dev’ set but not used [-Wunused-but-set-variable] /home/tob/Logiciels/Securite/tc-play/tcplay.c: In function ‘opts_free’: /home/tob/Logiciels/Securite/tc-play/tcplay.c:2107:3: attention : passing argument 1 of ‘_free_safemem’ discards ‘const’ qualifier from pointer target type [enabled by default] In file included from /home/tob/Logiciels/Securite/tc-play/tcplay.c:58:0: /home/tob/Logiciels/Securite/tc-play/tcplay.h:279:6: note: expected ‘void ’ but argument is of type ‘const char ’ /home/tob/Logiciels/Securite/tc-play/tcplay.c:2111:3: attention : passing argument 1 of ‘_free_safe_mem’ discards ‘const’ qualifier from pointer target type [enabled by default] In file included from /home/tob/Logiciels/Securite/tc-play/tcplay.c:58:0: /home/tob/Logiciels/Securite/tc-play/tcplay.h:279:6: note: expected ‘void ’ but argument is of type ‘const char ’ /home/tob/Logiciels/Securite/tc-play/tcplay.c:2115:3: attention : passing argument 1 of ‘_free_safe_mem’ discards ‘const’ qualifier from pointer target type [enabled by default] In file included from /home/tob/Logiciels/Securite/tc-play/tcplay.c:58:0: /home/tob/Logiciels/Securite/tc-play/tcplay.h:279:6: note: expected ‘void ’ but argument is of type ‘const char ’ /home/tob/Logiciels/Securite/tc-play/tcplay.c:2119:3: attention : passing argument 1 of ‘_free_safe_mem’ discards ‘const’ qualifier from pointer target type [enabled by default] In file included from /home/tob/Logiciels/Securite/tc-play/tcplay.c:58:0: /home/tob/Logiciels/Securite/tc-play/tcplay.h:279:6: note: expected ‘void ’ but argument is of type ‘const char ’ /home/tob/Logiciels/Securite/tc-play/tcplay.c:2121:3: attention : passing argument 1 of ‘_free_safe_mem’ discards ‘const’ qualifier from pointer target type [enabled by default] In file included from /home/tob/Logiciels/Securite/tc-play/tcplay.c:58:0: /home/tob/Logiciels/Securite/tc-play/tcplay.h:279:6: note: expected ‘void ’ but argument is of type ‘const char ’ /home/tob/Logiciels/Securite/tc-play/tcplay.c:2123:3: attention : passing argument 1 of ‘_free_safe_mem’ discards ‘const’ qualifier from pointer target type [enabled by default] In file included from /home/tob/Logiciels/Securite/tc-play/tcplay.c:58:0: /home/tob/Logiciels/Securite/tc-play/tcplay.h:279:6: note: expected ‘void ’ but argument is of type ‘const char ’ /home/tob/Logiciels/Securite/tc-play/tcplay.c:2125:3: attention : passing argument 1 of ‘_free_safe_mem’ discards ‘const’ qualifier from pointer target type [enabled by default] In file included from /home/tob/Logiciels/Securite/tc-play/tcplay.c:58:0: /home/tob/Logiciels/Securite/tc-play/tcplay.h:279:6: note: expected ‘void ’ but argument is of type ‘const char ’ /home/tob/Logiciels/Securite/tc-play/tcplay.c:2127:3: attention : passing argument 1 of ‘_free_safe_mem’ discards ‘const’ qualifier from pointer target type [enabled by default] In file included from /home/tob/Logiciels/Securite/tc-play/tcplay.c:58:0: /home/tob/Logiciels/Securite/tc-play/tcplay.h:279:6: note: expected ‘void ’ but argument is of type ‘const char ’ /home/tob/Logiciels/Securite/tc-play/tcplay.c:2129:3: attention : passing argument 1 of ‘_free_safe_mem’ discards ‘const’ qualifier from pointer target type [enabled by default] In file included from /home/tob/Logiciels/Securite/tc-play/tcplay.c:58:0: /home/tob/Logiciels/Securite/tc-play/tcplay.h:279:6: note: expected ‘void ’ but argument is of type ‘const char ’ /home/tob/Logiciels/Securite/tc-play/tcplay.c:2131:3: attention : passing argument 1 of ‘_free_safe_mem’ discards ‘const’ qualifier from pointer target type [enabled by default] In file included from /home/tob/Logiciels/Securite/tc-play/tcplay.c:58:0: /home/tob/Logiciels/Securite/tc-play/tcplay.h:279:6: note: expected ‘void ’ but argument is of type ‘const char ’ /home/tob/Logiciels/Securite/tc-play/tcplay.c:2133:3: attention : passing argument 1 of ‘_free_safe_mem’ discards ‘const’ qualifier from pointer target type [enabled by default] In file included from /home/tob/Logiciels/Securite/tc-play/tcplay.c:58:0: /home/tob/Logiciels/Securite/tc-play/tcplay.h:279:6: note: expected ‘void ’ but argument is of type ‘const char ’ /home/tob/Logiciels/Securite/tc-play/tcplay.c:2135:3: attention : passing argument 1 of ‘_free_safe_mem’ discards ‘const’ qualifier from pointer target type [enabled by default] In file included from /home/tob/Logiciels/Securite/tc-play/tcplay.c:58:0: /home/tob/Logiciels/Securite/tc-play/tcplay.h:279:6: note: expected ‘void ’ but argument is of type ‘const char ’ /home/tob/Logiciels/Securite/tc-play/tcplay.c: In function ‘modify_volume’: /home/tob/Logiciels/Securite/tc-play/tcplay.c:1284:7: attention : ‘offset_backup’ may be used uninitialized in this function [-Wmaybe-uninitialized] [ 9%] Building C object CMakeFiles/tcplay-bin.dir/crc32.c.o [ 12%] Building C object CMakeFiles/tcplay-bin.dir/safe_mem.c.o
[ 15%] Building C object CMakeFiles/tcplay-bin.dir/io.c.o
[ 18%] Building C object CMakeFiles/tcplay-bin.dir/hdr.c.o
[ 21%] Building C object CMakeFiles/tcplay-bin.dir/humanize.c.o
[ 24%] Building C object CMakeFiles/tcplay-bin.dir/crypto.c.o
[ 27%] Building C object CMakeFiles/tcplay-bin.dir/generic_xts.c.o
[ 30%] Building C object CMakeFiles/tcplay-bin.dir/crypto-gcrypt.c.o
[ 33%] Building C object CMakeFiles/tcplay-bin.dir/pbkdf2-gcrypt.c.o
Linking C executable tcplay [ 33%] Built target tcplay-bin Scanning dependencies of target tcplay-so [ 36%] Building C object CMakeFiles/tcplay-so.dir/tcplay_api.c.o /home/tob/Logiciels/Securite/tc-play/tcplay_api.c: In function ‘tc_api_create_volume’: /home/tob/Logiciels/Securite/tc-play/tcplay_api.c:143:6: attention : passing argument 1 of ‘create_volume’ from incompatible pointer type [enabled by default] In file included from /home/tob/Logiciels/Securite/tc-play/tcplay_api.c:36:0: /home/tob/Logiciels/Securite/tc-play/tcplay.h:295:5: note: expected ‘struct tcplay_opts
’ but argument is of type ‘const char ’ /home/tob/Logiciels/Securite/tc-play/tcplay_api.c:143:6: erreur: too many arguments to function ‘create_volume’ In file included from /home/tob/Logiciels/Securite/tc-play/tcplay_api.c:36:0: /home/tob/Logiciels/Securite/tc-play/tcplay.h:295:5: note: declared here /home/tob/Logiciels/Securite/tc-play/tcplay_api.c: In function ‘tc_api_map_volume’: /home/tob/Logiciels/Securite/tc-play/tcplay_api.c:190:6: attention : passing argument 1 of ‘map_volume’ from incompatible pointer type [enabled by default] In file included from /home/tob/Logiciels/Securite/tc-play/tcplay_api.c:36:0: /home/tob/Logiciels/Securite/tc-play/tcplay.h:300:5: note: expected ‘struct tcplay_opts ’ but argument is of type ‘const char ’ /home/tob/Logiciels/Securite/tc-play/tcplay_api.c:190:6: erreur: too many arguments to function ‘map_volume’ In file included from /home/tob/Logiciels/Securite/tc-play/tcplay_api.c:36:0: /home/tob/Logiciels/Securite/tc-play/tcplay.h:300:5: note: declared here /home/tob/Logiciels/Securite/tc-play/tcplay_api.c: In function ‘tc_api_info_volume’: /home/tob/Logiciels/Securite/tc-play/tcplay_api.c:235:6: attention : passing argument 1 of ‘info_map_common’ from incompatible pointer type [enabled by default] In file included from /home/tob/Logiciels/Securite/tc-play/tcplay_api.c:36:0: /home/tob/Logiciels/Securite/tc-play/tcplay.h:296:21: note: expected ‘struct tcplay_opts ’ but argument is of type ‘const char ’ /home/tob/Logiciels/Securite/tc-play/tcplay_api.c:235:6: attention : passing argument 2 of ‘info_map_common’ makes pointer from integer without a cast [enabled by default] In file included from /home/tob/Logiciels/Securite/tc-play/tcplay_api.c:36:0: /home/tob/Logiciels/Securite/tc-play/tcplay.h:296:21: note: expected ‘char ’ but argument is of type ‘int’ /home/tob/Logiciels/Securite/tc-play/tcplay_api.c:235:6: erreur: too many arguments to function ‘info_map_common’ In file included from /home/tob/Logiciels/Securite/tc-play/tcplay_api.c:36:0: /home/tob/Logiciels/Securite/tc-play/tcplay.h:296:21: note: declared here /home/tob/Logiciels/Securite/tc-play/tcplay_api.c: In function ‘tc_api_modify_volume’: /home/tob/Logiciels/Securite/tc-play/tcplay_api.c:333:6: attention : passing argument 1 of ‘modify_volume’ from incompatible pointer type [enabled by default] In file included from /home/tob/Logiciels/Securite/tc-play/tcplay_api.c:36:0: /home/tob/Logiciels/Securite/tc-play/tcplay.h:301:5: note: expected ‘struct tcplay_opts ’ but argument is of type ‘const char ’ /home/tob/Logiciels/Securite/tc-play/tcplay_api.c:333:6: erreur: too many arguments to function ‘modify_volume’ In file included from /home/tob/Logiciels/Securite/tc-play/tcplayapi.c:36:0: /home/tob/Logiciels/Securite/tc-play/tcplay.h:301:5: note: declared here make[2]: ** [CMakeFiles/tcplay-so.dir/tcplay_api.c.o] Erreur 1 make[1]: *\ [CMakeFiles/tcplay-so.dir/all] Erreur 2

make: *\ [all] Erreur 2

What can I do ?

Thank you.

bwalex commented 10 years ago

I know. the master branch is work-in-progress currently, until I can merge the new API changes. For now, I suggest you either give the new API version a try (use the new_api branch) or use a tag.

tobiasBora commented 10 years ago

Ok, thank you, I'll do it !

bwalex commented 10 years ago

This should all be fixed now.