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

kernelpatchfinder64_iOS15.hpp:20:17: error: reference to ‘offset_t’ is ambiguous #27

Open LuckyHeroes opened 1 year ago

LuckyHeroes commented 1 year ago

hi tihmstar, im getting compiler errors spewing out, any luck compiling this build or am i missing something

In file included from kernelpatchfinder64.cpp:14:
kernelpatchfinder64_iOS15.hpp:20:17: error: reference to ‘offset_t’ is ambiguous
   20 |         virtual offset_t find_struct_offset_for_PACed_member(const char *strDesc) override;
      |                 ^~~~~~~~
In file included from ../../include/libpatchfinder/kernelpatchfinder/kernelpatchfinder64.hpp:13,
                 from kernelpatchfinder64.cpp:9:
../../include/libpatchfinder/kernelpatchfinder/kernelpatchfinder.hpp:20:19: note: candidates are: ‘using offset_t = tihmstar::libinsn::arm64::insn::loc_t’
   20 |             using offset_t = tihmstar::libinsn::arm64::insn::loc_t;
      |                   ^~~~~~~~
In file included from ../../include/libpatchfinder/machopatchfinder64.hpp:12,
                 from ../../include/libpatchfinder/kernelpatchfinder/kernelpatchfinder64.hpp:12,
                 from kernelpatchfinder64.cpp:9:
../../include/libpatchfinder/patchfinder64.hpp:30:19: note:                 ‘using offset_t = tihmstar::libinsn::arm64::insn::offset_t’
   30 |             using offset_t = tihmstar::libinsn::arm64::insn::offset_t;
      |                   ^~~~~~~~
In file included from kernelpatchfinder64.cpp:15:
kernelpatchfinder64_iOS16.hpp:20:17: error: reference to ‘offset_t’ is ambiguous
   20 |         virtual offset_t find_struct_kqworkloop_offset_kqwl_owner() override;
      |                 ^~~~~~~~
In file included from ../../include/libpatchfinder/kernelpatchfinder/kernelpatchfinder64.hpp:13,
                 from kernelpatchfinder64.cpp:9:
../../include/libpatchfinder/kernelpatchfinder/kernelpatchfinder.hpp:20:19: note: candidates are: ‘using offset_t = tihmstar::libinsn::arm64::insn::loc_t’
   20 |             using offset_t = tihmstar::libinsn::arm64::insn::loc_t;
      |                   ^~~~~~~~
In file included from ../../include/libpatchfinder/machopatchfinder64.hpp:12,
                 from ../../include/libpatchfinder/kernelpatchfinder/kernelpatchfinder64.hpp:12,
                 from kernelpatchfinder64.cpp:9:
../../include/libpatchfinder/patchfinder64.hpp:30:19: note:                 ‘using offset_t = tihmstar::libinsn::arm64::insn::offset_t’
   30 |             using offset_t = tihmstar::libinsn::arm64::insn::offset_t;
      |                   ^~~~~~~~
In file included from kernelpatchfinder64.cpp:15:
kernelpatchfinder64_iOS16.hpp:21:17: error: reference to ‘offset_t’ is ambiguous
   21 |         virtual offset_t find_struct_task_offset_thread_count() override;
      |                 ^~~~~~~~
In file included from ../../include/libpatchfinder/kernelpatchfinder/kernelpatchfinder64.hpp:13,
                 from kernelpatchfinder64.cpp:9:
../../include/libpatchfinder/kernelpatchfinder/kernelpatchfinder.hpp:20:19: note: candidates are: ‘using offset_t = tihmstar::libinsn::arm64::insn::loc_t’
   20 |             using offset_t = tihmstar::libinsn::arm64::insn::loc_t;
      |                   ^~~~~~~~
In file included from ../../include/libpatchfinder/machopatchfinder64.hpp:12,
                 from ../../include/libpatchfinder/kernelpatchfinder/kernelpatchfinder64.hpp:12,
                 from kernelpatchfinder64.cpp:9:
../../include/libpatchfinder/patchfinder64.hpp:30:19: note:                 ‘using offset_t = tihmstar::libinsn::arm64::insn::offset_t’
   30 |             using offset_t = tihmstar::libinsn::arm64::insn::offset_t;
      |                   ^~~~~~~~
In file included from kernelpatchfinder64.cpp:15:
kernelpatchfinder64_iOS16.hpp:22:17: error: reference to ‘offset_t’ is ambiguous
   22 |         virtual offset_t find_struct_thread_offset_map() override;
      |                 ^~~~~~~~
In file included from ../../include/libpatchfinder/kernelpatchfinder/kernelpatchfinder64.hpp:13,
                 from kernelpatchfinder64.cpp:9:
../../include/libpatchfinder/kernelpatchfinder/kernelpatchfinder.hpp:20:19: note: candidates are: ‘using offset_t = tihmstar::libinsn::arm64::insn::loc_t’
   20 |             using offset_t = tihmstar::libinsn::arm64::insn::loc_t;
      |                   ^~~~~~~~
In file included from ../../include/libpatchfinder/machopatchfinder64.hpp:12,
                 from ../../include/libpatchfinder/kernelpatchfinder/kernelpatchfinder64.hpp:12,
                 from kernelpatchfinder64.cpp:9:
../../include/libpatchfinder/patchfinder64.hpp:30:19: note:                 ‘using offset_t = tihmstar::libinsn::arm64::insn::offset_t’
   30 |             using offset_t = tihmstar::libinsn::arm64::insn::offset_t;
      |                   ^~~~~~~~
In file included from kernelpatchfinder64.cpp:15:
kernelpatchfinder64_iOS16.hpp:23:17: error: reference to ‘offset_t’ is ambiguous
   23 |         virtual offset_t find_struct_thread_offset_thread_id() override;
      |                 ^~~~~~~~
In file included from ../../include/libpatchfinder/kernelpatchfinder/kernelpatchfinder64.hpp:13,
                 from kernelpatchfinder64.cpp:9:
../../include/libpatchfinder/kernelpatchfinder/kernelpatchfinder.hpp:20:19: note: candidates are: ‘using offset_t = tihmstar::libinsn::arm64::insn::loc_t’
   20 |             using offset_t = tihmstar::libinsn::arm64::insn::loc_t;
      |                   ^~~~~~~~
In file included from ../../include/libpatchfinder/machopatchfinder64.hpp:12,
                 from ../../include/libpatchfinder/kernelpatchfinder/kernelpatchfinder64.hpp:12,
                 from kernelpatchfinder64.cpp:9:
../../include/libpatchfinder/patchfinder64.hpp:30:19: note:                 ‘using offset_t = tihmstar::libinsn::arm64::insn::offset_t’
   30 |             using offset_t = tihmstar::libinsn::arm64::insn::offset_t;
      |                   ^~~~~~~~
In file included from kernelpatchfinder64.cpp:15:
kernelpatchfinder64_iOS16.hpp:24:17: error: reference to ‘offset_t’ is ambiguous
   24 |         virtual offset_t find_struct__vm_map_offset_vmu1_lowest_unnestable_start() override;
      |                 ^~~~~~~~
In file included from ../../include/libpatchfinder/kernelpatchfinder/kernelpatchfinder64.hpp:13,
                 from kernelpatchfinder64.cpp:9:
../../include/libpatchfinder/kernelpatchfinder/kernelpatchfinder.hpp:20:19: note: candidates are: ‘using offset_t = tihmstar::libinsn::arm64::insn::loc_t’
   20 |             using offset_t = tihmstar::libinsn::arm64::insn::loc_t;
      |                   ^~~~~~~~
In file included from ../../include/libpatchfinder/machopatchfinder64.hpp:12,
                 from ../../include/libpatchfinder/kernelpatchfinder/kernelpatchfinder64.hpp:12,
                 from kernelpatchfinder64.cpp:9:
../../include/libpatchfinder/patchfinder64.hpp:30:19: note:                 ‘using offset_t = tihmstar::libinsn::arm64::insn::offset_t’
   30 |             using offset_t = tihmstar::libinsn::arm64::insn::offset_t;
      |                   ^~~~~~~~
In file included from kernelpatchfinder64.cpp:15:
kernelpatchfinder64_iOS16.hpp:26:17: error: reference to ‘offset_t’ is ambiguous
   26 |         virtual offset_t find_elementsize_for_zone(const char *zonedesc) override;
      |                 ^~~~~~~~
In file included from ../../include/libpatchfinder/kernelpatchfinder/kernelpatchfinder64.hpp:13,
                 from kernelpatchfinder64.cpp:9:
../../include/libpatchfinder/kernelpatchfinder/kernelpatchfinder.hpp:20:19: note: candidates are: ‘using offset_t = tihmstar::libinsn::arm64::insn::loc_t’
   20 |             using offset_t = tihmstar::libinsn::arm64::insn::loc_t;
      |                   ^~~~~~~~
In file included from ../../include/libpatchfinder/machopatchfinder64.hpp:12,
                 from ../../include/libpatchfinder/kernelpatchfinder/kernelpatchfinder64.hpp:12,
                 from kernelpatchfinder64.cpp:9:
../../include/libpatchfinder/patchfinder64.hpp:30:19: note:                 ‘using offset_t = tihmstar::libinsn::arm64::insn::offset_t’
   30 |             using offset_t = tihmstar::libinsn::arm64::insn::offset_t;
      |                   ^~~~~~~~
In file included from kernelpatchfinder64.cpp:15:
kernelpatchfinder64_iOS16.hpp:28:17: error: reference to ‘offset_t’ is ambiguous
   28 |         virtual offset_t find_sizeof_struct_proc() override;
      |                 ^~~~~~~~
In file included from ../../include/libpatchfinder/kernelpatchfinder/kernelpatchfinder64.hpp:13,
                 from kernelpatchfinder64.cpp:9:
../../include/libpatchfinder/kernelpatchfinder/kernelpatchfinder.hpp:20:19: note: candidates are: ‘using offset_t = tihmstar::libinsn::arm64::insn::loc_t’
   20 |             using offset_t = tihmstar::libinsn::arm64::insn::loc_t;
      |                   ^~~~~~~~
In file included from ../../include/libpatchfinder/machopatchfinder64.hpp:12,
                 from ../../include/libpatchfinder/kernelpatchfinder/kernelpatchfinder64.hpp:12,
                 from kernelpatchfinder64.cpp:9:
../../include/libpatchfinder/patchfinder64.hpp:30:19: note:                 ‘using offset_t = tihmstar::libinsn::arm64::insn::offset_t’
   30 |             using offset_t = tihmstar::libinsn::arm64::insn::offset_t;
      |                   ^~~~~~~~
In file included from kernelpatchfinder64.cpp:15:
kernelpatchfinder64_iOS16.hpp:29:17: error: reference to ‘offset_t’ is ambiguous
   29 |         virtual offset_t find_sizeof_struct_task() override;
      |                 ^~~~~~~~
In file included from ../../include/libpatchfinder/kernelpatchfinder/kernelpatchfinder64.hpp:13,
                 from kernelpatchfinder64.cpp:9:
../../include/libpatchfinder/kernelpatchfinder/kernelpatchfinder.hpp:20:19: note: candidates are: ‘using offset_t = tihmstar::libinsn::arm64::insn::loc_t’
   20 |             using offset_t = tihmstar::libinsn::arm64::insn::loc_t;
      |                   ^~~~~~~~
In file included from ../../include/libpatchfinder/machopatchfinder64.hpp:12,
                 from ../../include/libpatchfinder/kernelpatchfinder/kernelpatchfinder64.hpp:12,
                 from kernelpatchfinder64.cpp:9:
../../include/libpatchfinder/patchfinder64.hpp:30:19: note:                 ‘using offset_t = tihmstar::libinsn::arm64::insn::offset_t’
   30 |             using offset_t = tihmstar::libinsn::arm64::insn::offset_t;
      |                   ^~~~~~~~
In file included from kernelpatchfinder64.cpp:15:
kernelpatchfinder64_iOS16.hpp:30:17: error: reference to ‘offset_t’ is ambiguous
   30 |         virtual offset_t find_sizeof_struct_thread() override;
      |                 ^~~~~~~~
In file included from ../../include/libpatchfinder/kernelpatchfinder/kernelpatchfinder64.hpp:13,
                 from kernelpatchfinder64.cpp:9:
../../include/libpatchfinder/kernelpatchfinder/kernelpatchfinder.hpp:20:19: note: candidates are: ‘using offset_t = tihmstar::libinsn::arm64::insn::loc_t’
   20 |             using offset_t = tihmstar::libinsn::arm64::insn::loc_t;
      |                   ^~~~~~~~
In file included from ../../include/libpatchfinder/machopatchfinder64.hpp:12,
                 from ../../include/libpatchfinder/kernelpatchfinder/kernelpatchfinder64.hpp:12,
                 from kernelpatchfinder64.cpp:9:
../../include/libpatchfinder/patchfinder64.hpp:30:19: note:                 ‘using offset_t = tihmstar::libinsn::arm64::insn::offset_t’
   30 |             using offset_t = tihmstar::libinsn::arm64::insn::offset_t;
      |                   ^~~~~~~~
In file included from kernelpatchfinder64.cpp:15:
kernelpatchfinder64_iOS16.hpp:31:17: error: reference to ‘offset_t’ is ambiguous
   31 |         virtual offset_t find_sizeof_struct_uthread() override;
      |                 ^~~~~~~~
In file included from ../../include/libpatchfinder/kernelpatchfinder/kernelpatchfinder64.hpp:13,
                 from kernelpatchfinder64.cpp:9:
../../include/libpatchfinder/kernelpatchfinder/kernelpatchfinder.hpp:20:19: note: candidates are: ‘using offset_t = tihmstar::libinsn::arm64::insn::loc_t’
   20 |             using offset_t = tihmstar::libinsn::arm64::insn::loc_t;
      |                   ^~~~~~~~
In file included from ../../include/libpatchfinder/machopatchfinder64.hpp:12,
                 from ../../include/libpatchfinder/kernelpatchfinder/kernelpatchfinder64.hpp:12,
                 from kernelpatchfinder64.cpp:9:
../../include/libpatchfinder/patchfinder64.hpp:30:19: note:                 ‘using offset_t = tihmstar::libinsn::arm64::insn::offset_t’
   30 |             using offset_t = tihmstar::libinsn::arm64::insn::offset_t;
      |                   ^~~~~~~~
In file included from kernelpatchfinder64.cpp:15:
kernelpatchfinder64_iOS16.hpp:32:17: error: reference to ‘offset_t’ is ambiguous
   32 |         virtual offset_t find_sizeof_struct__vm_map() override;
      |                 ^~~~~~~~
In file included from ../../include/libpatchfinder/kernelpatchfinder/kernelpatchfinder64.hpp:13,
                 from kernelpatchfinder64.cpp:9:
../../include/libpatchfinder/kernelpatchfinder/kernelpatchfinder.hpp:20:19: note: candidates are: ‘using offset_t = tihmstar::libinsn::arm64::insn::loc_t’
   20 |             using offset_t = tihmstar::libinsn::arm64::insn::loc_t;
      |                   ^~~~~~~~
In file included from ../../include/libpatchfinder/machopatchfinder64.hpp:12,
                 from ../../include/libpatchfinder/kernelpatchfinder/kernelpatchfinder64.hpp:12,
                 from kernelpatchfinder64.cpp:9:
../../include/libpatchfinder/patchfinder64.hpp:30:19: note:                 ‘using offset_t = tihmstar::libinsn::arm64::insn::offset_t’
   30 |             using offset_t = tihmstar::libinsn::arm64::insn::offset_t;
      |