Kodi Community Forum

Full Version: kodi-x11 Compilation Error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm experiencing "Skin Helper Service Widgets" (v1.0.38) errors and "TV Show - Next Aired" (v7.0.1) errors and haven't found much help resolving them. So, I decided to try and upgrade to 18.1 on the off chance it improves something.

I compiled 18.0rc5 after some minor library problems and didn't expect troubles with the next minor release. However, at the last step (kodi-x11) compilation is failing and I don't see an immediate problem. Is there anything that going from 18.0 to 18.1 that might complicate compiling? Any other thoughts?

Steps used:
Quote:sudo git clean -xfd && git reset --hard && git pull --rebase
git checkout tags/18.1rc1-Leia
cmake -DCMAKE_BUILD_TYPE=$Configuration -DENABLE_INTERNAL_FSTRCMP=1
cmake --build . > compile-log.txt

The end result is:
Quote:/home/kodi-user/xbmc/build/include/libavcodec/avcodec.h:5347:5: note: declared here
 int avcodec_encode_audio2(AVCodecContext *avctx, AVPacket *avpkt,
     ^
build/video/video.a(VideoInfoScanner.cpp.o):VideoInfoScanner.cpp:function VIDEO::CVideoInfoScanner::GetFastHash(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&) const: error: undefined reference to 'KODI::UTILITY::CDigest::MdCtxDeleter::operator()(evp_md_ctx_st*)'
build/video/video.a(VideoInfoScanner.cpp.o):VideoInfoScanner.cpp:function VIDEO::CVideoInfoScanner::GetFastHash(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&) const: error: undefined reference to 'KODI::UTILITY::CDigest::MdCtxDeleter::operator()(evp_md_ctx_st*)'
build/video/video.a(VideoInfoScanner.cpp.o):VideoInfoScanner.cpp:function VIDEO::CVideoInfoScanner::GetPathHash(CFileItemList const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&): error: undefined reference to 'KODI::UTILITY::CDigest::MdCtxDeleter::operator()(evp_md_ctx_st*)'
build/video/video.a(VideoInfoScanner.cpp.o):VideoInfoScanner.cpp:function VIDEO::CVideoInfoScanner::GetPathHash(CFileItemList const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&): error: undefined reference to 'KODI::UTILITY::CDigest::MdCtxDeleter::operator()(evp_md_ctx_st*)'
collect2: error: ld returned 1 exit status
make[2]: *** [kodi-x11] Error 1
make[1]: *** [CMakeFiles/kodi.dir/all] Error 2
make: *** [all] Error 2

Full logs are here: for git clean, for cmake configure, for compiling (verbosity turned off because results were way way too long for paste.tv), and onscreen output that wasn't written to the log.txt
the error points to some openssl issue, did you disable some cipher suites? @yol any ideas?

btw, it's not recommended to build in the kodi source tree, please make a build dir:
Code:
mkdir build && cd build
cmake ....
cmake --build .
It seems like Kodi was build with OpenSSL 1.1.0 or 1.1.1 headers, but now it tries to link with OpenSSL 1.0.2 library.