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 function
main':
5 mlock.c:(.text.startup+0x4b8): undefined reference to sodium_memzero'
6 mlock.c:(.text.startup+0x501): undefined reference to
crypto_pwhash_scryptsalsa208sha256_ll'
7 mlock.c:(.text.startup+0x56d): undefined reference to crypto_scalarmult_base'
8 mlock.c:(.text.startup+0x6c2): undefined reference to
sodium_memzero'
9 ./libmlock.a(minilock.o): In function decode_file':
10 minilock.c:(.text+0x185): undefined reference to
crypto_secretbox_open_easy'
11 minilock.c:(.text+0x21d): undefined reference to sodium_memzero'
12 minilock.c:(.text+0x24f): undefined reference to
sodium_memzero'
13 ./libmlock.a(minilock.o): In function encode_file':
14 minilock.c:(.text+0x4ed): undefined reference to
crypto_secretbox_easy'
15 minilock.c:(.text+0x57e): undefined reference to crypto_secretbox_easy'
16 ./libmlock.a(minilock.o): In function
minilock_encode':
17 minilock.c:(.text+0xa3d): undefined reference to randombytes_buf'
18 minilock.c:(.text+0xa4f): undefined reference to
randombytes_buf'
19 minilock.c:(.text+0xa61): undefined reference to randombytes_buf'
20 minilock.c:(.text+0xaa4): undefined reference to
crypto_scalarmult_base'
21 minilock.c:(.text+0xcbe): undefined reference to sodium_memzero'
22 minilock.c:(.text+0xd98): undefined reference to
sodium_memzero'
23 minilock.c:(.text+0xe79): undefined reference to randombytes_buf'
24 minilock.c:(.text+0xed4): undefined reference to
crypto_box_easy'
25 minilock.c:(.text+0xfdc): undefined reference to crypto_box_easy'
26 ./libmlock.a(minilock.o): In function
minilock_decode':
27 minilock.c:(.text+0x1513): undefined reference to crypto_box_open_easy'
28 minilock.c:(.text+0x1569): undefined reference to
sodium_memzero'
29 minilock.c:(.text+0x15da): undefined reference to sodium_memzero'
30 minilock.c:(.text+0x17c4): undefined reference to
crypto_box_open_easy'
31 minilock.c:(.text+0x1820): undefined reference to sodium_memzero'
32 ./libmlock.a(json.o): In function
json_value_free_ex':
33 json.c:(.text+0x3f0): undefined reference to sodium_memzero'
34 ./libmlock.a(json.o): In function
json_parse_ex':
35 json.c:(.text+0x8e0): undefined reference to pow'
36 json.c:(.text+0x15c4): undefined reference to
pow'
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
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?
Please edit src/makefile to fix the order of libs in the link step:
Note the ${LDFLAGS} variable moved to the end.