Menu

#2 installation: make fails

1.0
closed
make (1)
2015-04-07
2015-03-26
valsonador
No

Hello saalen

With libsodium-0.6.0 and mlock-0.5 on Ubuntu precise 12.04, MAKE fails.

Also have openssl even though it no longer is a dependency.

Any pointers on how to install?

Thank you,
tony

1 make -C ./src -f ./makefile
2 make[1]: Entering directory /home/newuser/mlock-0.5/src' 3 gcc -lm -lsodium -o mlock mlock.o -L. -lmlock 4 mlock.o: In functionmain':
5 mlock.c:(.text.startup+0x4b8): undefined reference to sodium_memzero' 6 mlock.c:(.text.startup+0x501): undefined reference tocrypto_pwhash_scryptsalsa208sha256_ll'
7 mlock.c:(.text.startup+0x56d): undefined reference to crypto_scalarmult_base' 8 mlock.c:(.text.startup+0x6c2): undefined reference tosodium_memzero'
9 ./libmlock.a(minilock.o): In function decode_file': 10 minilock.c:(.text+0x185): undefined reference tocrypto_secretbox_open_easy'
11 minilock.c:(.text+0x21d): undefined reference to sodium_memzero' 12 minilock.c:(.text+0x24f): undefined reference tosodium_memzero'
13 ./libmlock.a(minilock.o): In function encode_file': 14 minilock.c:(.text+0x4ed): undefined reference tocrypto_secretbox_easy'
15 minilock.c:(.text+0x57e): undefined reference to crypto_secretbox_easy' 16 ./libmlock.a(minilock.o): In functionminilock_encode':
17 minilock.c:(.text+0xa3d): undefined reference to randombytes_buf' 18 minilock.c:(.text+0xa4f): undefined reference torandombytes_buf'
19 minilock.c:(.text+0xa61): undefined reference to randombytes_buf' 20 minilock.c:(.text+0xaa4): undefined reference tocrypto_scalarmult_base'
21 minilock.c:(.text+0xcbe): undefined reference to sodium_memzero' 22 minilock.c:(.text+0xd98): undefined reference tosodium_memzero'
23 minilock.c:(.text+0xe79): undefined reference to randombytes_buf' 24 minilock.c:(.text+0xed4): undefined reference tocrypto_box_easy'
25 minilock.c:(.text+0xfdc): undefined reference to crypto_box_easy' 26 ./libmlock.a(minilock.o): In functionminilock_decode':
27 minilock.c:(.text+0x1513): undefined reference to crypto_box_open_easy' 28 minilock.c:(.text+0x1569): undefined reference tosodium_memzero'
29 minilock.c:(.text+0x15da): undefined reference to sodium_memzero' 30 minilock.c:(.text+0x17c4): undefined reference tocrypto_box_open_easy'
31 minilock.c:(.text+0x1820): undefined reference to sodium_memzero' 32 ./libmlock.a(json.o): In functionjson_value_free_ex':
33 json.c:(.text+0x3f0): undefined reference to sodium_memzero' 34 ./libmlock.a(json.o): In functionjson_parse_ex':
35 json.c:(.text+0x8e0): undefined reference to pow' 36 json.c:(.text+0x15c4): undefined reference topow'
37 collect2: ld returned 1 exit status
38 make[1]: [cli] Error 1
39 make[1]: Leaving directory `/home/newuser/mlock-0.5/src'
40 make:
[all] Error 2

Discussion

  • André Simon

    André Simon - 2015-03-26

    Hi,

    currently I have no Ubuntu box, but the internet told me that libsodium needs to be installed manually as there is no package? Did you run ldconfig after installing the lib?

     
  • André Simon

    André Simon - 2015-04-01

    Please edit src/makefile to fix the order of libs in the link step:

    cli: lib$(EXECUTABLE).a ${CLI_OBJECTS}
        ${CC} -o $(EXECUTABLE) ${CLI_OBJECTS} -L. -l$(EXECUTABLE) ${LDFLAGS}
    

    Note the ${LDFLAGS} variable moved to the end.

     
  • André Simon

    André Simon - 2015-04-07
    • status: open --> closed
     

Log in to post a comment.