ext4-crypt
ext4-crypt copied to clipboard
compile error
/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
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
i fixed it by using -lc -lm
What distribution are you using? Are you cross-compiling for ARM?
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 .
I replaced libscrypt
by libsodium
. Are you still having any issue? I couldn't reproduce this bug.