helium / blockchain-etl

Blockchain follower that follows and stores the Helium blockchain
Apache License 2.0
64 stars 37 forks source link

Make Release Error - Makefile:41 #90

Closed pravino closed 4 years ago

pravino commented 4 years ago

Get Following Error When Running make release

===> Compiling eql ===> Compiling goldrush ===> Compiling lager ===> Compiling relcast ===> Compiling throttle ===> Compiling ranch _build/default/lib/ranch/src/ranch_ssl.erl:131: Warning: ssl:ssl_accept/2: deprecated; use ssl:handshake/2 instead

===> Compiling rand_compat ===> Compiling intercept ===> Compiling inet_cidr ===> Compiling inet_ext ===> Compiling nat ===> Compiling erl_base58 ===> Compiling base32 ===> Compiling multiaddr ===> Compiling enacl ===> Compiling /home/ubuntu/blockchain-etl/c_src/aead.c ===> /home/ubuntu/blockchain-etl/c_src/aead.c: In function ‘enacl_crypto_aead_chacha20poly1305_ietf_KEYBYTES’: /home/ubuntu/blockchain-etl/c_src/aead.c:14:31: error: ‘crypto_aead_chacha20poly1305_ietf_KEYBYTES’ undeclared (first use in this function) return enif_make_int64(env, crypto_aead_chacha20poly1305_ietf_KEYBYTES); ^ /home/ubuntu/blockchain-etl/c_src/aead.c:14:31: note: each undeclared identifier is reported only once for each function it appears in /home/ubuntu/blockchain-etl/c_src/aead.c: In function ‘enacl_crypto_aead_chacha20poly1305_ietf_NPUBBYTES’: /home/ubuntu/blockchain-etl/c_src/aead.c:20:31: error: ‘crypto_aead_chacha20poly1305_ietf_NPUBBYTES’ undeclared (first use in this function) return enif_make_int64(env, crypto_aead_chacha20poly1305_ietf_NPUBBYTES); ^ /home/ubuntu/blockchain-etl/c_src/aead.c: In function ‘enacl_crypto_aead_chacha20poly1305_ietf_ABYTES’: /home/ubuntu/blockchain-etl/c_src/aead.c:26:31: error: ‘crypto_aead_chacha20poly1305_ietf_ABYTES’ undeclared (first use in this function) return enif_make_int64(env, crypto_aead_chacha20poly1305_ietf_ABYTES); ^ /home/ubuntu/blockchain-etl/c_src/aead.c: In function ‘enacl_crypto_aead_chacha20poly1305_ietf_MESSAGEBYTES_MAX’: /home/ubuntu/blockchain-etl/c_src/aead.c:33:26: error: ‘crypto_aead_chacha20poly1305_ietf_MESSAGEBYTES_MAX’ undeclared (first use in this function) crypto_aead_chacha20poly1305_ietf_MESSAGEBYTES_MAX); ^ /home/ubuntu/blockchain-etl/c_src/aead.c: In function ‘enacl_crypto_aead_chacha20poly1305_ietf_encrypt’: /home/ubuntu/blockchain-etl/c_src/aead.c:52:19: error: ‘crypto_aead_chacha20poly1305_ietf_KEYBYTES’ undeclared (first use in this function) if (key.size != crypto_aead_chacha20poly1305_ietf_KEYBYTES) ^ /home/ubuntu/blockchain-etl/c_src/aead.c:54:21: error: ‘crypto_aead_chacha20poly1305_ietf_NPUBBYTES’ undeclared (first use in this function) if (nonce.size != crypto_aead_chacha20poly1305_ietf_NPUBBYTES) ^ /home/ubuntu/blockchain-etl/c_src/aead.c:58:30: error: ‘crypto_aead_chacha20poly1305_ietf_ABYTES’ undeclared (first use in this function) crypto_aead_chacha20poly1305_ietf_ABYTES, ^ /home/ubuntu/blockchain-etl/c_src/aead.c: In function ‘enacl_crypto_aead_chacha20poly1305_ietf_decrypt’: /home/ubuntu/blockchain-etl/c_src/aead.c:95:25: error: ‘crypto_aead_chacha20poly1305_ietf_ABYTES’ undeclared (first use in this function) if (ciphertext.size < crypto_aead_chacha20poly1305_ietf_ABYTES) ^ /home/ubuntu/blockchain-etl/c_src/aead.c:97:19: error: ‘crypto_aead_chacha20poly1305_ietf_KEYBYTES’ undeclared (first use in this function) if (key.size != crypto_aead_chacha20poly1305_ietf_KEYBYTES) ^ /home/ubuntu/blockchain-etl/c_src/aead.c:99:21: error: ‘crypto_aead_chacha20poly1305_ietf_NPUBBYTES’ undeclared (first use in this function) if (nonce.size != crypto_aead_chacha20poly1305_ietf_NPUBBYTES) ^ /home/ubuntu/blockchain-etl/c_src/aead.c: In function ‘enacl_crypto_aead_xchacha20poly1305_ietf_KEYBYTES’: /home/ubuntu/blockchain-etl/c_src/aead.c:131:31: error: ‘crypto_aead_xchacha20poly1305_ietf_KEYBYTES’ undeclared (first use in this function) return enif_make_int64(env, crypto_aead_xchacha20poly1305_ietf_KEYBYTES); ^ /home/ubuntu/blockchain-etl/c_src/aead.c: In function ‘enacl_crypto_aead_xchacha20poly1305_ietf_NPUBBYTES’: /home/ubuntu/blockchain-etl/c_src/aead.c:137:31: error: ‘crypto_aead_xchacha20poly1305_ietf_NPUBBYTES’ undeclared (first use in this function) return enif_make_int64(env, crypto_aead_xchacha20poly1305_ietf_NPUBBYTES); ^ /home/ubuntu/blockchain-etl/c_src/aead.c: In function ‘enacl_crypto_aead_xchacha20poly1305_ietf_ABYTES’: /home/ubuntu/blockchain-etl/c_src/aead.c:143:31: error: ‘crypto_aead_xchacha20poly1305_ietf_ABYTES’ undeclared (first use in this function) return enif_make_int64(env, crypto_aead_xchacha20poly1305_ietf_ABYTES); ^ /home/ubuntu/blockchain-etl/c_src/aead.c: In function ‘enacl_crypto_aead_xchacha20poly1305_ietf_MESSAGEBYTES_MAX’: /home/ubuntu/blockchain-etl/c_src/aead.c:150:26: error: ‘crypto_aead_xchacha20poly1305_ietf_MESSAGEBYTES_MAX’ undeclared (first use in this function) crypto_aead_xchacha20poly1305_ietf_MESSAGEBYTES_MAX); ^ /home/ubuntu/blockchain-etl/c_src/aead.c: In function ‘enacl_crypto_aead_xchacha20poly1305_ietf_encrypt’: /home/ubuntu/blockchain-etl/c_src/aead.c:170:19: error: ‘crypto_aead_xchacha20poly1305_ietf_KEYBYTES’ undeclared (first use in this function) if (key.size != crypto_aead_xchacha20poly1305_ietf_KEYBYTES) ^ /home/ubuntu/blockchain-etl/c_src/aead.c:172:21: error: ‘crypto_aead_xchacha20poly1305_ietf_NPUBBYTES’ undeclared (first use in this function) if (nonce.size != crypto_aead_xchacha20poly1305_ietf_NPUBBYTES) ^ /home/ubuntu/blockchain-etl/c_src/aead.c:176:30: error: ‘crypto_aead_xchacha20poly1305_ietf_ABYTES’ undeclared (first use in this function) crypto_aead_xchacha20poly1305_ietf_ABYTES, ^ /home/ubuntu/blockchain-etl/c_src/aead.c:181:3: warning: implicit declaration of function ‘crypto_aead_xchacha20poly1305_ietf_encrypt’ [-Wimplicit-function-declaration] crypto_aead_xchacha20poly1305_ietf_encrypt( ^ /home/ubuntu/blockchain-etl/c_src/aead.c: In function ‘enacl_crypto_aead_xchacha20poly1305_ietf_decrypt’: /home/ubuntu/blockchain-etl/c_src/aead.c:213:25: error: ‘crypto_aead_xchacha20poly1305_ietf_ABYTES’ undeclared (first use in this function) if (ciphertext.size < crypto_aead_xchacha20poly1305_ietf_ABYTES) ^ /home/ubuntu/blockchain-etl/c_src/aead.c:215:19: error: ‘crypto_aead_xchacha20poly1305_ietf_KEYBYTES’ undeclared (first use in this function) if (key.size != crypto_aead_xchacha20poly1305_ietf_KEYBYTES) ^ /home/ubuntu/blockchain-etl/c_src/aead.c:217:21: error: ‘crypto_aead_xchacha20poly1305_ietf_NPUBBYTES’ undeclared (first use in this function) if (nonce.size != crypto_aead_xchacha20poly1305_ietf_NPUBBYTES) ^ /home/ubuntu/blockchain-etl/c_src/aead.c:226:7: warning: implicit declaration of function ‘crypto_aead_xchacha20poly1305_ietf_decrypt’ [-Wimplicit-function-declaration] if (crypto_aead_xchacha20poly1305_ietf_decrypt( ^ /home/ubuntu/blockchain-etl/c_src/aead.c: In function ‘enacl_crypto_aead_chacha20poly1305_ietf_KEYBYTES’: /home/ubuntu/blockchain-etl/c_src/aead.c:15:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /home/ubuntu/blockchain-etl/c_src/aead.c: In function ‘enacl_crypto_aead_chacha20poly1305_ietf_NPUBBYTES’: /home/ubuntu/blockchain-etl/c_src/aead.c:21:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /home/ubuntu/blockchain-etl/c_src/aead.c: In function ‘enacl_crypto_aead_chacha20poly1305_ietf_ABYTES’: /home/ubuntu/blockchain-etl/c_src/aead.c:27:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /home/ubuntu/blockchain-etl/c_src/aead.c: In function ‘enacl_crypto_aead_chacha20poly1305_ietf_MESSAGEBYTES_MAX’: /home/ubuntu/blockchain-etl/c_src/aead.c:34:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /home/ubuntu/blockchain-etl/c_src/aead.c: In function ‘enacl_crypto_aead_xchacha20poly1305_ietf_KEYBYTES’: /home/ubuntu/blockchain-etl/c_src/aead.c:132:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /home/ubuntu/blockchain-etl/c_src/aead.c: In function ‘enacl_crypto_aead_xchacha20poly1305_ietf_NPUBBYTES’: /home/ubuntu/blockchain-etl/c_src/aead.c:138:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /home/ubuntu/blockchain-etl/c_src/aead.c: In function ‘enacl_crypto_aead_xchacha20poly1305_ietf_ABYTES’: /home/ubuntu/blockchain-etl/c_src/aead.c:144:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /home/ubuntu/blockchain-etl/c_src/aead.c: In function ‘enacl_crypto_aead_xchacha20poly1305_ietf_MESSAGEBYTES_MAX’: /home/ubuntu/blockchain-etl/c_src/aead.c:151:1: warning: control reaches end of non-void function [-Wreturn-type] } ^

Makefile:41: recipe for target 'release' failed make: *** [release] Error 1

madninja commented 4 years ago

It looks like you didn't install libsodium-dev per the instructions at: https://github.com/helium/blockchain-etl#installing-ubuntu-required-packages

pravino commented 4 years ago

i have already installed the packages before compiling.

sudo apt-get install libsodium-de

Reading package lists... Done

Building dependency tree

Reading state information... Done

libsodium-dev is already the newest version (1.0.8-5).

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

On Fri, Aug 28, 2020 at 8:02 PM Marc Nijdam notifications@github.com wrote:

It looks like you didn't install libsodium-dev per the instructions at: https://github.com/helium/blockchain-etl#installing-ubuntu-required-packages

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/helium/blockchain-etl/issues/90#issuecomment-682624627, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFSV4DB5YUUQIIRLW7VEMLDSC65ZXANCNFSM4QJE3COQ .

madninja commented 4 years ago

@pravino What version of ubuntu are you on? You should have at least libsodium-dev 1.0.16 or higher installed