Building C CLI on Linux
Hi,
I don't know if the linux version is officially supported yet, but I continue to have this problem with the newest git clone of MasterPassword.
Each time I try to build, I remove the previous MasterPassword directory and build fresh. openssl, libssl and libssl-dev are all installed.
./build -lrt
returns the following errors:
Will build targets: mpw...
Checking dependency: scrypt...
Building target: mpw...
lib/scrypt/scrypt-crypto_aesctr.o: In function `crypto_aesctr_stream':
/home/tim/Source/git/MasterPassword/MasterPassword/C/lib/scrypt/libcperciva/crypto/crypto_aesctr.c:67: undefined reference to `AES_encrypt'
lib/scrypt/scrypt-scryptenc.o: In function `scryptenc_buf':
/home/tim/Source/git/MasterPassword/MasterPassword/C/lib/scrypt/lib/scryptenc/scryptenc.c:338: undefined reference to `AES_set_encrypt_key'
lib/scrypt/scrypt-scryptenc.o: In function `scryptdec_buf':
/home/tim/Source/git/MasterPassword/MasterPassword/C/lib/scrypt/lib/scryptenc/scryptenc.c:401: undefined reference to `AES_set_encrypt_key'
lib/scrypt/scrypt-scryptenc.o: In function `scryptenc_file':
/home/tim/Source/git/MasterPassword/MasterPassword/C/lib/scrypt/lib/scryptenc/scryptenc.c:462: undefined reference to `AES_set_encrypt_key'
lib/scrypt/scrypt-scryptenc.o: In function `scryptdec_file':
/home/tim/Source/git/MasterPassword/MasterPassword/C/lib/scrypt/lib/scryptenc/scryptenc.c:560: undefined reference to `AES_set_encrypt_key'
collect2: error: ld returned 1 exit status
- log.txt 22.3 KB
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Maarten Billemo... on 16 Nov, 2014 02:24 PM
Did scrypt build fine?
Where is your libcrypto.a?
Maarten Billemont closed this discussion on 16 Nov, 2014 02:24 PM.
Maarten Billemont re-opened this discussion on 16 Nov, 2014 02:24 PM
2 Posted by Tim Anderson on 16 Nov, 2014 10:21 PM
Maarten,
A more complete log is attached above. scrypt appears to have built
fine--there don't seem to be any outstanding errors in the log. Is there
a way of confirming a correct build outside of the log?
I'm unable to find libcrypto.a anywhere under the /C directory.
Tim
3 Posted by Tim on 16 Nov, 2014 10:34 PM
Maarten,
libssl-dev has installed libcrypto.a under the following directory:
/usr/lib/x86_64-linux-gnu/libcrypto.a
Support Staff 4 Posted by Maarten Billemo... on 17 Nov, 2014 06:11 AM
add this path to the library search paths with something like -L/usr/lib/x86_64-linux-gnu or build openssl as a 64-bit library. I don't know how to automate this process or how linux' 32-bit emulation thing works.
Maarten Billemont closed this discussion on 17 Nov, 2014 06:11 AM.