Error make install
gkhanacer opened this issue · 3 comments
gkhanacer commented
This is cmake result for relase:
-- The C compiler identification is AppleClang 8.1.0.8020042
-- The CXX compiler identification is AppleClang 8.1.0.8020042
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PythonInterp: /usr/bin/python (found version "2.7.10")
CMake Warning at tools/cmake/CodeCoverage.cmake:82 (MESSAGE):
Compiler is not GNU gcc! Clang Version 3.0.0 and greater supports gcov as
well, but older versions don't.
Call Stack (most recent call first):
CMakeLists.txt:16 (INCLUDE)
CMake Warning at tools/cmake/CodeCoverage.cmake:112 (MESSAGE):
Code coverage results with an optimized (non-Debug) build may be misleading
Call Stack (most recent call first):
CMakeLists.txt:16 (INCLUDE)
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
Git version: eb9f3b5afc43f679c6bdc44196e6d3fc59ac6396
Building untagged branch
-- Looking for jansson
-- Jannson Already Available /usr/local/lib/libjansson.dylib
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29")
-- Checking for one of the modules 'openssl;openssl>=1.0.2'
-- Using OpenSSL 1.1.1-dev - /usr/local/lib - /usr/local/lib
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/gokhanacer/KU/jwt-cpp/release
and then I try to "make install" command, but it is appeared:
[ 2%] Building CXX object src/CMakeFiles/jwt.dir/jwt/jwt.cpp.o
[ 5%] Building CXX object src/CMakeFiles/jwt.dir/base64/base64.cpp.o
[ 8%] Building CXX object src/CMakeFiles/jwt.dir/validators/hmacvalidator.cpp.o
/Users/gokhanacer/KU/jwt-cpp/src/validators/hmacvalidator.cpp:31:47: error:
member access into incomplete type 'const EVP_MD' (aka 'const evp_md_st')
md_(md), algorithm_(algorithm), key_size_(md->md_size), key_(key) {
^
/usr/local/include/openssl/ossl_typ.h:91:16: note: forward declaration of
'evp_md_st'
typedef struct evp_md_st EVP_MD;
^
/Users/gokhanacer/KU/jwt-cpp/src/validators/hmacvalidator.cpp:68:12: error:
variable has incomplete type 'HMAC_CTX' (aka 'hmac_ctx_st')
HMAC_CTX ctx;
^
/usr/local/include/openssl/ossl_typ.h:102:16: note: forward declaration of
'hmac_ctx_st'
typedef struct hmac_ctx_st HMAC_CTX;
^
2 errors generated.
make[2]: *** [src/CMakeFiles/jwt.dir/validators/hmacvalidator.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/jwt.dir/all] Error 2
make: *** [all] Error 2
gkhanacer commented
I set openssl path manally and it is solved.
INCLUDE_DIRECTORIES(/usr/local/opt/openssl/include)
LINK_DIRECTORIES (/usr/local/opt/openssl/lib)
DanFTRX commented
This looks like the same issue I had, your first build was using the newer OpenSSL versions(1.1.0+) from your /user/local/lib which made a few types opaque, and some code modifications were required for compilation, although it seems you instead manually included an older version of OpenSSL from /usr/local/opt
pokowaka commented
We now support ssl 1.0 & 1.1