Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link with Security & IOKit frameworks in MacOS #169

Merged
merged 1 commit into from
Oct 13, 2024

Conversation

Xoffio
Copy link
Contributor

@Xoffio Xoffio commented Oct 11, 2024

When trying to compile some examples in macos I get errors like the next one:

          Undefined symbols for architecture x86_64:
            "_IOCreatePlugInInterfaceForService", referenced from:
                _darwin_device_from_service in libfrida-core.a[471](libusb_os_darwin_usb.c.o)
                _darwin_claim_interface in libfrida-core.a[471](libusb_os_darwin_usb.c.o)
            "_IOIteratorNext", referenced from:
                _darwin_init in libfrida-core.a[471](libusb_os_darwin_usb.c.o)
                _darwin_devices_detached in libfrida-core.a[471](libusb_os_darwin_usb.c.o)
                _darwin_devices_attached in libfrida-core.a[471](libusb_os_darwin_usb.c.o)
                _darwin_clear_iterator in libfrida-core.a[471](libusb_os_darwin_usb.c.o)
                _process_new_device in libfrida-core.a[471](libusb_os_darwin_usb.c.o)
                _darwin_get_interface in libfrida-core.a[471](libusb_os_darwin_usb.c.o)
            "_IOKitWaitQuiet", referenced from:
                _darwin_hotplug_poll in libfrida-core.a[471](libusb_os_darwin_usb.c.o)
            "_IONotificationPortCreate", referenced from:
                _darwin_event_thread_main in libfrida-core.a[471](libusb_os_darwin_usb.c.o)
            "_IONotificationPortDestroy", referenced from:
                _darwin_event_thread_main in libfrida-core.a[471](libusb_os_darwin_usb.c.o)
            "_IONotificationPortGetRunLoopSource", referenced from:
                _darwin_event_thread_main in libfrida-core.a[471](libusb_os_darwin_usb.c.o)
            "_IOObjectRelease", referenced from:
                _darwin_init in libfrida-core.a[471](libusb_os_darwin_usb.c.o)
                _darwin_init in libfrida-core.a[471](libusb_os_darwin_usb.c.o)
                _darwin_kernel_driver_active in libfrida-core.a[471](libusb_os_darwin_usb.c.o)
                _darwin_kernel_driver_active in libfrida-core.a[471](libusb_os_darwin_usb.c.o)
                _darwin_event_thread_main in libfrida-core.a[471](libusb_os_darwin_usb.c.o)
                _darwin_event_thread_main in libfrida-core.a[471](libusb_os_darwin_usb.c.o)
                _darwin_devices_detached in libfrida-core.a[471](libusb_os_darwin_usb.c.o)
                ...
            "_IOObjectRetain", referenced from:
                _darwin_get_cached_device in libfrida-core.a[471](libusb_os_darwin_usb.c.o)
            "_IORegistryEntryCreateCFProperty", referenced from:
                _get_ioregistry_value_number in libfrida-core.a[471](libusb_os_darwin_usb.c.o)
                _darwin_get_cached_device in libfrida-core.a[471](libusb_os_darwin_usb.c.o)
            "_IORegistryEntryGetChildEntry", referenced from:
                _darwin_kernel_driver_active in libfrida-core.a[471](libusb_os_darwin_usb.c.o)
            "_IORegistryEntryGetParentEntry", referenced from:
                _darwin_get_cached_device in libfrida-core.a[471](libusb_os_darwin_usb.c.o)
                _darwin_get_cached_device in libfrida-core.a[471](libusb_os_darwin_usb.c.o)
            "_IOServiceAddMatchingNotification", referenced from:
                _darwin_event_thread_main in libfrida-core.a[471](libusb_os_darwin_usb.c.o)
                _darwin_event_thread_main in libfrida-core.a[471](libusb_os_darwin_usb.c.o)
            "_IOServiceAuthorize", referenced from:
                _darwin_detach_kernel_driver in libfrida-core.a[471](libusb_os_darwin_usb.c.o)
            "_IOServiceGetMatchingService", referenced from:
                _usb_find_interface_matching_location in libfrida-core.a[471](libusb_os_darwin_usb.c.o)
            "_IOServiceGetMatchingServices", referenced from:
                _darwin_init in libfrida-core.a[471](libusb_os_darwin_usb.c.o)
            "_IOServiceMatching", referenced from:
                _darwin_init in libfrida-core.a[471](libusb_os_darwin_usb.c.o)
                _darwin_event_thread_main in libfrida-core.a[471](libusb_os_darwin_usb.c.o)
                _darwin_event_thread_main in libfrida-core.a[471](libusb_os_darwin_usb.c.o)
                _usb_find_interface_matching_location in libfrida-core.a[471](libusb_os_darwin_usb.c.o)
            "_SecTaskCopyValueForEntitlement", referenced from:
                _darwin_detach_kernel_driver in libfrida-core.a[471](libusb_os_darwin_usb.c.o)
            "_SecTaskCreateFromSelf", referenced from:
                _darwin_detach_kernel_driver in libfrida-core.a[471](libusb_os_darwin_usb.c.o)
          ld: symbol(s) not found for architecture x86_64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)
          

error: could not compile `list_exports` (bin "list_exports") due to 1 previous error
~/Documents/hexomorph/src-tauri/frida/frida-rust/frida-rust/examples/core/list_exports> 

This has something to do with this -> frida/frida#2910

@s1341 s1341 merged commit 0579c9e into frida:main Oct 13, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants