tihmstar / libpatchfinder

A arm offsetfinder. It finds offsets, patches, parses Mach-O and even supports IMG4/IMG3
GNU Lesser General Public License v2.1
144 stars 70 forks source link

Issue while using liboffsetfinder64 to build iBoot64Patcher #15

Closed stevezaluk closed 4 years ago

stevezaluk commented 4 years ago

Whenever I try to compile iBoot64Patcher using gcc and g++ i get 13 warnings and 4 errors

π iBoot64Patcher/iBoot64Patcher master ✗ ❯ gcc main.cpp In file included from main.cpp:13: In file included from /usr/local/include/liboffsetfinder64/ibootpatchfinder64.hpp:12: In file included from /usr/local/include/liboffsetfinder64/patchfinder64.hpp:20: In file included from /usr/local/include/liboffsetfinder64/OFexception.hpp:12: In file included from /usr/local/include/libgeneral/macros.h:69: /usr/local/include/libgeneral/exception.hpp:37:9: error: exception specification of overriding function is more lax than base version ~exception(); ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/exception:102:13: note: overridden virtual function is here virtual ~exception() _NOEXCEPT; ^ In file included from main.cpp:13: In file included from /usr/local/include/liboffsetfinder64/ibootpatchfinder64.hpp:12: In file included from /usr/local/include/liboffsetfinder64/patchfinder64.hpp:20: In file included from /usr/local/include/liboffsetfinder64/OFexception.hpp:12: /usr/local/include/libgeneral/macros.h:96:27: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions] guard(const guard&) = delete; //delete copy constructor ^ /usr/local/include/libgeneral/macros.h:97:17: warning: rvalue references are a C++11 extension [-Wc++11-extensions] guard(guard &&o) = delete; //move constructor ^ /usr/local/include/libgeneral/macros.h:97:24: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions] guard(guard &&o) = delete; //move constructor ^ In file included from main.cpp:13: In file included from /usr/local/include/liboffsetfinder64/ibootpatchfinder64.hpp:12: In file included from /usr/local/include/liboffsetfinder64/patchfinder64.hpp:20: /usr/local/include/liboffsetfinder64/OFexception.hpp:21:48: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions] std::string build_commit_count() const override { ^ /usr/local/include/liboffsetfinder64/OFexception.hpp:25:46: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions] std::string build_commit_sha() const override{ ^ In file included from main.cpp:13: In file included from /usr/local/include/liboffsetfinder64/ibootpatchfinder64.hpp:12: In file included from /usr/local/include/liboffsetfinder64/patchfinder64.hpp:21: /usr/local/include/liboffsetfinder64/patch.hpp:27:36: error: expected ';' at end of declaration list patch(const patch& cpy) noexcept; ^ ; In file included from main.cpp:13: /usr/local/include/liboffsetfinder64/ibootpatchfinder64.hpp:28:35: error: expected ';' at end of declaration list bool has_kernel_load() noexcept; ^ ; /usr/local/include/liboffsetfinder64/ibootpatchfinder64.hpp:29:40: error: expected ';' at end of declaration list bool has_recovery_console() noexcept; ^ ; main.cpp:58:17: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] auto p = ibp.get_boot_arg_patch(custom_boot_args); ^ main.cpp:70:13: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] auto p = ibp.get_debug_enabled_patch(); ^ main.cpp:83:17: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] auto p = ibp.get_cmd_handler_patch(cmd_handler_str, cmd_handler_ptr); ^ main.cpp:94:17: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] auto p = ibp.get_unlock_nvram_patch(); ^ main.cpp:106:9: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] auto p = ibp.get_sigcheck_patch(); ^ main.cpp:121:10: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] for (auto p : patches) { ^ main.cpp:121:17: warning: range-based for loop is a C++11 extension [-Wc++11-extensions] for (auto p : patches) { ^ main.cpp:124:39: warning: format specifies type 'void *' but the argument has type 'tihmstar::offsetfinder64::loc_t' (aka 'unsigned long long') [-Wformat] printf("applying patch=%p : ",p._location); ~~ ^~~ %llu 13 warnings and 4 errors generated.

Anyone else getting the same issue?

mcurran-exploit commented 1 year ago

I cannot build liboffsetfinder64 and it broke my android-ndk/pacman database for some reason... FUN!! liboffsetfinder64_la-patchfinder64.lo Error 1 shit with make