tihmstar/libpatchfinder

vsegment.cpp errors

Closed this issue · 12 comments

hc20k commented

After i run autogen.sh and configure and try to make the project, I get these errors
https://pastebin.com/raw/WxsYrvdU

same here

same here as well

Same error

4Benj commented

Yep same

I get the same error as well when I try to build it with Xcode.

ok we get it vsegment.c is broken just wait until tihmstar fixes it

sqlgayment ask joe

almost but not quite fixed my compile errors:

now i get this:

vsegment.cpp: In member function 'tihmstar::offsetfinder64::loc_t tihmstar::offsetfinder64::vsegment::memmem(const void*, size_t)':
vsegment.cpp:40:22: error: '::memmem' has not been declared
     if ((rt = (loc_t)::memmem(_buf, _size, little, little_len))) {
                      ^

I'm trying to compile on a debian system.
Adding #include <string.h> to the top of vsegment.cpp and #include to the top of vmem.cpp got me past those errors.

Now I'm stuck on:

In file included from machopatchfinder64.cpp:9:

../include/liboffsetfinder64/machopatchfinder64.hpp:13:10: fatal error: mach-o/loader.h: No such file or directory
#include <mach-o/loader.h>
^~~~~~~~~~~~~~~~~
compilation terminated.

any ideas?

onny commented

I'm trying to compile on a debian system.
Adding #include <string.h> to the top of vsegment.cpp and #include to the top of vmem.cpp got me past those errors.

Now I'm stuck on:

In file included from machopatchfinder64.cpp:9:

../include/liboffsetfinder64/machopatchfinder64.hpp:13:10: fatal error: mach-o/loader.h: No such file or directory
#include <mach-o/loader.h>
^~~~~~~~~~~~~~~~~
compilation terminated.

any ideas?

Yep having the same issues. Looks like this does not work on Linux systems yet because of this MacOS dependency :(

I got this working on Linux by simply deleting the kernel and macho cpp and header files and removing them from the makefile because I only needed the iboot patcher

should be fixed in version 104