ext4-crypt icon indicating copy to clipboard operation
ext4-crypt copied to clipboard

compile error

Open mickae1 opened this issue 8 years ago • 5 comments

/usr/lib/gcc/arm-linux-gnueabihf/4.9/../../../libscrypt.so: undefined reference to `log' collect2: error: ld returned 1 exit status CMakeFiles/ext4-crypt.dir/build.make:146: recipe for target 'ext4-crypt' failed make[2]: *** [ext4-crypt] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/ext4-crypt.dir/all' failed make[1]: *** [CMakeFiles/ext4-crypt.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2

mickae1 avatar Sep 15 '16 12:09 mickae1

the problem is from this command : /usr/bin/cc -Wall -Wextra -std=gnu11 -s CMakeFiles/ext4-crypt.dir/src/keys.c.o CMakeFiles/ext4-crypt.dir/src/container.c.o CMakeFiles/ext4-crypt.dir/src/ext4-crypt.c.o -o ext4-crypt -rdynamic -lkeyutils -lscrypt

mickae1 avatar Sep 15 '16 12:09 mickae1

i fixed it by using -lc -lm

mickae1 avatar Sep 15 '16 12:09 mickae1

What distribution are you using? Are you cross-compiling for ARM?

gdelugre avatar Sep 15 '16 17:09 gdelugre

No cross compile, on the beaglebone black. Debian Jessie

Le jeu. 15 sept. 2016 19:02, gdelugre [email protected] a écrit :

What distribution are you using? Are you cross-compiling for ARM?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gdelugre/ext4-crypt/issues/6#issuecomment-247388058, or mute the thread https://github.com/notifications/unsubscribe-auth/AEB2CICpFbDMG3b13j0phwyVNxnlnQeWks5qqXoagaJpZM4J9y-J .

mickae1 avatar Sep 15 '16 17:09 mickae1

I replaced libscrypt by libsodium. Are you still having any issue? I couldn't reproduce this bug.

gdelugre avatar Sep 29 '16 12:09 gdelugre