0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

CentOS7へOpenSSL1.1.1とMosquitto1.6をインストール

Last updated at Posted at 2019-04-24

#はじめに
MosquittoをCentOS7へ入れたところ、TLS通信が全くできない不具合があるらしい。

Reported Problems and Solutions
Wrong/Old openssl version reported on Centos 7. Update openssl fixed it.
http://www.steves-internet-guide.com - Mosquitto SSL Configuration -MQTT TLS Security

CnetOS7へOpenSSLのLTS版である1.1.1をインストールする。
OpenSSL 1.1.1 Is Released

#環境
CentOS7 3.10.0-957.10.1.el7.x86_64

#準備

yum -y groupinstall base
yum -y groupinstall development
yum -y update
yum -y install zlib-devel
yum -y install perl-core

#OpenSSL1.1.1インストール

cd /usr/local/
wget https://www.openssl.org/source/openssl-1.1.1.tar.gz
tar xvzf openssl-1.1.1.tar.gz
cd openssl-1.1.1/
./config --prefix=/usr/local/openssl-1.1.1 shared zlib
make depend
make
make test
make install

#libwebsocketsのインストール

基本的には下記の通り進めていく。
Build Mosquitto (with websockets) on Linux

最新版をソースからインストールする。
2019/4/24時点で3.1が落ちてくる。

git clone https://libwebsockets.org/repo/libwebsockets
cd libwebsockets

# build ディレクトリ作成
mkdir build
 cd build/
 
# cmakeコマンド
cmake ../ -DOPENSSL_ROOT_DIR=/usr/local/openssl-1.1.1 -DOPENSSL_LIBRARIES=/usr/local/openssl-1.1.1/lib -DOPENSSL_INCLUDE_DIR=/usr/local/openssl-1.1.1/include/openssl -DLIB_SUFFIX=64
  
# コンパイル
make
  
# インストール
make install

という手順でやる方針だったが、cmakeが通らない。

cmake ../ -DOPENSSL_ROOT_DIR=/usr/local/openssl-1.1.1 -DOPENSSL_LIBRARIES=/usr/local/openssl-1.1.1/lib -DOPENSSL_INCLUDE_DIR=/usr/local/openssl-1.1.1/include/openssl  -DLIB_SUFFIX=64
-- CMAKE_TOOLCHAIN_FILE=''
Git commit hash: v3.1.0-141-gf884fd4
Compiling with SSL support
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
  Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
  system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES) (found
  version "1.1.1")
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake/Modules/FindOpenSSL.cmake:303 (find_package_handle_standard_args)
  CMakeLists.txt:1610 (find_package)


-- Configuring incomplete, errors occurred!
See also "/root/libwebsockets/build/CMakeFiles/CMakeOutput.log".
See also "/root/libwebsockets/build/CMakeFiles/CMakeError.log".

CMakeError.logの中身。ld -lcapをやろうとして(capability.hをインクルードしようとして)エラー。このファイルは当然実在している。

cat /root/libwebsockets/build/CMakeFiles/CMakeError.log
Determining if the function _snprintf exists failed with the following output:
Change Dir: /root/libwebsockets/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec3383972315/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec3383972315.dir/build.make CMakeFiles/cmTryCompileExec3383972315.dir/build
gmake[1]: ディレクトリ `/root/libwebsockets/build/CMakeFiles/CMakeTmp' に入ります
/usr/bin/cmake -E cmake_progress_report /root/libwebsockets/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec3383972315.dir/CheckFunctionExists.c.o
/usr/bin/cc  -DKEYWORD=__inline -DCHECK_FUNCTION_EXISTS=_snprintf   -o CMakeFiles/cmTryCompileExec3383972315.dir/CheckFunctionExists.c.o   -c /usr/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec3383972315
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3383972315.dir/link.txt --verbose=1
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=_snprintf    CMakeFiles/cmTryCompileExec3383972315.dir/CheckFunctionExists.c.o  -o cmTryCompileExec3383972315 -rdynamic 
CMakeFiles/cmTryCompileExec3383972315.dir/CheckFunctionExists.c.o: 関数 `main' 内:
CheckFunctionExists.c:(.text+0x15): `_snprintf' に対する定義されていない参照です
collect2: エラー: ld はステータス 1 で終了しました
gmake[1]: ディレクトリ `/root/libwebsockets/build/CMakeFiles/CMakeTmp' から出ます
gmake[1]: *** [cmTryCompileExec3383972315] エラー 1
gmake: *** [cmTryCompileExec3383972315/fast] エラー 2


Determining if the function _vsnprintf exists failed with the following output:
Change Dir: /root/libwebsockets/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec1417781025/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1417781025.dir/build.make CMakeFiles/cmTryCompileExec1417781025.dir/build
gmake[1]: ディレクトリ `/root/libwebsockets/build/CMakeFiles/CMakeTmp' に入ります
/usr/bin/cmake -E cmake_progress_report /root/libwebsockets/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec1417781025.dir/CheckFunctionExists.c.o
/usr/bin/cc  -DKEYWORD=__inline -DCHECK_FUNCTION_EXISTS=_vsnprintf   -o CMakeFiles/cmTryCompileExec1417781025.dir/CheckFunctionExists.c.o   -c /usr/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec1417781025
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1417781025.dir/link.txt --verbose=1
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=_vsnprintf    CMakeFiles/cmTryCompileExec1417781025.dir/CheckFunctionExists.c.o  -o cmTryCompileExec1417781025 -rdynamic 
CMakeFiles/cmTryCompileExec1417781025.dir/CheckFunctionExists.c.o: 関数 `main' 内:
CheckFunctionExists.c:(.text+0x15): `_vsnprintf' に対する定義されていない参照です
collect2: エラー: ld はステータス 1 で終了しました
gmake[1]: ディレクトリ `/root/libwebsockets/build/CMakeFiles/CMakeTmp' から出ます
gmake[1]: *** [cmTryCompileExec1417781025] エラー 1
gmake: *** [cmTryCompileExec1417781025/fast] エラー 2


Determining if the function _atoi64 exists failed with the following output:
Change Dir: /root/libwebsockets/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec624920818/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec624920818.dir/build.make CMakeFiles/cmTryCompileExec624920818.dir/build
gmake[1]: ディレクトリ `/root/libwebsockets/build/CMakeFiles/CMakeTmp' に入ります
/usr/bin/cmake -E cmake_progress_report /root/libwebsockets/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec624920818.dir/CheckFunctionExists.c.o
/usr/bin/cc  -DKEYWORD=__inline -DCHECK_FUNCTION_EXISTS=_atoi64   -o CMakeFiles/cmTryCompileExec624920818.dir/CheckFunctionExists.c.o   -c /usr/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec624920818
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec624920818.dir/link.txt --verbose=1
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=_atoi64    CMakeFiles/cmTryCompileExec624920818.dir/CheckFunctionExists.c.o  -o cmTryCompileExec624920818 -rdynamic 
CMakeFiles/cmTryCompileExec624920818.dir/CheckFunctionExists.c.o: 関数 `main' 内:
CheckFunctionExists.c:(.text+0x15): `_atoi64' に対する定義されていない参照です
collect2: エラー: ld はステータス 1 で終了しました
gmake[1]: ディレクトリ `/root/libwebsockets/build/CMakeFiles/CMakeTmp' から出ます
gmake[1]: *** [cmTryCompileExec624920818] エラー 1
gmake: *** [cmTryCompileExec624920818/fast] エラー 2


Determining if the function _stat32i64 exists failed with the following output:
Change Dir: /root/libwebsockets/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec57149001/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec57149001.dir/build.make CMakeFiles/cmTryCompileExec57149001.dir/build
gmake[1]: ディレクトリ `/root/libwebsockets/build/CMakeFiles/CMakeTmp' に入ります
/usr/bin/cmake -E cmake_progress_report /root/libwebsockets/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec57149001.dir/CheckFunctionExists.c.o
/usr/bin/cc  -DKEYWORD=__inline -DCHECK_FUNCTION_EXISTS=_stat32i64   -o CMakeFiles/cmTryCompileExec57149001.dir/CheckFunctionExists.c.o   -c /usr/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec57149001
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec57149001.dir/link.txt --verbose=1
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=_stat32i64    CMakeFiles/cmTryCompileExec57149001.dir/CheckFunctionExists.c.o  -o cmTryCompileExec57149001 -rdynamic 
CMakeFiles/cmTryCompileExec57149001.dir/CheckFunctionExists.c.o: 関数 `main' 内:
CheckFunctionExists.c:(.text+0x15): `_stat32i64' に対する定義されていない参照です
collect2: エラー: ld はステータス 1 で終了しました
gmake[1]: ディレクトリ `/root/libwebsockets/build/CMakeFiles/CMakeTmp' から出ます
gmake[1]: *** [cmTryCompileExec57149001] エラー 1
gmake: *** [cmTryCompileExec57149001/fast] エラー 2


Determining if the include file in6addr.h exists failed with the following output:
Change Dir: /root/libwebsockets/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec3892060880/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec3892060880.dir/build.make CMakeFiles/cmTryCompileExec3892060880.dir/build
gmake[1]: ディレクトリ `/root/libwebsockets/build/CMakeFiles/CMakeTmp' に入ります
/usr/bin/cmake -E cmake_progress_report /root/libwebsockets/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec3892060880.dir/CheckIncludeFile.c.o
/usr/bin/cc  -DKEYWORD=__inline  -o CMakeFiles/cmTryCompileExec3892060880.dir/CheckIncludeFile.c.o   -c /root/libwebsockets/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/root/libwebsockets/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:21: 致命的エラー: in6addr.h: そのようなファイルやディレクトリはありません
 #include <in6addr.h>
                     ^
コンパイルを停止しました。
gmake[1]: ディレクトリ `/root/libwebsockets/build/CMakeFiles/CMakeTmp' から出ます
gmake[1]: *** [CMakeFiles/cmTryCompileExec3892060880.dir/CheckIncludeFile.c.o] エラー 1
gmake: *** [cmTryCompileExec3892060880/fast] エラー 2


Determining if the include file sys/sockio.h exists failed with the following output:
Change Dir: /root/libwebsockets/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec2899367483/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec2899367483.dir/build.make CMakeFiles/cmTryCompileExec2899367483.dir/build
gmake[1]: ディレクトリ `/root/libwebsockets/build/CMakeFiles/CMakeTmp' に入ります
/usr/bin/cmake -E cmake_progress_report /root/libwebsockets/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec2899367483.dir/CheckIncludeFile.c.o
/usr/bin/cc  -DKEYWORD=__inline  -o CMakeFiles/cmTryCompileExec2899367483.dir/CheckIncludeFile.c.o   -c /root/libwebsockets/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/root/libwebsockets/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:24: 致命的エラー: sys/sockio.h: そのようなファイルやディレクトリはありません
 #include <sys/sockio.h>
                        ^
コンパイルを停止しました。
gmake[1]: ディレクトリ `/root/libwebsockets/build/CMakeFiles/CMakeTmp' から出ます
gmake[1]: *** [CMakeFiles/cmTryCompileExec2899367483.dir/CheckIncludeFile.c.o] エラー 1
gmake: *** [cmTryCompileExec2899367483/fast] エラー 2


Determining if the include file vfork.h exists failed with the following output:
Change Dir: /root/libwebsockets/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec2984407395/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec2984407395.dir/build.make CMakeFiles/cmTryCompileExec2984407395.dir/build
gmake[1]: ディレクトリ `/root/libwebsockets/build/CMakeFiles/CMakeTmp' に入ります
/usr/bin/cmake -E cmake_progress_report /root/libwebsockets/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec2984407395.dir/CheckIncludeFile.c.o
/usr/bin/cc  -DKEYWORD=__inline  -o CMakeFiles/cmTryCompileExec2984407395.dir/CheckIncludeFile.c.o   -c /root/libwebsockets/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/root/libwebsockets/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:19: 致命的エラー: vfork.h: そのようなファイルやディレクトリはありません
 #include <vfork.h>
                   ^
コンパイルを停止しました。
gmake[1]: ディレクトリ `/root/libwebsockets/build/CMakeFiles/CMakeTmp' から出ます
gmake[1]: *** [CMakeFiles/cmTryCompileExec2984407395.dir/CheckIncludeFile.c.o] エラー 1
gmake: *** [cmTryCompileExec2984407395/fast] エラー 2


Determining if the include file sys/capability.h exists failed with the following output:
Change Dir: /root/libwebsockets/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec1204303771/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1204303771.dir/build.make CMakeFiles/cmTryCompileExec1204303771.dir/build
gmake[1]: ディレクトリ `/root/libwebsockets/build/CMakeFiles/CMakeTmp' に入ります
/usr/bin/cmake -E cmake_progress_report /root/libwebsockets/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec1204303771.dir/CheckIncludeFile.c.o
/usr/bin/cc  -DKEYWORD=__inline  -o CMakeFiles/cmTryCompileExec1204303771.dir/CheckIncludeFile.c.o   -c /root/libwebsockets/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/root/libwebsockets/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:28: 致命的エラー: sys/capability.h: そのようなファイルやディレクトリはありません
 #include <sys/capability.h>
                            ^
コンパイルを停止しました。
gmake[1]: ディレクトリ `/root/libwebsockets/build/CMakeFiles/CMakeTmp' から出ます
gmake[1]: *** [CMakeFiles/cmTryCompileExec1204303771.dir/CheckIncludeFile.c.o] エラー 1
gmake: *** [cmTryCompileExec1204303771/fast] エラー 2


Determining if the function cap_set_flag exists in the cap failed with the following output:
Change Dir: /root/libwebsockets/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec2727657773/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec2727657773.dir/build.make CMakeFiles/cmTryCompileExec2727657773.dir/build
gmake[1]: ディレクトリ `/root/libwebsockets/build/CMakeFiles/CMakeTmp' に入ります
/usr/bin/cmake -E cmake_progress_report /root/libwebsockets/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec2727657773.dir/CheckFunctionExists.c.o
/usr/bin/cc  -DKEYWORD=__inline -DCHECK_FUNCTION_EXISTS=cap_set_flag   -o CMakeFiles/cmTryCompileExec2727657773.dir/CheckFunctionExists.c.o   -c /usr/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec2727657773
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2727657773.dir/link.txt --verbose=1
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=cap_set_flag    CMakeFiles/cmTryCompileExec2727657773.dir/CheckFunctionExists.c.o  -o cmTryCompileExec2727657773 -rdynamic -lcap 
/usr/bin/ld: -lcap が見つかりません
collect2: エラー: ld はステータス 1 で終了しました
gmake[1]: ディレクトリ `/root/libwebsockets/build/CMakeFiles/CMakeTmp' から出ます
gmake[1]: *** [cmTryCompileExec2727657773] エラー 1
gmake: *** [cmTryCompileExec2727657773/fast] エラー 2

cmakeが古いという情報があり、epelレポジトリからcmake3をインストールしてMake。

yum install epel-release
yum --enablerepo=epel install cmake3

cmake3 .. -DOPENSSL_ROOT_DIR=/usr/local/openssl-1.1.1 -DOPENSSL_LIBRARIES=/usr/local/openssl-1.1.1/lib -DOPENSSL_INCLUDE_DIR=/usr/local/openssl-1.1.1/include -DLIB_SUFFIX=64

-- The C compiler identification is GNU 4.8.5
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- CMAKE_TOOLCHAIN_FILE=''
-- Found Git: /usr/bin/git
Git commit hash: v3.1.0-141-gf884fd4
-- Performing Test LWS_HAVE_inline
-- Performing Test LWS_HAVE_inline - Success
-- Performing Test LWS_HAVE___inline__
-- Performing Test LWS_HAVE___inline__ - Success
-- Performing Test LWS_HAVE___inline
-- Performing Test LWS_HAVE___inline - Success
-- Performing Test LWS_HAVE_BZERO
-- Performing Test LWS_HAVE_BZERO - Success
-- Performing Test LWS_HAVE_MALLOC_TRIM
-- Performing Test LWS_HAVE_MALLOC_TRIM - Success
-- Performing Test LWS_HAVE_MALLOC_USABLE_SIZE
-- Performing Test LWS_HAVE_MALLOC_USABLE_SIZE - Success
-- Looking for fork
-- Looking for fork - found
-- Looking for getenv
-- Looking for getenv - found
-- Looking for malloc
-- Looking for malloc - found
-- Looking for memset
-- Looking for memset - found
-- Looking for realloc
-- Looking for realloc - found
-- Looking for socket
-- Looking for socket - found
-- Looking for strerror
-- Looking for strerror - found
-- Looking for vfork
-- Looking for vfork - found
-- Looking for execvpe
-- Looking for execvpe - found
-- Looking for getifaddrs
-- Looking for getifaddrs - found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for _snprintf
-- Looking for _snprintf - not found
-- Looking for _vsnprintf
-- Looking for _vsnprintf - not found
-- Looking for getloadavg
-- Looking for getloadavg - found
-- Looking for atoll
-- Looking for atoll - found
-- Looking for _atoi64
-- Looking for _atoi64 - not found
-- Looking for _stat32i64
-- Looking for _stat32i64 - not found
-- Looking for dlfcn.h
-- Looking for dlfcn.h - found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for in6addr.h
-- Looking for in6addr.h - not found
-- Looking for memory.h
-- Looking for memory.h - found
-- Looking for netinet/in.h
-- Looking for netinet/in.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stdlib.h
-- Looking for stdlib.h - found
-- Looking for strings.h
-- Looking for strings.h - found
-- Looking for string.h
-- Looking for string.h - found
-- Looking for sys/prctl.h
-- Looking for sys/prctl.h - found
-- Looking for sys/socket.h
-- Looking for sys/socket.h - found
-- Looking for sys/sockio.h
-- Looking for sys/sockio.h - not found
-- Looking for sys/stat.h
-- Looking for sys/stat.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for vfork.h
-- Looking for vfork.h - not found
-- Looking for sys/capability.h
-- Looking for sys/capability.h - found
-- Looking for malloc.h
-- Looking for malloc.h - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for cap_set_flag in cap
-- Looking for cap_set_flag in cap - found
-- Looking for 4 include files stdlib.h, ..., float.h
-- Looking for 4 include files stdlib.h, ..., float.h - found
-- Performing Test LWS_HAS_INTPTR_T
-- Performing Test LWS_HAS_INTPTR_T - Success
-- Performing Test LWS_HAS_PTHREAD_SETNAME_NP
-- Performing Test LWS_HAS_PTHREAD_SETNAME_NP - Success
-- Performing Test LWS_HAS_GETOPT_LONG
-- Performing Test LWS_HAS_GETOPT_LONG - Success
-- Performing Test LWS_HAVE_VISIBILITY
-- Performing Test LWS_HAVE_VISIBILITY - Success
Compiling with SSL support
-- Found OpenSSL: /usr/local/openssl-1.1.1/lib/libcrypto.so (found version "1.1.1")
OpenSSL include dir: /usr/local/openssl-1.1.1/include
OpenSSL libraries: /usr/local/openssl-1.1.1/lib/libssl.so;/usr/local/openssl-1.1.1/lib/libcrypto.so
-- Looking for openssl/ecdh.h
-- Looking for openssl/ecdh.h - found
-- Looking for SSL_CTX_set1_param
-- Looking for SSL_CTX_set1_param - found
-- Looking for SSL_set_info_callback
-- Looking for SSL_set_info_callback - found
-- Looking for X509_VERIFY_PARAM_set1_host
-- Looking for X509_VERIFY_PARAM_set1_host - found
-- Looking for RSA_set0_key
-- Looking for RSA_set0_key - found
-- Looking for X509_get_key_usage
-- Looking for X509_get_key_usage - found
-- Looking for SSL_CTX_get0_certificate
-- Looking for SSL_CTX_get0_certificate - found
-- Looking for SSL_get0_alpn_selected
-- Looking for SSL_get0_alpn_selected - found
-- Looking for SSL_set_alpn_protos
-- Looking for SSL_set_alpn_protos - found
-- Looking for SSL_CTX_set_ciphersuites
-- Looking for SSL_CTX_set_ciphersuites - found
-- Looking for SSL_CTX_get_extra_chain_certs_only
-- Looking for SSL_CTX_get_extra_chain_certs_only - found
-- Looking for EVP_MD_CTX_free
-- Looking for EVP_MD_CTX_free - found
-- Looking for ECDSA_SIG_set0
-- Looking for ECDSA_SIG_set0 - found
-- Looking for BN_bn2binpad
-- Looking for BN_bn2binpad - found
-- Looking for EVP_aes_128_wrap
-- Looking for EVP_aes_128_wrap - found
-- Looking for EC_POINT_get_affine_coordinates
-- Looking for EC_POINT_get_affine_coordinates - found
-- Looking for TLS_client_method
-- Looking for TLS_client_method - found
-- Looking for TLSv1_2_client_method
-- Looking for TLSv1_2_client_method - found
-- Performing Test LWS_HAVE_PIPE2
-- Performing Test LWS_HAVE_PIPE2 - Success
-- Performing Test LWS_HAVE_TCP_USER_TIMEOUT
-- Performing Test LWS_HAVE_TCP_USER_TIMEOUT - Success
Searching for OpenSSL executable and dlls
OpenSSL executable: /usr/bin/openssl
 GENCERTS = 1
Generating SSL Certificates for the test-server...
Generating a RSA private key
.............+++++
........+++++
writing new private key to '/root/libwebsockets/build/libwebsockets-test-server.key.pem'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:State or Province Name (full name) [Some-State]:Locality Name (eg, city) []:Organization Name (eg, company) [Internet Widgits Pty Ltd]:Organizational Unit Name (eg, section) []:Common Name (e.g. server FQDN or YOUR name) []:Email Address []:SUCCESSFULLY generated SSL certificate
-- Looking for RPMTools... - found rpmuild is /usr/bin/rpmbuild
-- RPMTools:: Using RPM_ROOTDIR=/root/libwebsockets/build/RPM
-- Simple copy spec file <scripts/libwebsockets.spec> --> </root/libwebsockets/build/RPM/SPECS/libwebsockets.spec>
---------------------------------------------------------------------
  Settings:  (For more help do cmake -LH <srcpath>)
---------------------------------------------------------------------
 LWS_WITH_STATIC = ON
 LWS_WITH_SHARED = ON
 LWS_WITH_SSL = ON (SSL Support)
 LWS_SSL_CLIENT_USE_OS_CA_CERTS = 1
 LWS_WITH_WOLFSSL = OFF (wolfSSL/CyaSSL replacement for OpenSSL)
 LWS_WITH_MBEDTLS = OFF (mbedTLS replacement for OpenSSL)
 LWS_WITHOUT_BUILTIN_SHA1 = OFF
 LWS_WITHOUT_BUILTIN_GETIFADDRS = OFF
 LWS_WITHOUT_CLIENT = OFF
 LWS_WITHOUT_SERVER = OFF
 LWS_LINK_TESTAPPS_DYNAMIC = OFF
 LWS_WITHOUT_TESTAPPS = OFF
 LWS_WITHOUT_TEST_SERVER = OFF
 LWS_WITHOUT_TEST_SERVER_EXTPOLL = OFF
 LWS_WITHOUT_TEST_PING = OFF
 LWS_WITHOUT_TEST_CLIENT = OFF
 LWS_WITHOUT_EXTENSIONS = ON
 LWS_WITH_LATENCY = OFF
 LWS_WITHOUT_DAEMONIZE = ON
 LWS_WITH_LIBEV = OFF
 LWS_WITH_LIBUV = OFF
 LWS_WITH_LIBEVENT = OFF
 LWS_IPV6 = OFF
 LWS_UNIX_SOCK = OFF
 LWS_WITH_HTTP2 = 1
 LWS_SSL_SERVER_WITH_ECDH_CERT = OFF
 LWS_MAX_SMP = 1
 LWS_HAVE_PTHREAD_H = 1
 LWS_WITH_CGI = OFF
 LWS_HAVE_OPENSSL_ECDH_H = 1
 LWS_HAVE_SSL_CTX_set1_param = 1
 LWS_HAVE_RSA_SET0_KEY = 1
 LWS_WITH_HTTP_PROXY = OFF
 LIBHUBBUB_LIBRARIES =
 PLUGINS =
 LWS_WITH_ACCESS_LOG = OFF
 LWS_WITH_SERVER_STATUS = OFF
 LWS_WITH_LEJP = ON
 LWS_WITH_LEJP_CONF = ON
 LWS_WITH_SMTP = OFF
 LWS_WITH_GENERIC_SESSIONS = OFF
 LWS_STATIC_PIC = OFF
 LWS_WITH_RANGES = OFF
 LWS_PLAT_OPTEE = OFF
 LWS_WITH_ESP32 = OFF
 LWS_WITH_ZIP_FOPS = OFF
 LWS_AVOID_SIGPIPE_IGN = OFF
 LWS_WITH_STATS = OFF
 LWS_WITH_SOCKS5 = OFF
 LWS_HAVE_SYS_CAPABILITY_H = 1
 LWS_HAVE_LIBCAP = 1
 LWS_WITH_PEER_LIMITS = OFF
 LWS_HAVE_ATOLL = 1
 LWS_HAVE__ATOI64 =
 LWS_HAVE_STAT32I64 =
 LWS_HAS_INTPTR_T = 1
 LWS_WITH_EXPORT_LWSTARGETS = ON
---------------------------------------------------------------------
-- Configuring done
-- Generating done
-- Build files have been written to: /root/libwebsockets/build 

こののち make, make installでインストール完了。

#mosquittoのインストール

wget https://mosquitto.org/files/source/mosquitto-1.6.0.tar.gz
tar zxvf mosquitto-1.6.0.tar.gz
cd mosquitto-1.6.0

#コンフィグの設定
config.mkの中身を修正する。

WITH_TLS:=yes //修正

ifeq ($(UNAME),SunOS)
        ifeq ($(CC),cc)
                CFLAGS?=-O
        else
                CFLAGS?=-Wall -ggdb -O2
        endif
else
//        CFLAGS?=-Wall -ggdb -O2
        CFLAGS?=-Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include //修正 
endif

STATIC_LIB_DEPS:=
LIB_CFLAGS:=${CFLAGS} ${CPPFLAGS} -I. -I.. -I../lib -I../src/deps
LIB_CXXFLAGS:=$(CFLAGS) ${CPPFLAGS} -I. -I.. -I../lib
//LIB_LDFLAGS:=${LDFLAGS}
LIB_LDFLAGS:=${LDFLAGS} -L/usr/local/openssl-1.1.1/lib //修正

ifeq ($(WITH_TLS),yes)
        BROKER_LIBS:=$(BROKER_LIBS) -lssl -lcrypto
        LIB_LIBS:=$(LIB_LIBS) -lssl -lcrypto
        BROKER_CFLAGS:=$(BROKER_CFLAGS) -DWITH_TLS
        LIB_CFLAGS:=$(LIB_CFLAGS) -DWITH_TLS
//        PASSWD_LIBS:=-lcrypto
        PASSWD_LIBS:=-lcrypto -L/usr/local/openssl-1.1.1/lib //修正
        CLIENT_CFLAGS:=$(CLIENT_CFLAGS) -DWITH_TLS
        STATIC_LIB_DEPS:=$(STATIC_LIB_DEPS) -lssl -lcrypto

        ifeq ($(WITH_TLS_PSK),yes)
                BROKER_CFLAGS:=$(BROKER_CFLAGS) -DWITH_TLS_PSK
                LIB_CFLAGS:=$(LIB_CFLAGS) -DWITH_TLS_PSK
                CLIENT_CFLAGS:=$(CLIENT_CFLAGS) -DWITH_TLS_PSK
        endif
endif

make,make installでインストール。

make
set -e; for d in lib client src; do make -C ${d}; done
make[1]: ディレクトリ `/usr/local/mosquitto-1.6.0/lib' に入ります
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c mosquitto.c -o mosquitto.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c actions.c -o actions.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c callbacks.c -o callbacks.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c connect.c -o connect.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c handle_auth.c -o handle_auth.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c handle_connack.c -o handle_connack.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c handle_disconnect.c -o handle_disconnect.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c handle_ping.c -o handle_ping.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c handle_pubackcomp.c -o handle_pubackcomp.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c handle_publish.c -o handle_publish.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c handle_pubrec.c -o handle_pubrec.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c handle_pubrel.c -o handle_pubrel.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c handle_suback.c -o handle_suback.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c handle_unsuback.c -o handle_unsuback.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c helpers.c -o helpers.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c logging_mosq.c -o logging_mosq.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c loop.c -o loop.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c memory_mosq.c -o memory_mosq.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c messages_mosq.c -o messages_mosq.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c net_mosq_ocsp.c -o net_mosq_ocsp.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c net_mosq.c -o net_mosq.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c options.c -o options.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c packet_datatypes.c -o packet_datatypes.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c packet_mosq.c -o packet_mosq.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c property_mosq.c -o property_mosq.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c read_handle.c -o read_handle.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c send_connect.c -o send_connect.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c send_disconnect.c -o send_disconnect.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c send_mosq.c -o send_mosq.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c send_publish.c -o send_publish.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c send_subscribe.c -o send_subscribe.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c send_unsubscribe.c -o send_unsubscribe.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c socks_mosq.c -o socks_mosq.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c srv_mosq.c -o srv_mosq.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c thread_mosq.c -o thread_mosq.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c time_mosq.c -o time_mosq.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c tls_mosq.c -o tls_mosq.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c utf8_mosq.c -o utf8_mosq.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c util_mosq.c -o util_mosq.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c util_topic.c -o util_topic.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -c will_mosq.c -o will_mosq.o
cc -shared  -L/usr/local/openssl-1.1.1/lib -Wl,--version-script=linker.version -Wl,-soname,libmosquitto.so.1 mosquitto.o actions.o callbacks.o connect.o handle_auth.o handle_connack.o handle_disconnect.o handle_ping.o handle_pubackcomp.o handle_publish.o handle_pubrec.o handle_pubrel.o handle_suback.o handle_unsuback.o helpers.o logging_mosq.o loop.o memory_mosq.o messages_mosq.o net_mosq_ocsp.o net_mosq.o options.o packet_datatypes.o packet_mosq.o property_mosq.o read_handle.o send_connect.o send_disconnect.o send_mosq.o send_publish.o send_subscribe.o send_unsubscribe.o socks_mosq.o srv_mosq.o thread_mosq.o time_mosq.o tls_mosq.o utf8_mosq.o util_mosq.o util_topic.o will_mosq.o -o libmosquitto.so.1  -lrt -lssl -lcrypto -lpthread
make -C cpp
make[2]: ディレクトリ `/usr/local/mosquitto-1.6.0/lib/cpp' に入ります
g++ -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -fPIC -c mosquittopp.cpp -o mosquittopp.o
mosquittopp.cpp: 関数 ‘void mosqpp::on_connect_wrapper(mosquitto*, void*, int) ’ 内:
mosquittopp.cpp:27:21: 警告: ‘mosquittopp’ は廃止されました (宣言位置 ./mosquittopp.h:90) [-Wdeprecated-declarations]
  class mosquittopp *m = (class mosquittopp *)userdata;
                     ^
mosquittopp.cpp:27:44: 警告: ‘mosquittopp’ は廃止されました (宣言位置 ./mosquittopp.h:90) [-Wdeprecated-declarations]
  class mosquittopp *m = (class mosquittopp *)userdata;
                                            ^
mosquittopp.cpp: 関数 ‘void mosqpp::on_connect_with_flags_wrapper(mosquitto*, void*, int, int)’ 内:
mosquittopp.cpp:36:21: 警告: ‘mosquittopp’ は廃止されました (宣言位置 ./mosquittopp.h:90) [-Wdeprecated-declarations]
  class mosquittopp *m = (class mosquittopp *)userdata;
                     ^
mosquittopp.cpp:36:44: 警告: ‘mosquittopp’ は廃止されました (宣言位置 ./mosquittopp.h:90) [-Wdeprecated-declarations]
  class mosquittopp *m = (class mosquittopp *)userdata;
                                            ^
mosquittopp.cpp: 関数 ‘void mosqpp::on_disconnect_wrapper(mosquitto*, void*, int)’ 内:
mosquittopp.cpp:43:21: 警告: ‘mosquittopp’ は廃止されました (宣言位置 ./mosquittopp.h:90) [-Wdeprecated-declarations]
  class mosquittopp *m = (class mosquittopp *)userdata;
                     ^
mosquittopp.cpp:43:44: 警告: ‘mosquittopp’ は廃止されました (宣言位置 ./mosquittopp.h:90) [-Wdeprecated-declarations]
  class mosquittopp *m = (class mosquittopp *)userdata;
                                            ^
mosquittopp.cpp: 関数 ‘void mosqpp::on_publish_wrapper(mosquitto*, void*, int) ’ 内:
mosquittopp.cpp:50:21: 警告: ‘mosquittopp’ は廃止されました (宣言位置 ./mosquittopp.h:90) [-Wdeprecated-declarations]
  class mosquittopp *m = (class mosquittopp *)userdata;
                     ^
mosquittopp.cpp:50:44: 警告: ‘mosquittopp’ は廃止されました (宣言位置 ./mosquittopp.h:90) [-Wdeprecated-declarations]
  class mosquittopp *m = (class mosquittopp *)userdata;
                                            ^
mosquittopp.cpp: 関数 ‘void mosqpp::on_message_wrapper(mosquitto*, void*, const mosquitto_message*)’ 内:
mosquittopp.cpp:57:21: 警告: ‘mosquittopp’ は廃止されました (宣言位置 ./mosquittopp.h:90) [-Wdeprecated-declarations]
  class mosquittopp *m = (class mosquittopp *)userdata;
                     ^
mosquittopp.cpp:57:44: 警告: ‘mosquittopp’ は廃止されました (宣言位置 ./mosquittopp.h:90) [-Wdeprecated-declarations]
  class mosquittopp *m = (class mosquittopp *)userdata;
                                            ^
mosquittopp.cpp: 関数 ‘void mosqpp::on_subscribe_wrapper(mosquitto*, void*, int, int, const int*)’ 内:
mosquittopp.cpp:64:21: 警告: ‘mosquittopp’ は廃止されました (宣言位置 ./mosquittopp.h:90) [-Wdeprecated-declarations]
  class mosquittopp *m = (class mosquittopp *)userdata;
                     ^
mosquittopp.cpp:64:44: 警告: ‘mosquittopp’ は廃止されました (宣言位置 ./mosquittopp.h:90) [-Wdeprecated-declarations]
  class mosquittopp *m = (class mosquittopp *)userdata;
                                            ^
mosquittopp.cpp: 関数 ‘void mosqpp::on_unsubscribe_wrapper(mosquitto*, void*, int)’ 内:
mosquittopp.cpp:71:21: 警告: ‘mosquittopp’ は廃止されました (宣言位置 ./mosquittopp.h:90) [-Wdeprecated-declarations]
  class mosquittopp *m = (class mosquittopp *)userdata;
                     ^
mosquittopp.cpp:71:44: 警告: ‘mosquittopp’ は廃止されました (宣言位置 ./mosquittopp.h:90) [-Wdeprecated-declarations]
  class mosquittopp *m = (class mosquittopp *)userdata;
                                            ^
mosquittopp.cpp: 関数 ‘void mosqpp::on_log_wrapper(mosquitto*, void*, int, const char*)’ 内:
mosquittopp.cpp:79:21: 警告: ‘mosquittopp’ は廃止されました (宣言位置 ./mosquittopp.h:90) [-Wdeprecated-declarations]
  class mosquittopp *m = (class mosquittopp *)userdata;
                     ^
mosquittopp.cpp:79:44: 警告: ‘mosquittopp’ は廃止されました (宣言位置 ./mosquittopp.h:90) [-Wdeprecated-declarations]
  class mosquittopp *m = (class mosquittopp *)userdata;
                                            ^
g++ -shared  -Wl,-soname,libmosquittopp.so.1 mosquittopp.o -o libmosquittopp.so.1 ../libmosquitto.so.1
make[2]: ディレクトリ `/usr/local/mosquitto-1.6.0/lib/cpp' から出ます
make[1]: ディレクトリ `/usr/local/mosquitto-1.6.0/lib' から出ます
make[1]: ディレクトリ `/usr/local/mosquitto-1.6.0/client' に入ります
cc -c pub_client.c -o pub_client.o -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I.. -I../lib -DVERSION="\"1.6.0\"" -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS
cc -c pub_shared.c -o pub_shared.o -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I.. -I../lib -DVERSION="\"1.6.0\"" -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS
cc -c client_shared.c -o client_shared.o -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I.. -I../lib -DVERSION="\"1.6.0\"" -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS
cc -c client_props.c -o client_props.o -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I.. -I../lib -DVERSION="\"1.6.0\"" -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS
cc pub_client.o pub_shared.o client_shared.o client_props.o -o mosquitto_pub  -L../lib ../lib/libmosquitto.so.1
cc -c sub_client.c -o sub_client.o -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I.. -I../lib -DVERSION="\"1.6.0\"" -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS
cc -c sub_client_output.c -o sub_client_output.o -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I.. -I../lib -DVERSION="\"1.6.0\"" -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS
cc sub_client.o sub_client_output.o client_shared.o client_props.o -o mosquitto_sub  -L../lib ../lib/libmosquitto.so.1
cc -c rr_client.c -o rr_client.o -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I.. -I../lib -DVERSION="\"1.6.0\"" -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS
cc rr_client.o client_shared.o client_props.o pub_shared.o sub_client_output.o -o mosquitto_rr  -L../lib ../lib/libmosquitto.so.1
make[1]: ディレクトリ `/usr/local/mosquitto-1.6.0/client' から出ます
make[1]: ディレクトリ `/usr/local/mosquitto-1.6.0/src' に入ります
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c mosquitto.c -o mosquitto.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c ../lib/alias_mosq.c -o alias_mosq.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c bridge.c -o bridge.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c conf.c -o conf.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c conf_includedir.c -o conf_includedir.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c context.c -o context.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c database.c -o database.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c handle_auth.c -o handle_auth.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c handle_connack.c -o handle_connack.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c handle_connect.c -o handle_connect.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c handle_disconnect.c -o handle_disconnect.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c ../lib/handle_ping.c -o handle_ping.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c ../lib/handle_pubackcomp.c -o handle_pubackcomp.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c handle_publish.c -o handle_publish.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c ../lib/handle_pubrec.c -o handle_pubrec.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c ../lib/handle_pubrel.c -o handle_pubrel.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c ../lib/handle_suback.c -o handle_suback.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c handle_subscribe.c -o handle_subscribe.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c ../lib/handle_unsuback.c -o handle_unsuback.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c handle_unsubscribe.c -o handle_unsubscribe.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c logging.c -o logging.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c loop.c -o loop.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c ../lib/memory_mosq.c -o memory_mosq.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c net.c -o net.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c ../lib/net_mosq.c -o net_mosq.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c ../lib/net_mosq_ocsp.c -o net_mosq_ocsp.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c ../lib/packet_datatypes.c -o packet_datatypes.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c ../lib/packet_mosq.c -o packet_mosq.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c property_broker.c -o property_broker.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c ../lib/property_mosq.c -o property_mosq.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c persist_read.c -o persist_read.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c persist_read_v234.c -o persist_read_v234.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c persist_read_v5.c -o persist_read_v5.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c persist_write.c -o persist_write.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c persist_write_v5.c -o persist_write_v5.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c plugin.c -o plugin.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c read_handle.c -o read_handle.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c security.c -o security.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c security_default.c -o security_default.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c send_auth.c -o send_auth.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c send_connack.c -o send_connack.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c ../lib/send_connect.c -o send_connect.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c ../lib/send_disconnect.c -o send_disconnect.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c ../lib/send_mosq.c -o send_mosq.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c ../lib/send_publish.c -o send_publish.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c send_suback.c -o send_suback.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c ../lib/send_subscribe.c -o send_subscribe.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c send_unsuback.c -o send_unsuback.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c ../lib/send_unsubscribe.c -o send_unsubscribe.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c service.c -o service.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c session_expiry.c -o session_expiry.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c signals.c -o signals.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c subs.c -o subs.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c sys_tree.c -o sys_tree.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c ../lib/time_mosq.c -o time_mosq.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c ../lib/tls_mosq.c -o tls_mosq.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c ../lib/utf8_mosq.c -o utf8_mosq.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c ../lib/util_mosq.c -o util_mosq.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c ../lib/util_topic.c -o util_topic.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c websockets.c -o websockets.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c will_delay.c -o will_delay.o
cc -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -I. -I.. -I../lib -I../src/deps  -DVERSION="\"1.6.0\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_EC -DWITH_WEBSOCKETS -DWITH_EPOLL -Ideps -c ../lib/will_mosq.c -o will_mosq.o
cc mosquitto.o alias_mosq.o bridge.o conf.o conf_includedir.o context.o database.o handle_auth.o handle_connack.o handle_connect.o handle_disconnect.o handle_ping.o handle_pubackcomp.o handle_publish.o handle_pubrec.o handle_pubrel.o handle_suback.o handle_subscribe.o handle_unsuback.o handle_unsubscribe.o logging.o loop.o memory_mosq.o net.o net_mosq.o net_mosq_ocsp.o packet_datatypes.o packet_mosq.o property_broker.o property_mosq.o persist_read.o persist_read_v234.o persist_read_v5.o persist_write.o persist_write_v5.o plugin.o read_handle.o security.o security_default.o send_auth.o send_connack.o send_connect.o send_disconnect.o send_mosq.o send_publish.o send_suback.o send_subscribe.o send_unsuback.o send_unsubscribe.o service.o session_expiry.o signals.o subs.o sys_tree.o time_mosq.o tls_mosq.o utf8_mosq.o util_mosq.o util_topic.o websockets.o will_delay.o will_mosq.o -o mosquitto  -L/usr/local/openssl-1.1.1/lib -ldl -lm -lrt -Wl,--dynamic-list=linker.syms -lssl -lcrypto -lwebsockets
cc -I.. -Wall -ggdb -O2 -I/usr/local/openssl-1.1.1/include  -c mosquitto_passwd.c -o mosquitto_passwd.o
cc mosquitto_passwd.o -o mosquitto_passwd  -lcrypto -L/usr/local/openssl-1.1.1/lib
make[1]: ディレクトリ `/usr/local/mosquitto-1.6.0/src' から出ます
set -e; for d in man; do make -C ${d}; done
make[1]: ディレクトリ `/usr/local/mosquitto-1.6.0/man' に入ります
make[1]: `all' に対して行うべき事はありません.
make[1]: ディレクトリ `/usr/local/mosquitto-1.6.0/man' から出ます
[root@izanami mosquitto-1.6.0]# make install
set -e; for d in lib client src; do make -C ${d}; done
make[1]: ディレクトリ `/usr/local/mosquitto-1.6.0/lib' に入ります
make -C cpp
make[2]: ディレクトリ `/usr/local/mosquitto-1.6.0/lib/cpp' に入ります
make[2]: `all' に対して行うべき事はありません.
make[2]: ディレクトリ `/usr/local/mosquitto-1.6.0/lib/cpp' から出ます
make[1]: ディレクトリ `/usr/local/mosquitto-1.6.0/lib' から出ます
make[1]: ディレクトリ `/usr/local/mosquitto-1.6.0/client' に入ります
make[1]: `all' に対して行うべき事はありません.
make[1]: ディレクトリ `/usr/local/mosquitto-1.6.0/client' から出ます
make[1]: ディレクトリ `/usr/local/mosquitto-1.6.0/src' に入ります
make[1]: `all' に対して行うべき事はありません.
make[1]: ディレクトリ `/usr/local/mosquitto-1.6.0/src' から出ます
set -e; for d in lib client src; do make -C ${d} install; done
make[1]: ディレクトリ `/usr/local/mosquitto-1.6.0/lib' に入ります
make -C cpp
make[2]: ディレクトリ `/usr/local/mosquitto-1.6.0/lib/cpp' に入ります
make[2]: `all' に対して行うべき事はありません.
make[2]: ディレクトリ `/usr/local/mosquitto-1.6.0/lib/cpp' から出ます
install -d "/usr/local/lib/"
install  libmosquitto.so.1 "/usr/local/lib/libmosquitto.so.1"
ln -sf libmosquitto.so.1 "/usr/local/lib/libmosquitto.so"
install -d "/usr/local/include/"
install mosquitto.h "/usr/local/include/mosquitto.h"
install -d "/usr/local/lib/pkgconfig"
install -m644 ../libmosquitto.pc.in "/usr/local/lib/pkgconfig/libmosquitto.pc"
sed -i -e "s#@CMAKE_INSTALL_PREFIX@#/usr/local#" -e "s#@VERSION@#1.6.0#" "/usr/local/lib/pkgconfig/libmosquitto.pc"
make -C cpp install
make[2]: ディレクトリ `/usr/local/mosquitto-1.6.0/lib/cpp' に入ります
install -d "/usr/local/lib/"
install  libmosquittopp.so.1 "/usr/local/lib/libmosquittopp.so.1"
ln -sf libmosquittopp.so.1 "/usr/local/lib/libmosquittopp.so"
install -d "/usr/local/include/"
install mosquittopp.h "/usr/local/include/mosquittopp.h"
install -d "/usr/local/lib/pkgconfig/"
install -m644 ../../libmosquittopp.pc.in "/usr/local/lib/pkgconfig/libmosquittopp.pc"
sed -i -e "s#@CMAKE_INSTALL_PREFIX@#/usr/local#" -e "s#@VERSION@#1.6.0#" "/usr/local/lib/pkgconfig/libmosquittopp.pc"
make[2]: ディレクトリ `/usr/local/mosquitto-1.6.0/lib/cpp' から出ます
make[1]: ディレクトリ `/usr/local/mosquitto-1.6.0/lib' から出ます
make[1]: ディレクトリ `/usr/local/mosquitto-1.6.0/client' に入ります
install -d "/usr/local/bin"
install  mosquitto_pub "/usr/local/bin/mosquitto_pub"
install  mosquitto_sub "/usr/local/bin/mosquitto_sub"
install  mosquitto_rr "/usr/local/bin/mosquitto_rr"
make[1]: ディレクトリ `/usr/local/mosquitto-1.6.0/client' から出ます
make[1]: ディレクトリ `/usr/local/mosquitto-1.6.0/src' に入ります
install -d "/usr/local/sbin"
install  mosquitto "/usr/local/sbin/mosquitto"
install -d "/usr/local/include"
install mosquitto_broker.h "/usr/local/include/mosquitto_broker.h"
install mosquitto_plugin.h "/usr/local/include/mosquitto_plugin.h"
install -d "/usr/local/bin"
install  mosquitto_passwd "/usr/local/bin/mosquitto_passwd"
make[1]: ディレクトリ `/usr/local/mosquitto-1.6.0/src' から出ます
set -e; for d in man; do make -C ${d} install; done
make[1]: ディレクトリ `/usr/local/mosquitto-1.6.0/man' に入ります
install -d "/usr/local/share/man/man8"
install -m 644 mosquitto.8 "/usr/local/share/man/man8/mosquitto.8"
install -d "/usr/local/share/man/man5"
install -m 644 mosquitto.conf.5 "/usr/local/share/man/man5/mosquitto.conf.5"
install -d "/usr/local/share/man/man1"
install -m 644 mosquitto_passwd.1 "/usr/local/share/man/man1/mosquitto_passwd.1"
install -m 644 mosquitto_pub.1 "/usr/local/share/man/man1/mosquitto_pub.1"
install -m 644 mosquitto_sub.1 "/usr/local/share/man/man1/mosquitto_sub.1"
install -m 644 mosquitto_rr.1 "/usr/local/share/man/man1/mosquitto_rr.1"
install -d "/usr/local/share/man/man7"
install -m 644 mqtt.7 "/usr/local/share/man/man7/mqtt.7"
install -m 644 mosquitto-tls.7 "/usr/local/share/man/man7/mosquitto-tls.7"
install -d "/usr/local/share/man/man3"
install -m 644 libmosquitto.3 "/usr/local/share/man/man3/libmosquitto.3"
make[1]: ディレクトリ `/usr/local/mosquitto-1.6.0/man' から出ます
install -d "/etc/mosquitto"
install -m 644 mosquitto.conf "/etc/mosquitto/mosquitto.conf.example"
install -m 644 aclfile.example "/etc/mosquitto/aclfile.example"
install -m 644 pwfile.example "/etc/mosquitto/pwfile.example"
install -m 644 pskfile.example "/etc/mosquitto/pskfile.example"

Mosquittoとコマンドを入れ動作を確認する。
ライブラリの位置を調整しながら動作を確認する。
今回はここまで。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?