Closed Prinz23 closed 3 months ago
What version of OpenSSL are you using? Anyway, I should have added an additional check for OPENSSL_FULL_VERSION_STR. Not all versions of OpenSSL have OPENSSL_FULL_VERSION_STR, as I can see now. For a quick fix, you can replace OPENSSL_FULL_VERSION_STR with OPENSSL_VERSION and everything should be fine.
The latest version is OpenSSL 1.1.1n 15 Mar 2022
that is available for this OS. Version 1.2 or higher is not available on this OS.
Got it, thanks.
Should be fixed now. Could you also check NZBGet installer? Would it work on your system?
Yes, nzbget builds now again.
The installer armhf version also runs on my BPi, but i prefer the native build version.
Thank you!
NZBGet Version
v24.3-testing
Platform
Linux/Docker
Environment
Problem or Question
The compiling seams to fail since the release of 24.2 and to be related to the new System Info.
Steps To Reproduce
mkdir build cd build cmake .. cmake --build . -j 2
Logs
[ 98%] Building CXX object CMakeFiles/nzbget.dir/daemon/system/CPU.cpp.o /home/nzbgetcom/daemon/system/SystemInfo.cpp: In member function void System::SystemInfo::InitLibsInfo(): /home/nzbgetcom/daemon/system/SystemInfo.cpp:72:38: error: OPENSSL_FULL_VERSION_STR was not declared in this scope m_libraries.push_back({ "OpenSSL", OPENSSL_FULL_VERSION_STR }); ^::push_back()
m_libraries.push_back({ "OpenSSL", OPENSSL_FULL_VERSION_STR });
^
In file included from /usr/include/c++/8/vector:64,
from /home/nzbgetcom/daemon/main/nzbget.h:207,
from /home/nzbgetcom/daemon/system/SystemInfo.cpp:20:
/usr/include/c++/8/bits/stl_vector.h:1074:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = System::Library; _Alloc = std::allocator; std::vector<_Tp, _Alloc>::value_type = System::Library]
push_back(const value_type& x)
^ to const value_type& {aka const System::Library&}
/usr/include/c++/8/bits/stl_vector.h:1090:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = System::Library; _Alloc = std::allocator; std::vector<_Tp, _Alloc>::value_type = System::Library]
push_back(value_type&& x)
^ to std::vector::value_type&& {aka System::Library&&}
In file included from /home/nzbgetcom/daemon/util/FileSystem.h:28,
from /home/nzbgetcom/daemon/system/CPU.cpp:26:
/home/nzbgetcom/daemon/main/Options.h: In member function virtual void Options::Extender::AddFeed(int, const char, const char, int, const char, bool, bool, const char, int, const char):
/home/nzbgetcom/daemon/main/Options.h:180:28: warning: unused parameter id [-Wunused-parameter]
virtual void AddFeed(int id, const char name, const char* url, int interval,
~~~~~~~ /home/nzbgetcom/daemon/system/SystemInfo.cpp:72:38: note: suggested alternative: OPENSSL_VERSION m_libraries.push_back({ "OpenSSL", OPENSSL_FULL_VERSION_STR }); ^~~~~~~~ OPENSSL_VERSION /home/nzbgetcom/daemon/system/SystemInfo.cpp:72:64: error: no matching function for call to std::vector~~~~ /usr/include/c++/8/bits/stl_vector.h:1074:7: note: no known conversion for argument 1 from~~~~ /usr/include/c++/8/bits/stl_vector.h:1090:7: note: no known conversion for argument 1 from