Building C CLI on Linux

Tim's Avatar

Tim

16 Nov, 2014 08:12 AM

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
  1. Support Staff 1 Posted by Maarten Billemo... on 16 Nov, 2014 02:24 PM

    Maarten Billemont's Avatar
    1. Did scrypt build fine?

    2. Where is your libcrypto.a?

  2. Maarten Billemont closed this discussion on 16 Nov, 2014 02:24 PM.

  3. Maarten Billemont re-opened this discussion on 16 Nov, 2014 02:24 PM

  4. 2 Posted by Tim Anderson on 16 Nov, 2014 10:21 PM

    Tim Anderson's Avatar

    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

  5. 3 Posted by Tim on 16 Nov, 2014 10:34 PM

    Tim's Avatar

    Maarten,

    libssl-dev has installed libcrypto.a under the following directory:

    /usr/lib/x86_64-linux-gnu/libcrypto.a

  6. Support Staff 4 Posted by Maarten Billemo... on 17 Nov, 2014 06:11 AM

    Maarten Billemont's Avatar

    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.

  7. Maarten Billemont closed this discussion on 17 Nov, 2014 06:11 AM.

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

Recent Discussions

09 Oct, 2023 03:28 PM
09 Oct, 2023 02:56 PM
22 Jun, 2022 11:22 AM
02 Feb, 2022 02:22 PM
25 Jan, 2022 11:25 PM

 

31 Dec, 2021 11:42 AM
22 Dec, 2021 06:41 PM
04 Nov, 2021 01:24 AM
30 Oct, 2021 08:29 PM
21 Oct, 2021 08:44 AM
14 Sep, 2021 08:02 AM