2017-01-10 7 views
0

私はMQTT Auth Pluginをビルドしようとしています。私はこれを行うには@http://www.yasith.me/2016/04/securing-mqtt-connection-using.htmlの指示に従っています。ここで私は取得していますエラーです - 私のconfig.mkファイルがどのように見えるMQTT Auth Plugin - ビルドの問題

Using mosquitto source dir: /home/vagrant/Repos/mosquitto/mqtt/mosquitto 
OpenSSL install dir:  /usr/bin 

If you changed the backend selection, you might need to 'make clean' first 

CFLAGS: -I/home/vagrant/Repos/mosquitto/mqtt/mosquitto/src/ -I/home/vagrant/Repos/mosquitto/mqtt/mosquitto/lib/ -fPIC -Wall -Werror -DBE_HTTP -I/src -DDEBUG=1 -I/usr/bin/include 
LDFLAGS: -L/home/vagrant/Repos/mosquitto/mqtt/mosquitto/lib/ 
LDADD: -lcurl -L/usr/bin/lib -lcrypto -lmosquitto 

cc -I/home/vagrant/Repos/mosquitto/mqtt/mosquitto/src/ -I/home/vagrant/Repos/mosquitto/mqtt/mosquitto/lib/ -fPIC -Wall -Werror -DBE_HTTP -I/src -DDEBUG=1 -I/usr/bin/include -c -o auth-plug.o auth-plug.c 
cc -I/home/vagrant/Repos/mosquitto/mqtt/mosquitto/src/ -I/home/vagrant/Repos/mosquitto/mqtt/mosquitto/lib/ -fPIC -Wall -Werror -DBE_HTTP -I/src -DDEBUG=1 -I/usr/bin/include -c -o base64.o base64.c 
cc -I/home/vagrant/Repos/mosquitto/mqtt/mosquitto/src/ -I/home/vagrant/Repos/mosquitto/mqtt/mosquitto/lib/ -fPIC -Wall -Werror -DBE_HTTP -I/src -DDEBUG=1 -I/usr/bin/include -c -o pbkdf2-check.o pbkdf2-check.c 
cc -I/home/vagrant/Repos/mosquitto/mqtt/mosquitto/src/ -I/home/vagrant/Repos/mosquitto/mqtt/mosquitto/lib/ -fPIC -Wall -Werror -DBE_HTTP -I/src -DDEBUG=1 -I/usr/bin/include -c -o log.o log.c 
cc -I/home/vagrant/Repos/mosquitto/mqtt/mosquitto/src/ -I/home/vagrant/Repos/mosquitto/mqtt/mosquitto/lib/ -fPIC -Wall -Werror -DBE_HTTP -I/src -DDEBUG=1 -I/usr/bin/include -c -o envs.o envs.c 
cc -I/home/vagrant/Repos/mosquitto/mqtt/mosquitto/src/ -I/home/vagrant/Repos/mosquitto/mqtt/mosquitto/lib/ -fPIC -Wall -Werror -DBE_HTTP -I/src -DDEBUG=1 -I/usr/bin/include -c -o hash.o hash.c 
cc -I/home/vagrant/Repos/mosquitto/mqtt/mosquitto/src/ -I/home/vagrant/Repos/mosquitto/mqtt/mosquitto/lib/ -fPIC -Wall -Werror -DBE_HTTP -I/src -DDEBUG=1 -I/usr/bin/include -c -o be-psk.o be-psk.c 
cc -I/home/vagrant/Repos/mosquitto/mqtt/mosquitto/src/ -I/home/vagrant/Repos/mosquitto/mqtt/mosquitto/lib/ -fPIC -Wall -Werror -DBE_HTTP -I/src -DDEBUG=1 -I/usr/bin/include -c -o backends.o backends.c 
cc -I/home/vagrant/Repos/mosquitto/mqtt/mosquitto/src/ -I/home/vagrant/Repos/mosquitto/mqtt/mosquitto/lib/ -fPIC -Wall -Werror -DBE_HTTP -I/src -DDEBUG=1 -I/usr/bin/include -c -o cache.o cache.c 
cache.c: In function 'sha_hash': 
cache.c:48:3: error: implicit declaration of function 'EVP_MD_CTX_new' [-Werror=implicit-function-declaration] 
cache.c:48:23: error: initialization makes pointer from integer without a cast [-Werror] 
cache.c:53:3: error: implicit declaration of function 'EVP_MD_CTX_free' [-Werror=implicit-function-declaration] 
cc1: all warnings being treated as errors 
make: *** [cache.o] Error 1 

-

# Select your backends from this list 
BACKEND_CDB ?= no 
BACKEND_MYSQL ?= no 
BACKEND_SQLITE ?= no 
BACKEND_REDIS ?= no 
BACKEND_POSTGRES ?= no 
BACKEND_LDAP ?= no 
BACKEND_HTTP ?= yes 
BACKEND_JWT ?= no 
BACKEND_MONGO ?= no 

# Specify the path to the Mosquitto sources here 
MOSQUITTO_SRC =/home/vagrant/Repos/mosquitto/mqtt/mosquitto 

# Specify the path the OpenSSL here 
OPENSSLDIR = /usr/bin 

# Specify optional/additional linker flags here 
LDFLAGS = 

私はLINUX VM(浮浪者)でこれをやっている - それが作るかどうかわかりません任意の違い。私はすべてのapt-getがパッケージを期待通りにインストールするのを見ることができました。

提案がありますか?

+0

@jpmens - あらゆるガイダンスが評価されます。前もって感謝します。 – Satya

答えて

0

これは、使用しているopensslのバージョンに依存します。 EVP_MD_CTX_new()は、openssl 1.1.0でのみ使用できます。

+0

こんにちは@Lightight ..あなたは、UNIX OSの最小要件は何ですか?私はこれを "Linux precision64 3.2.0-23-generic#36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux"で試したところ、libパスの状況が壊れているようです。このボックスでopenssl 1.1.0に強制的にアップグレードした後、 "openssl version"コマンドが "openssl:共有ライブラリをロード中にエラーが発生しました:libssl.so.1.1:共有オブジェクトファイルを開くことができません:そのようなファイルまたはディレクトリはありません" ..どのように進むかわからない。ありがとう。 – Satya