xlab / c-for-go

Automatic C-Go Bindings Generator for Go Programming Language
https://c.for-go.com
MIT License
1.5k stars 119 forks source link

Security framework error symbol not found #105

Closed roynalnaruto closed 3 years ago

roynalnaruto commented 3 years ago

I have setup a Go-Rust FFI using c-for-go. I can successfully compile the Rust release as well as the C interface for it.

On trying to compile the generated .go files, I get the following error:

Undefined symbols for architecture x86_64:
  "_CFArrayCreate", referenced from:
      core_foundation::array::CFArray$LT$T$GT$::from_CFTypes::h139ee5f9f1fb60df in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.12.rcgu.o)
      core_foundation::array::CFArray$LT$T$GT$::from_CFTypes::hf841cf9a6832823b in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.12.rcgu.o)
  "_CFArrayGetCount", referenced from:
      _$LT$security_framework..secure_transport..SslContext$u20$as$u20$security_framework..os..macos..secure_transport..SslContextExt$GT$::certificate_authorities::hf0d00683432f2ae7 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
      _$LT$$RF$core_foundation..array..CFArray$LT$T$GT$$u20$as$u20$core..iter..traits..collect..IntoIterator$GT$::into_iter::h4a17f76bbe3668fd in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.12.rcgu.o)
      security_framework::import_export::Pkcs12ImportOptions::import::hab36957a96df08e6 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.10.rcgu.o)
      security_framework::os::macos::import_export::ImportOptions::import::hf9dc7a90482f6cad in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.8.rcgu.o)
      _hid_enumerate in libsolana_ffi.a(hid.o)
  "_CFArrayGetTypeID", referenced from:
      _hid_enumerate in libsolana_ffi.a(hid.o)
  "_CFArrayGetValueAtIndex", referenced from:
      _$LT$core_foundation..array..CFArrayIterator$LT$T$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$::next::h51d9824a8422b497 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.12.rcgu.o)
      _$LT$core_foundation..array..CFArrayIterator$LT$T$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$::next::h653c358da5db304a in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.12.rcgu.o)
      _$LT$core_foundation..array..CFArrayIterator$LT$T$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$::next::h96ecd3b6d3dcefd6 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.12.rcgu.o)
      _$LT$security_framework..os..macos..certificate..PropertySectionIter$u20$as$u20$core..iter..traits..iterator..Iterator$GT$::next::hfb558a53c6067e5a in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.12.rcgu.o)
      security_framework::import_export::Pkcs12ImportOptions::import::hab36957a96df08e6 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.10.rcgu.o)
      _$LT$alloc..vec..Vec$LT$T$GT$$u20$as$u20$alloc..vec..SpecExtend$LT$T$C$I$GT$$GT$::from_iter::h8dbb3dc9e6247662 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.1.rcgu.o)
      security_framework::os::macos::import_export::ImportOptions::import::hf9dc7a90482f6cad in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.8.rcgu.o)
      ...
  "_CFAttributedStringCreateMutable", referenced from:
      _$LT$core_foundation..attributed_string..CFMutableAttributedString$u20$as$u20$core..default..Default$GT$::default::h8f230b48d7a6784b in libsolana_ffi.a(core_foundation-eea02ab78b8abb94.core_foundation.zvipigm6-cgu.5.rcgu.o)
  "_CFCopyDescription", referenced from:
      _$LT$core_foundation..data..CFData$u20$as$u20$core..fmt..Debug$GT$::fmt::hcec8004bc5e05d9d in libsolana_ffi.a(core_foundation-eea02ab78b8abb94.core_foundation.zvipigm6-cgu.15.rcgu.o)
      _$LT$core_foundation..base..CFType$u20$as$u20$core..fmt..Debug$GT$::fmt::hb1355efa4f8e6b25 in libsolana_ffi.a(core_foundation-eea02ab78b8abb94.core_foundation.zvipigm6-cgu.7.rcgu.o)
      _$LT$core_foundation..timezone..CFTimeZone$u20$as$u20$core..fmt..Debug$GT$::fmt::h49b7e87b39c4fc55 in libsolana_ffi.a(core_foundation-eea02ab78b8abb94.core_foundation.zvipigm6-cgu.5.rcgu.o)
  "_CFDataCreate", referenced from:
      core_foundation::data::CFData::from_buffer::hfd90dacf8ab880a7 in libsolana_ffi.a(core_foundation-eea02ab78b8abb94.core_foundation.zvipigm6-cgu.15.rcgu.o)
  "_CFDataGetBytePtr", referenced from:
      security_framework::certificate::SecCertificate::to_der::hdffee19421a538e1 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.15.rcgu.o)
      security_framework::import_export::Pkcs12ImportOptions::import::hab36957a96df08e6 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.10.rcgu.o)
  "_CFDataGetLength", referenced from:
      security_framework::certificate::SecCertificate::to_der::hdffee19421a538e1 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.15.rcgu.o)
      security_framework::import_export::Pkcs12ImportOptions::import::hab36957a96df08e6 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.10.rcgu.o)
  "_CFDateGetAbsoluteTime", referenced from:
      core_foundation::timezone::CFTimeZone::seconds_from_gmt::h0727b123cf10413b in libsolana_ffi.a(core_foundation-eea02ab78b8abb94.core_foundation.zvipigm6-cgu.5.rcgu.o)
  "_CFDictionaryCreate", referenced from:
      core_foundation::dictionary::CFDictionary$LT$K$C$V$GT$::from_CFType_pairs::h4872e635be305089 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.9.rcgu.o)
      core_foundation::dictionary::CFDictionary$LT$K$C$V$GT$::from_CFType_pairs::he8e9b653331490a6 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.9.rcgu.o)
  "_CFDictionaryCreateMutable", referenced from:
      _hid_enumerate in libsolana_ffi.a(hid.o)
  "_CFDictionaryGetCount", referenced from:
      core_foundation::dictionary::CFDictionary$LT$K$C$V$GT$::get_keys_and_values::hfd14690aea46d993 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.9.rcgu.o)
  "_CFDictionaryGetKeysAndValues", referenced from:
      core_foundation::dictionary::CFDictionary$LT$K$C$V$GT$::get_keys_and_values::hfd14690aea46d993 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.9.rcgu.o)
  "_CFDictionaryGetTypeID", referenced from:
      _hid_enumerate in libsolana_ffi.a(hid.o)
  "_CFDictionaryGetValueIfPresent", referenced from:
      security_framework::os::macos::certificate::CertificateProperties::get::h144157541c723a40 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.12.rcgu.o)
      security_framework::os::macos::certificate::CertificateProperty::label::h45900dc55d1fb147 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.12.rcgu.o)
      security_framework::os::macos::certificate::CertificateProperty::get::h9315c722ab7fe756 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.12.rcgu.o)
      security_framework::import_export::Pkcs12ImportOptions::import::hab36957a96df08e6 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.10.rcgu.o)
      _hid_enumerate in libsolana_ffi.a(hid.o)
  "_CFDictionarySetValue", referenced from:
      _hid_enumerate in libsolana_ffi.a(hid.o)
  "_CFEqual", referenced from:
      security_framework::os::macos::certificate::CertificateProperty::get::h9315c722ab7fe756 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.12.rcgu.o)
      _$LT$core_foundation..string..CFString$u20$as$u20$core..cmp..PartialEq$LT$$RF$str$GT$$GT$::eq::h9d6cf5f22144ccd9 in libsolana_ffi.a(core_foundation-eea02ab78b8abb94.core_foundation.zvipigm6-cgu.11.rcgu.o)
  "_CFGetTypeID", referenced from:
      security_framework::os::macos::import_export::ImportOptions::import::hf9dc7a90482f6cad in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.8.rcgu.o)
      _hid_enumerate in libsolana_ffi.a(hid.o)
      _hid_open_path in libsolana_ffi.a(hid.o)
      _create_device_info_with_usage in libsolana_ffi.a(hid.o)
  "_CFNumberCreate", referenced from:
      _hid_enumerate in libsolana_ffi.a(hid.o)
  "_CFNumberGetTypeID", referenced from:
      _hid_enumerate in libsolana_ffi.a(hid.o)
      _hid_open_path in libsolana_ffi.a(hid.o)
      _create_device_info_with_usage in libsolana_ffi.a(hid.o)
  "_CFNumberGetValue", referenced from:
      _hid_enumerate in libsolana_ffi.a(hid.o)
      _hid_open_path in libsolana_ffi.a(hid.o)
      _create_device_info_with_usage in libsolana_ffi.a(hid.o)
  "_CFRelease", referenced from:
      core::ptr::drop_in_place::h719a5c3ab140fc7e in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
      _$LT$security_framework..secure_transport..SslContext$u20$as$u20$security_framework..os..macos..secure_transport..SslContextExt$GT$::certificate_authorities::hf0d00683432f2ae7 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
      _$LT$security_framework..secure_transport..SslContext$u20$as$u20$security_framework..os..macos..secure_transport..SslContextExt$GT$::set_certificate_authorities::h17a6d4cd2d2e4f36 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
      _$LT$security_framework..secure_transport..SslContext$u20$as$u20$security_framework..os..macos..secure_transport..SslContextExt$GT$::add_certificate_authorities::hbc5b9feb9410d025 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
      security_framework::secure_transport::SslContext::set_certificate::h63ce1fa59114b3c1 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
      security_framework::secure_transport::ClientBuilder::anchor_certificates::hc1cee157fcacb2c6 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
      security_framework::secure_transport::ClientBuilder::identity::ha4cfcf34d37d1f4c in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
      ...
  "_CFRetain", referenced from:
      security_framework::secure_transport::SslContext::set_certificate::h63ce1fa59114b3c1 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
      security_framework::secure_transport::ClientBuilder::identity::ha4cfcf34d37d1f4c in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
      security_framework::secure_transport::ServerBuilder::new::h080c95c5513a05b6 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
      security_framework::os::macos::certificate_oids::CertificateOid::to_str::h1f6f6fb82d749492 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.15.rcgu.o)
      security_framework::os::macos::passwords::_$LT$impl$u20$security_framework..os..macos..keychain..SecKeychain$GT$::find_generic_password::hbc36b3644ec48fde in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.15.rcgu.o)
      security_framework::os::macos::passwords::_$LT$impl$u20$security_framework..os..macos..keychain..SecKeychain$GT$::find_internet_password::h996317b0eea2f925 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.15.rcgu.o)
      security_framework::os::macos::passwords::_$LT$impl$u20$security_framework..os..macos..keychain..SecKeychain$GT$::set_internet_password::hafa89885eae69014 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.15.rcgu.o)
      ...
  "_CFRunLoopAddSource", referenced from:
      _read_thread in libsolana_ffi.a(hid.o)
  "_CFRunLoopGetCurrent", referenced from:
      _hid_init in libsolana_ffi.a(hid.o)
      _hid_enumerate in libsolana_ffi.a(hid.o)
      _hid_open_path in libsolana_ffi.a(hid.o)
      _read_thread in libsolana_ffi.a(hid.o)
  "_CFRunLoopGetMain", referenced from:
      _hid_close in libsolana_ffi.a(hid.o)
  "_CFRunLoopRunInMode", referenced from:
      _hid_enumerate in libsolana_ffi.a(hid.o)
      _read_thread in libsolana_ffi.a(hid.o)
  "_CFRunLoopSourceCreate", referenced from:
      _read_thread in libsolana_ffi.a(hid.o)
  "_CFRunLoopSourceSignal", referenced from:
      _hid_close in libsolana_ffi.a(hid.o)
  "_CFRunLoopStop", referenced from:
      _hid_device_removal_callback in libsolana_ffi.a(hid.o)
      _perform_signal_callback in libsolana_ffi.a(hid.o)
  "_CFRunLoopWakeUp", referenced from:
      _hid_close in libsolana_ffi.a(hid.o)
  "_CFSetGetCount", referenced from:
      _hid_enumerate in libsolana_ffi.a(hid.o)
  "_CFSetGetValues", referenced from:
      _hid_enumerate in libsolana_ffi.a(hid.o)
  "_CFStringCreateWithBytes", referenced from:
      security_framework::policy::SecPolicy::create_ssl::h928c361623552ae2 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.12.rcgu.o)
      security_framework::import_export::Pkcs12ImportOptions::passphrase::h51070082b6d4519f in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.10.rcgu.o)
      security_framework::os::macos::import_export::ImportOptions::filename::h9001adb550c4c853 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.8.rcgu.o)
      security_framework::os::macos::import_export::ImportOptions::passphrase::h768bf43ffb2e0cac in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.8.rcgu.o)
      security_framework::os::macos::import_export::ImportOptions::alert_title::hac71cf00b098f88c in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.8.rcgu.o)
      security_framework::os::macos::import_export::ImportOptions::alert_prompt::h9885124829c1f8de in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.8.rcgu.o)
  "_CFStringCreateWithBytesNoCopy", referenced from:
      _$LT$core_foundation..string..CFString$u20$as$u20$core..cmp..PartialEq$LT$$RF$str$GT$$GT$::eq::h9d6cf5f22144ccd9 in libsolana_ffi.a(core_foundation-eea02ab78b8abb94.core_foundation.zvipigm6-cgu.11.rcgu.o)
  "_CFStringCreateWithCString", referenced from:
      _hid_open_path in libsolana_ffi.a(hid.o)
  "_CFStringGetBytes", referenced from:
      core_foundation::string::_$LT$impl$u20$core..convert..From$LT$$RF$core_foundation..string..CFString$GT$$u20$for$u20$alloc..borrow..Cow$LT$str$GT$$GT$::from::h94143081e10ff8d8 in libsolana_ffi.a(core_foundation-eea02ab78b8abb94.core_foundation.zvipigm6-cgu.1.rcgu.o)
      _hid_get_manufacturer_string in libsolana_ffi.a(hid.o)
      _hid_get_product_string in libsolana_ffi.a(hid.o)
      _hid_get_serial_number_string in libsolana_ffi.a(hid.o)
      _create_device_info_with_usage in libsolana_ffi.a(hid.o)
  "_CFStringGetCStringPtr", referenced from:
      core_foundation::string::_$LT$impl$u20$core..convert..From$LT$$RF$core_foundation..string..CFString$GT$$u20$for$u20$alloc..borrow..Cow$LT$str$GT$$GT$::from::h94143081e10ff8d8 in libsolana_ffi.a(core_foundation-eea02ab78b8abb94.core_foundation.zvipigm6-cgu.1.rcgu.o)
  "_CFStringGetLength", referenced from:
      core_foundation::string::_$LT$impl$u20$core..convert..From$LT$$RF$core_foundation..string..CFString$GT$$u20$for$u20$alloc..borrow..Cow$LT$str$GT$$GT$::from::h94143081e10ff8d8 in libsolana_ffi.a(core_foundation-eea02ab78b8abb94.core_foundation.zvipigm6-cgu.1.rcgu.o)
      _hid_get_manufacturer_string in libsolana_ffi.a(hid.o)
      _hid_get_product_string in libsolana_ffi.a(hid.o)
      _hid_get_serial_number_string in libsolana_ffi.a(hid.o)
      _create_device_info_with_usage in libsolana_ffi.a(hid.o)
  "_CFTimeZoneCopyDefault", referenced from:
      _$LT$core_foundation..timezone..CFTimeZone$u20$as$u20$core..default..Default$GT$::default::h270ddf7df954ecdd in libsolana_ffi.a(core_foundation-eea02ab78b8abb94.core_foundation.zvipigm6-cgu.5.rcgu.o)
  "_CFTimeZoneGetName", referenced from:
      core_foundation::timezone::CFTimeZone::name::h18fa717d860126d2 in libsolana_ffi.a(core_foundation-eea02ab78b8abb94.core_foundation.zvipigm6-cgu.5.rcgu.o)
  "_CFTimeZoneGetSecondsFromGMT", referenced from:
      core_foundation::timezone::CFTimeZone::seconds_from_gmt::h0727b123cf10413b in libsolana_ffi.a(core_foundation-eea02ab78b8abb94.core_foundation.zvipigm6-cgu.5.rcgu.o)
  "_IOHIDDeviceClose", referenced from:
      _hid_close in libsolana_ffi.a(hid.o)
  "_IOHIDDeviceCreate", referenced from:
      _hid_open_path in libsolana_ffi.a(hid.o)
  "_IOHIDDeviceGetProperty", referenced from:
      _hid_enumerate in libsolana_ffi.a(hid.o)
      _hid_open_path in libsolana_ffi.a(hid.o)
      _hid_get_manufacturer_string in libsolana_ffi.a(hid.o)
      _hid_get_product_string in libsolana_ffi.a(hid.o)
      _hid_get_serial_number_string in libsolana_ffi.a(hid.o)
      _create_device_info_with_usage in libsolana_ffi.a(hid.o)
  "_IOHIDDeviceGetReport", referenced from:
      _hid_get_feature_report in libsolana_ffi.a(hid.o)
      _hid_get_input_report in libsolana_ffi.a(hid.o)
  "_IOHIDDeviceOpen", referenced from:
      _hid_open_path in libsolana_ffi.a(hid.o)
  "_IOHIDDeviceRegisterInputReportCallback", referenced from:
      _hid_open_path in libsolana_ffi.a(hid.o)
      _hid_close in libsolana_ffi.a(hid.o)
  "_IOHIDDeviceRegisterRemovalCallback", referenced from:
      _hid_open_path in libsolana_ffi.a(hid.o)
      _hid_close in libsolana_ffi.a(hid.o)
  "_IOHIDDeviceScheduleWithRunLoop", referenced from:
      _read_thread in libsolana_ffi.a(hid.o)
      _hid_close in libsolana_ffi.a(hid.o)
  "_IOHIDDeviceSetReport", referenced from:
      _hid_write in libsolana_ffi.a(hid.o)
      _hid_send_feature_report in libsolana_ffi.a(hid.o)
  "_IOHIDDeviceUnscheduleFromRunLoop", referenced from:
      _hid_close in libsolana_ffi.a(hid.o)
  "_IOHIDManagerClose", referenced from:
      _hid_exit in libsolana_ffi.a(hid.o)
  "_IOHIDManagerCopyDevices", referenced from:
      _hid_enumerate in libsolana_ffi.a(hid.o)
  "_IOHIDManagerCreate", referenced from:
      _hid_init in libsolana_ffi.a(hid.o)
      _hid_enumerate in libsolana_ffi.a(hid.o)
      _hid_open_path in libsolana_ffi.a(hid.o)
  "_IOHIDManagerScheduleWithRunLoop", referenced from:
      _hid_init in libsolana_ffi.a(hid.o)
      _hid_enumerate in libsolana_ffi.a(hid.o)
      _hid_open_path in libsolana_ffi.a(hid.o)
  "_IOHIDManagerSetDeviceMatching", referenced from:
      _hid_init in libsolana_ffi.a(hid.o)
      _hid_enumerate in libsolana_ffi.a(hid.o)
      _hid_open_path in libsolana_ffi.a(hid.o)
  "_IOObjectRelease", referenced from:
      _hid_open_path in libsolana_ffi.a(hid.o)
  "_IORegistryEntryFromPath", referenced from:
      _hid_open_path in libsolana_ffi.a(hid.o)
  "_IORegistryEntryGetPath", referenced from:
      _create_device_info_with_usage in libsolana_ffi.a(hid.o)
  "_NSAppKitVersionNumber", referenced from:
      _hid_init in libsolana_ffi.a(hid.o)
      _hid_enumerate in libsolana_ffi.a(hid.o)
      _hid_open_path in libsolana_ffi.a(hid.o)
  "_SSLCopyCertificateAuthorities", referenced from:
      _$LT$security_framework..secure_transport..SslContext$u20$as$u20$security_framework..os..macos..secure_transport..SslContextExt$GT$::certificate_authorities::hf0d00683432f2ae7 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
  "_SSLCopyPeerTrust", referenced from:
      security_framework::secure_transport::SslContext::peer_trust2::h36ce380aa3858389 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
  "_SSLCreateContext", referenced from:
      security_framework::secure_transport::SslContext::new::hf221562f4ea8680c in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
  "_SSLGetBufferedReadSize", referenced from:
      security_framework::secure_transport::SslContext::buffered_read_size::he938637c84a8dff6 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
  "_SSLGetClientCertificateState", referenced from:
      security_framework::secure_transport::SslContext::client_certificate_state::h2c1e551206f5a761 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
  "_SSLGetConnection", referenced from:
      tungstenite::client::connect::h91d1ebd85373a5ab in libsolana_ffi.a(solana_client-ccd3b5ccb9c5561c.solana_client.91z3s25e-cgu.6.rcgu.o)
      security_framework::secure_transport::SslStream$LT$S$GT$::get_mut::h79f0a75c70a8fcd3 in libsolana_ffi.a(solana_client-ccd3b5ccb9c5561c.solana_client.91z3s25e-cgu.8.rcgu.o)
      security_framework::secure_transport::SslStream$LT$S$GT$::get_error::h898ead6306201a22 (.llvm.7482975010223773704) in libsolana_ffi.a(solana_client-ccd3b5ccb9c5561c.solana_client.91z3s25e-cgu.8.rcgu.o)
      _$LT$tungstenite..stream..Stream$LT$S$C$T$GT$$u20$as$u20$std..io..Write$GT$::flush::hf28e4ec1c934e8eb in libsolana_ffi.a(solana_client-ccd3b5ccb9c5561c.solana_client.91z3s25e-cgu.8.rcgu.o)
      _$LT$tungstenite..stream..Stream$LT$S$C$T$GT$$u20$as$u20$tungstenite..stream..NoDelay$GT$::set_nodelay::hb192e2b09ec0f42d in libsolana_ffi.a(solana_client-ccd3b5ccb9c5561c.solana_client.91z3s25e-cgu.8.rcgu.o)
      _$LT$security_framework..secure_transport..SslStream$LT$S$GT$$u20$as$u20$std..io..Write$GT$::flush::h21cab5910bd24535 in libsolana_ffi.a(solana_client-ccd3b5ccb9c5561c.solana_client.91z3s25e-cgu.8.rcgu.o)
      _$LT$security_framework..secure_transport..SslStream$LT$S$GT$$u20$as$u20$core..ops..drop..Drop$GT$::drop::hee0eadff5f63d079 in libsolana_ffi.a(solana_client-ccd3b5ccb9c5561c.solana_client.91z3s25e-cgu.8.rcgu.o)
      ...
  "_SSLGetDiffieHellmanParams", referenced from:
      _$LT$security_framework..secure_transport..SslContext$u20$as$u20$security_framework..os..macos..secure_transport..SslContextExt$GT$::diffie_hellman_params::h6e2c24de59b56564 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
  "_SSLGetEnabledCiphers", referenced from:
      security_framework::secure_transport::SslContext::enabled_ciphers::h71ab9e3f7374f43e in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
  "_SSLGetNegotiatedCipher", referenced from:
      security_framework::secure_transport::SslContext::negotiated_cipher::h809eeaa2ea5e6b51 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
  "_SSLGetNegotiatedProtocolVersion", referenced from:
      security_framework::secure_transport::SslContext::negotiated_protocol_version::h15573039aa0c6634 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
  "_SSLGetNumberEnabledCiphers", referenced from:
      security_framework::secure_transport::SslContext::enabled_ciphers::h71ab9e3f7374f43e in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
  "_SSLGetNumberSupportedCiphers", referenced from:
      security_framework::secure_transport::SslContext::supported_ciphers::h1ef52fd807ff0e96 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
  "_SSLGetPeerDomainName", referenced from:
      security_framework::secure_transport::SslContext::peer_domain_name::h7e47698fbda8e458 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
  "_SSLGetPeerDomainNameLength", referenced from:
      security_framework::secure_transport::SslContext::peer_domain_name::h7e47698fbda8e458 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
  "_SSLGetPeerID", referenced from:
      security_framework::secure_transport::SslContext::peer_id::h58932db78a1d9af7 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
  "_SSLGetProtocolVersionMax", referenced from:
      security_framework::secure_transport::SslContext::protocol_version_max::hd8ec4294dc9b000a in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
  "_SSLGetProtocolVersionMin", referenced from:
      security_framework::secure_transport::SslContext::protocol_version_min::h6346c00503b5d688 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
  "_SSLGetSessionOption", referenced from:
      security_framework::secure_transport::SslContext::break_on_server_auth::h3ced55e9ed366769 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
      security_framework::secure_transport::SslContext::break_on_cert_requested::h04465abd4a8b925a in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
      security_framework::secure_transport::SslContext::break_on_client_auth::hb1f40e6da610abd8 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
      security_framework::secure_transport::SslContext::false_start::ha90e72ec677b9469 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
      security_framework::secure_transport::SslContext::send_one_byte_record::h2d7c5d581f561055 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
  "_SSLGetSessionState", referenced from:
      _$LT$security_framework..secure_transport..SslContext$u20$as$u20$core..fmt..Debug$GT$::fmt::h11a1688d62cb6952 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
      security_framework::secure_transport::SslContext::peer_trust2::h36ce380aa3858389 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
      security_framework::secure_transport::SslContext::state::h077aaa14e0283086 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
  "_SSLGetSupportedCiphers", referenced from:
      security_framework::secure_transport::SslContext::supported_ciphers::h1ef52fd807ff0e96 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
  "_SSLHandshake", referenced from:
      security_framework::secure_transport::MidHandshakeSslStream$LT$S$GT$::handshake::h10a0183d4b620aef in libsolana_ffi.a(tungstenite-5a0dbd34c0562000.tungstenite.cwgnlvyh-cgu.2.rcgu.o)
  "_SSLRead", referenced from:
      _$LT$tungstenite..stream..Stream$LT$S$C$T$GT$$u20$as$u20$std..io..Read$GT$::read::h1040ddfe385c0a54 in libsolana_ffi.a(solana_client-ccd3b5ccb9c5561c.solana_client.91z3s25e-cgu.8.rcgu.o)
      _$LT$security_framework..secure_transport..SslStream$LT$S$GT$$u20$as$u20$std..io..Read$GT$::read::h460f822d75d66694 in libsolana_ffi.a(solana_client-ccd3b5ccb9c5561c.solana_client.91z3s25e-cgu.8.rcgu.o)
      _$LT$native_tls..imp..TlsStream$LT$S$GT$$u20$as$u20$std..io..Read$GT$::read::h9cfd3e9a59411639 in libsolana_ffi.a(solana_client-ccd3b5ccb9c5561c.solana_client.91z3s25e-cgu.15.rcgu.o)
  "_SSLSetCertificate", referenced from:
      security_framework::secure_transport::SslContext::set_certificate::h63ce1fa59114b3c1 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
  "_SSLSetCertificateAuthorities", referenced from:
      _$LT$security_framework..secure_transport..SslContext$u20$as$u20$security_framework..os..macos..secure_transport..SslContextExt$GT$::set_certificate_authorities::h17a6d4cd2d2e4f36 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
      _$LT$security_framework..secure_transport..SslContext$u20$as$u20$security_framework..os..macos..secure_transport..SslContextExt$GT$::add_certificate_authorities::hbc5b9feb9410d025 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
  "_SSLSetClientSideAuthenticate", referenced from:
      security_framework::secure_transport::SslContext::set_client_side_authenticate::hdb6efe6cc852ee0b in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
  "_SSLSetConnection", referenced from:
      security_framework::secure_transport::ClientBuilder::handshake::h3b07818c30e7693e in libsolana_ffi.a(tungstenite-5a0dbd34c0562000.tungstenite.cwgnlvyh-cgu.2.rcgu.o)
  "_SSLSetDiffieHellmanParams", referenced from:
      _$LT$security_framework..secure_transport..SslContext$u20$as$u20$security_framework..os..macos..secure_transport..SslContextExt$GT$::set_diffie_hellman_params::h63432a983eea4270 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
  "_SSLSetEnabledCiphers", referenced from:
      security_framework::secure_transport::SslContext::set_enabled_ciphers::h542d0bc2cfea213a in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
  "_SSLSetIOFuncs", referenced from:
      security_framework::secure_transport::ClientBuilder::handshake::h3b07818c30e7693e in libsolana_ffi.a(tungstenite-5a0dbd34c0562000.tungstenite.cwgnlvyh-cgu.2.rcgu.o)
  "_SSLSetPeerDomainName", referenced from:
      security_framework::secure_transport::SslContext::set_peer_domain_name::h4315c416f4c593ba in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
  "_SSLSetPeerID", referenced from:
      security_framework::secure_transport::SslContext::set_peer_id::h8237fc5e4a6c70ff in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
  "_SSLSetProtocolVersionEnabled", referenced from:
      security_framework::secure_transport::SslContext::set_protocol_version_enabled::he1ad8b5a1d052ae4 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
  "_SSLSetProtocolVersionMax", referenced from:
      security_framework::secure_transport::SslContext::set_protocol_version_max::h53c322f21d221957 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
      security_framework::secure_transport::ClientBuilder::configure_protocols::h5bec8f6745357cf1 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
  "_SSLSetProtocolVersionMin", referenced from:
      security_framework::secure_transport::SslContext::set_protocol_version_min::hccbf8364b4731018 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
      security_framework::secure_transport::ClientBuilder::configure_protocols::h5bec8f6745357cf1 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
  "_SSLSetSessionOption", referenced from:
      security_framework::secure_transport::SslContext::set_break_on_server_auth::hd4690d3ea275c686 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
      security_framework::secure_transport::SslContext::set_break_on_cert_requested::hb783fbe602453289 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
      security_framework::secure_transport::SslContext::set_break_on_client_auth::h3d1983e072f7aece in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
      security_framework::secure_transport::SslContext::set_false_start::h3d6e2bb8b0742967 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
      security_framework::secure_transport::SslContext::set_send_one_byte_record::he88713034167f0b4 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
  "_SSLWrite", referenced from:
      tungstenite::handshake::MidHandshake$LT$Role$GT$::handshake::h6f75f1560d003f03 in libsolana_ffi.a(solana_client-ccd3b5ccb9c5561c.solana_client.91z3s25e-cgu.13.rcgu.o)
      _$LT$tungstenite..stream..Stream$LT$S$C$T$GT$$u20$as$u20$std..io..Write$GT$::write::h4de4fb9a7f83b4c8 in libsolana_ffi.a(solana_client-ccd3b5ccb9c5561c.solana_client.91z3s25e-cgu.8.rcgu.o)
      _$LT$security_framework..secure_transport..SslStream$LT$S$GT$$u20$as$u20$std..io..Write$GT$::write::heb936e45074615dc in libsolana_ffi.a(solana_client-ccd3b5ccb9c5561c.solana_client.91z3s25e-cgu.8.rcgu.o)
      tungstenite::protocol::frame::FrameCodec::write_pending::hc8d92b3e23d62d84 in libsolana_ffi.a(solana_client-ccd3b5ccb9c5561c.solana_client.91z3s25e-cgu.3.rcgu.o)
      _$LT$native_tls..imp..TlsStream$LT$S$GT$$u20$as$u20$std..io..Write$GT$::write::hb8d82b44ee97ed18 in libsolana_ffi.a(solana_client-ccd3b5ccb9c5561c.solana_client.91z3s25e-cgu.15.rcgu.o)
  "_SecCertificateCopyCommonName", referenced from:
      _$LT$security_framework..certificate..SecCertificate$u20$as$u20$security_framework..os..macos..certificate..SecCertificateExt$GT$::common_name::hb6308e55cf7a591a in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.15.rcgu.o)
  "_SecCertificateCopyData", referenced from:
      security_framework::certificate::SecCertificate::to_der::hdffee19421a538e1 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.15.rcgu.o)
  "_SecCertificateCopyPublicKey", referenced from:
      _$LT$security_framework..certificate..SecCertificate$u20$as$u20$security_framework..os..macos..certificate..SecCertificateExt$GT$::public_key::h936956324a564631 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.15.rcgu.o)
  "_SecCertificateCopySubjectSummary", referenced from:
      security_framework::certificate::SecCertificate::subject_summary::hdb65da15e45e9da9 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.15.rcgu.o)
  "_SecCertificateCopyValues", referenced from:
      _$LT$security_framework..certificate..SecCertificate$u20$as$u20$security_framework..os..macos..certificate..SecCertificateExt$GT$::properties::hca541a2975a5f4e4 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.15.rcgu.o)
  "_SecCertificateCreateWithData", referenced from:
      security_framework::certificate::SecCertificate::from_der::h98bea7c9052d9056 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.15.rcgu.o)
  "_SecCertificateGetTypeID", referenced from:
      security_framework::os::macos::import_export::ImportOptions::import::hf9dc7a90482f6cad in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.8.rcgu.o)
  "_SecCopyErrorMessageString", referenced from:
      security_framework::base::Error::message::h53140a21c1bcfa02 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.9.rcgu.o)
  "_SecDigestTransformCreate", referenced from:
      security_framework::os::macos::digest_transform::Builder::execute::hc1f046a037b8aee0 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.14.rcgu.o)
  "_SecIdentityCopyCertificate", referenced from:
      _$LT$security_framework..identity..SecIdentity$u20$as$u20$core..fmt..Debug$GT$::fmt::haae32e5188e60a1f in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.6.rcgu.o)
      security_framework::identity::SecIdentity::certificate::hec4ba761b2d1e68b in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.6.rcgu.o)
  "_SecIdentityCopyPrivateKey", referenced from:
      _$LT$security_framework..identity..SecIdentity$u20$as$u20$core..fmt..Debug$GT$::fmt::haae32e5188e60a1f in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.6.rcgu.o)
      security_framework::identity::SecIdentity::private_key::h62a6ce1feebe69b1 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.6.rcgu.o)
  "_SecIdentityCreateWithCertificate", referenced from:
      _$LT$security_framework..identity..SecIdentity$u20$as$u20$security_framework..os..macos..identity..SecIdentityExt$GT$::with_certificate::h6ac1857e3efe179e in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.6.rcgu.o)
  "_SecIdentityGetTypeID", referenced from:
      security_framework::os::macos::import_export::ImportOptions::import::hf9dc7a90482f6cad in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.8.rcgu.o)
  "_SecItemImport", referenced from:
      security_framework::os::macos::import_export::ImportOptions::import::hf9dc7a90482f6cad in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.8.rcgu.o)
  "_SecKeyCreateFromData", referenced from:
      _$LT$security_framework..key..SecKey$u20$as$u20$security_framework..os..macos..key..SecKeyExt$GT$::from_data::h192ae741e9539c42 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.6.rcgu.o)
  "_SecKeyGetTypeID", referenced from:
      security_framework::os::macos::import_export::ImportOptions::import::hf9dc7a90482f6cad in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.8.rcgu.o)
  "_SecKeychainAddGenericPassword", referenced from:
      security_framework::os::macos::passwords::_$LT$impl$u20$security_framework..os..macos..keychain..SecKeychain$GT$::set_generic_password::h66b9fb137d2245e7 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.15.rcgu.o)
      security_framework::os::macos::passwords::_$LT$impl$u20$security_framework..os..macos..keychain..SecKeychain$GT$::add_generic_password::h967ee426f8efe487 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.15.rcgu.o)
  "_SecKeychainAddInternetPassword", referenced from:
      security_framework::os::macos::passwords::_$LT$impl$u20$security_framework..os..macos..keychain..SecKeychain$GT$::set_internet_password::hafa89885eae69014 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.15.rcgu.o)
      security_framework::os::macos::passwords::_$LT$impl$u20$security_framework..os..macos..keychain..SecKeychain$GT$::add_internet_password::hcce56d683da524a8 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.15.rcgu.o)
  "_SecKeychainCopyDefault", referenced from:
      security_framework::os::macos::keychain::SecKeychain::default::hb903e6489df90d52 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.15.rcgu.o)
  "_SecKeychainCreate", referenced from:
      security_framework::os::macos::keychain::CreateOptions::create::h8cd93c3569ab048b in libsolana_ffi.a(native_tls-8c5de97979892b12.native_tls.mryo94nn-cgu.6.rcgu.o)
  "_SecKeychainFindGenericPassword", referenced from:
      security_framework::os::macos::passwords::find_generic_password::haee9a39fbd602260 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.11.rcgu.o)
  "_SecKeychainFindInternetPassword", referenced from:
      security_framework::os::macos::passwords::find_internet_password::hb655773a9d977013 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.11.rcgu.o)
  "_SecKeychainItemDelete", referenced from:
      security_framework::os::macos::passwords::_$LT$impl$u20$security_framework..os..macos..keychain_item..SecKeychainItem$GT$::delete::h1f4eec2610e826c9 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.9.rcgu.o)
  "_SecKeychainItemFreeContent", referenced from:
      security_framework::os::macos::passwords::_$LT$impl$u20$security_framework..os..macos..keychain..SecKeychain$GT$::set_internet_password::hafa89885eae69014 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.15.rcgu.o)
      security_framework::os::macos::passwords::_$LT$impl$u20$security_framework..os..macos..keychain..SecKeychain$GT$::set_generic_password::h66b9fb137d2245e7 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.15.rcgu.o)
      core::ptr::drop_in_place::h2e81e49292f42458 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.11.rcgu.o)
      _$LT$security_framework..os..macos..passwords..SecKeychainItemPassword$u20$as$u20$core..ops..drop..Drop$GT$::drop::hbbb4658538fe1cd9 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.11.rcgu.o)
  "_SecKeychainItemModifyAttributesAndData", referenced from:
      security_framework::os::macos::passwords::_$LT$impl$u20$security_framework..os..macos..keychain_item..SecKeychainItem$GT$::set_password::h157613f1e172f571 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.9.rcgu.o)
      security_framework::os::macos::passwords::_$LT$impl$u20$security_framework..os..macos..keychain..SecKeychain$GT$::set_internet_password::hafa89885eae69014 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.15.rcgu.o)
      security_framework::os::macos::passwords::_$LT$impl$u20$security_framework..os..macos..keychain..SecKeychain$GT$::set_generic_password::h66b9fb137d2245e7 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.15.rcgu.o)
  "_SecKeychainSetSettings", referenced from:
      security_framework::os::macos::keychain::SecKeychain::set_settings::h20a837ac26160f30 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.15.rcgu.o)
  "_SecKeychainUnlock", referenced from:
      security_framework::os::macos::keychain::SecKeychain::unlock::hc60ca498403b831b in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.15.rcgu.o)
  "_SecPKCS12Import", referenced from:
      security_framework::import_export::Pkcs12ImportOptions::import::hab36957a96df08e6 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.10.rcgu.o)
  "_SecPolicyCreateBasicX509", referenced from:
      security_framework::policy::SecPolicy::create_x509::hfcff808d67b03a27 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.12.rcgu.o)
  "_SecPolicyCreateSSL", referenced from:
      security_framework::policy::SecPolicy::create_ssl::h928c361623552ae2 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.12.rcgu.o)
  "_SecRandomCopyBytes", referenced from:
      security_framework::random::SecRandom::copy_bytes::h5422fbe07ca2dace in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.15.rcgu.o)
      ring::rand::darwin::fill::h2b3a2341d20633e6 in libsolana_ffi.a(ring-68ea8de648d37cfe.ring.csgxvlll-cgu.15.rcgu.o)
  "_SecTransformExecute", referenced from:
      security_framework::os::macos::transform::SecTransform::execute::h346d548768bf579e in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.15.rcgu.o)
      security_framework::os::macos::digest_transform::Builder::execute::hc1f046a037b8aee0 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.14.rcgu.o)
  "_SecTransformSetAttribute", referenced from:
      security_framework::os::macos::transform::SecTransform::set_attribute::hf507048db2904735 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.15.rcgu.o)
      security_framework::os::macos::digest_transform::Builder::execute::hc1f046a037b8aee0 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.14.rcgu.o)
  "_SecTrustCopyPublicKey", referenced from:
      security_framework::trust::SecTrust::copy_public_key::hfb4bbd884a5ae62d in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.8.rcgu.o)
  "_SecTrustCreateWithCertificates", referenced from:
      security_framework::trust::SecTrust::create_with_certificates::hd23fee9e986e2977 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.8.rcgu.o)
  "_SecTrustEvaluate", referenced from:
      security_framework::trust::SecTrust::evaluate::hc7ee0616d0eb95ee in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.8.rcgu.o)
  "_SecTrustGetCertificateAtIndex", referenced from:
      security_framework::trust::SecTrust::certificate_at_index::h78f389d7fa735a7b in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.8.rcgu.o)
  "_SecTrustGetCertificateCount", referenced from:
      security_framework::trust::SecTrust::certificate_count::h5060d6e8253701f9 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.8.rcgu.o)
      security_framework::trust::SecTrust::certificate_at_index::h78f389d7fa735a7b in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.8.rcgu.o)
  "_SecTrustSetAnchorCertificates", referenced from:
      security_framework::trust::SecTrust::set_anchor_certificates::hb34ec7552fa4c6bd in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.8.rcgu.o)
  "_SecTrustSetAnchorCertificatesOnly", referenced from:
      security_framework::trust::SecTrust::set_trust_anchor_certificates_only::h218aa06fc2398156 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.8.rcgu.o)
  "_SecTrustSetPolicies", referenced from:
      security_framework::trust::SecTrust::set_policy::he17459b1cc9027b8 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.8.rcgu.o)
  "___CFConstantStringClassReference", referenced from:
      CFString in libsolana_ffi.a(hid.o)
      CFString in libsolana_ffi.a(hid.o)
      CFString in libsolana_ffi.a(hid.o)
      CFString in libsolana_ffi.a(hid.o)
      CFString in libsolana_ffi.a(hid.o)
      CFString in libsolana_ffi.a(hid.o)
      CFString in libsolana_ffi.a(hid.o)
      ...
  "_kCFAllocatorDefault", referenced from:
      security_framework::secure_transport::SslContext::new::hf221562f4ea8680c in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.2.rcgu.o)
      core_foundation::dictionary::CFDictionary$LT$K$C$V$GT$::from_CFType_pairs::h4872e635be305089 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.9.rcgu.o)
      core_foundation::dictionary::CFDictionary$LT$K$C$V$GT$::from_CFType_pairs::he8e9b653331490a6 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.9.rcgu.o)
      security_framework::certificate::SecCertificate::from_der::h98bea7c9052d9056 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.15.rcgu.o)
      core_foundation::data::CFData::from_buffer::hfd90dacf8ab880a7 in libsolana_ffi.a(core_foundation-eea02ab78b8abb94.core_foundation.zvipigm6-cgu.15.rcgu.o)
      core_foundation::array::CFArray$LT$T$GT$::from_CFTypes::h139ee5f9f1fb60df in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.12.rcgu.o)
      core_foundation::array::CFArray$LT$T$GT$::from_CFTypes::hf841cf9a6832823b in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.12.rcgu.o)
      ...
  "_kCFAllocatorNull", referenced from:
      _$LT$core_foundation..string..CFString$u20$as$u20$core..cmp..PartialEq$LT$$RF$str$GT$$GT$::eq::h9d6cf5f22144ccd9 in libsolana_ffi.a(core_foundation-eea02ab78b8abb94.core_foundation.zvipigm6-cgu.11.rcgu.o)
  "_kCFBooleanFalse", referenced from:
      core_foundation::boolean::CFBoolean::false_value::h2561ba0dba107e98 in libsolana_ffi.a(core_foundation-eea02ab78b8abb94.core_foundation.zvipigm6-cgu.15.rcgu.o)
      _$LT$core_foundation..boolean..CFBoolean$u20$as$u20$core..convert..From$LT$bool$GT$$GT$::from::ha41a51a4862d3970 in libsolana_ffi.a(core_foundation-eea02ab78b8abb94.core_foundation.zvipigm6-cgu.15.rcgu.o)
  "_kCFBooleanTrue", referenced from:
      core_foundation::boolean::CFBoolean::true_value::hd61009efdc7ee311 in libsolana_ffi.a(core_foundation-eea02ab78b8abb94.core_foundation.zvipigm6-cgu.15.rcgu.o)
      _$LT$core_foundation..boolean..CFBoolean$u20$as$u20$core..convert..From$LT$bool$GT$$GT$::from::ha41a51a4862d3970 in libsolana_ffi.a(core_foundation-eea02ab78b8abb94.core_foundation.zvipigm6-cgu.15.rcgu.o)
      core_foundation::boolean::_$LT$impl$u20$core..convert..From$LT$core_foundation..boolean..CFBoolean$GT$$u20$for$u20$bool$GT$::from::hc9045fac6acee814 in libsolana_ffi.a(core_foundation-eea02ab78b8abb94.core_foundation.zvipigm6-cgu.15.rcgu.o)
  "_kCFRunLoopDefaultMode", referenced from:
      _hid_init in libsolana_ffi.a(hid.o)
      _hid_enumerate in libsolana_ffi.a(hid.o)
      _hid_open_path in libsolana_ffi.a(hid.o)
      _hid_close in libsolana_ffi.a(hid.o)
  "_kCFTypeArrayCallBacks", referenced from:
      core_foundation::array::CFArray$LT$T$GT$::from_CFTypes::h139ee5f9f1fb60df in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.12.rcgu.o)
      core_foundation::array::CFArray$LT$T$GT$::from_CFTypes::hf841cf9a6832823b in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.12.rcgu.o)
  "_kCFTypeDictionaryKeyCallBacks", referenced from:
      core_foundation::dictionary::CFDictionary$LT$K$C$V$GT$::from_CFType_pairs::h4872e635be305089 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.9.rcgu.o)
      core_foundation::dictionary::CFDictionary$LT$K$C$V$GT$::from_CFType_pairs::he8e9b653331490a6 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.9.rcgu.o)
      _hid_enumerate in libsolana_ffi.a(hid.o)
  "_kCFTypeDictionaryValueCallBacks", referenced from:
      core_foundation::dictionary::CFDictionary$LT$K$C$V$GT$::from_CFType_pairs::h4872e635be305089 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.9.rcgu.o)
      core_foundation::dictionary::CFDictionary$LT$K$C$V$GT$::from_CFType_pairs::he8e9b653331490a6 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.9.rcgu.o)
      _hid_enumerate in libsolana_ffi.a(hid.o)
  "_kIOMasterPortDefault", referenced from:
      _hid_open_path in libsolana_ffi.a(hid.o)
  "_kSecAttrKeyType", referenced from:
      _$LT$security_framework..key..SecKey$u20$as$u20$security_framework..os..macos..key..SecKeyExt$GT$::from_data::h192ae741e9539c42 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.6.rcgu.o)
  "_kSecAttrKeyType3DES", referenced from:
      security_framework::os::macos::item::KeyType::triple_des::h86cce0332f10ec6e in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.12.rcgu.o)
  "_kSecAttrKeyTypeAES", referenced from:
      security_framework::os::macos::item::KeyType::aes::h56106af710377c08 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.12.rcgu.o)
  "_kSecAttrKeyTypeCAST", referenced from:
      security_framework::os::macos::item::KeyType::cast::hf998a2c6292428f3 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.12.rcgu.o)
  "_kSecAttrKeyTypeDES", referenced from:
      security_framework::os::macos::item::KeyType::des::h4425eb14fb980bd7 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.12.rcgu.o)
  "_kSecAttrKeyTypeDSA", referenced from:
      security_framework::os::macos::item::KeyType::dsa::h091dca2a99df0a35 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.12.rcgu.o)
  "_kSecAttrKeyTypeEC", referenced from:
      security_framework::os::macos::item::KeyType::ec::h38654c11bc2ee199 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.12.rcgu.o)
  "_kSecAttrKeyTypeRC4", referenced from:
      security_framework::os::macos::item::KeyType::rc4::h5dc45796af72b49a in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.12.rcgu.o)
  "_kSecAttrKeyTypeRSA", referenced from:
      security_framework::os::macos::item::KeyType::rsa::hd6827bf471546563 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.12.rcgu.o)
  "_kSecDigestHMACKeyAttribute", referenced from:
      security_framework::os::macos::digest_transform::Builder::execute::hc1f046a037b8aee0 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.14.rcgu.o)
  "_kSecDigestHMACMD5", referenced from:
      security_framework::os::macos::digest_transform::DigestType::hmac_md5::h264f0389844c4bdf in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.14.rcgu.o)
  "_kSecDigestHMACSHA1", referenced from:
      security_framework::os::macos::digest_transform::DigestType::hmac_sha1::h416f61e13ce9858c in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.14.rcgu.o)
  "_kSecDigestHMACSHA2", referenced from:
      security_framework::os::macos::digest_transform::DigestType::hmac_sha2::h1c7d3d24e17c805b in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.14.rcgu.o)
  "_kSecDigestMD2", referenced from:
      security_framework::os::macos::digest_transform::DigestType::md2::hf218b8b8a871a704 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.14.rcgu.o)
  "_kSecDigestMD4", referenced from:
      security_framework::os::macos::digest_transform::DigestType::md4::h5dd35679b70417b2 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.14.rcgu.o)
  "_kSecDigestMD5", referenced from:
      security_framework::os::macos::digest_transform::DigestType::md5::hd7bf3febd864a1bc in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.14.rcgu.o)
  "_kSecDigestSHA1", referenced from:
      security_framework::os::macos::digest_transform::DigestType::sha1::ha49f0964bb8c231d in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.14.rcgu.o)
  "_kSecDigestSHA2", referenced from:
      security_framework::os::macos::digest_transform::DigestType::sha2::h7315fc9552dd5c19 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.14.rcgu.o)
  "_kSecImportExportAccess", referenced from:
      security_framework::import_export::Pkcs12ImportOptions::import::hab36957a96df08e6 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.10.rcgu.o)
  "_kSecImportExportKeychain", referenced from:
      security_framework::import_export::Pkcs12ImportOptions::import::hab36957a96df08e6 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.10.rcgu.o)
  "_kSecImportExportPassphrase", referenced from:
      security_framework::import_export::Pkcs12ImportOptions::import::hab36957a96df08e6 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.10.rcgu.o)
  "_kSecImportItemCertChain", referenced from:
      security_framework::import_export::Pkcs12ImportOptions::import::hab36957a96df08e6 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.10.rcgu.o)
  "_kSecImportItemIdentity", referenced from:
      security_framework::import_export::Pkcs12ImportOptions::import::hab36957a96df08e6 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.10.rcgu.o)
  "_kSecImportItemKeyID", referenced from:
      security_framework::import_export::Pkcs12ImportOptions::import::hab36957a96df08e6 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.10.rcgu.o)
  "_kSecImportItemLabel", referenced from:
      security_framework::import_export::Pkcs12ImportOptions::import::hab36957a96df08e6 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.10.rcgu.o)
  "_kSecImportItemTrust", referenced from:
      security_framework::import_export::Pkcs12ImportOptions::import::hab36957a96df08e6 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.10.rcgu.o)
  "_kSecOIDX509V1SignatureAlgorithm", referenced from:
      security_framework::os::macos::certificate_oids::CertificateOid::x509_v1_signature_algorithm::h5a612033ac39d745 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.15.rcgu.o)
  "_kSecPropertyKeyLabel", referenced from:
      security_framework::os::macos::certificate::CertificateProperty::label::h45900dc55d1fb147 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.12.rcgu.o)
  "_kSecPropertyKeyType", referenced from:
      security_framework::os::macos::certificate::CertificateProperty::get::h9315c722ab7fe756 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.12.rcgu.o)
  "_kSecPropertyKeyValue", referenced from:
      security_framework::os::macos::certificate::CertificateProperty::get::h9315c722ab7fe756 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.12.rcgu.o)
  "_kSecPropertyTypeSection", referenced from:
      security_framework::os::macos::certificate::CertificateProperty::get::h9315c722ab7fe756 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.12.rcgu.o)
  "_kSecPropertyTypeString", referenced from:
      security_framework::os::macos::certificate::CertificateProperty::get::h9315c722ab7fe756 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.12.rcgu.o)
  "_kSecRandomDefault", referenced from:
      _$LT$security_framework..random..SecRandom$u20$as$u20$core..default..Default$GT$::default::h97ca535f4b97d719 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.15.rcgu.o)
      ring::rand::darwin::fill::h2b3a2341d20633e6 in libsolana_ffi.a(ring-68ea8de648d37cfe.ring.csgxvlll-cgu.15.rcgu.o)
  "_kSecTransformInputAttributeName", referenced from:
      security_framework::os::macos::digest_transform::Builder::execute::hc1f046a037b8aee0 in libsolana_ffi.a(security_framework-6510e08c9fe8ee21.security_framework.efnpelgg-cgu.14.rcgu.o)
ld: symbol(s) not found for architecture x86_64

Some of my machine specs:

PARSER: Defines: __has_include_next(x): 1 IncludePaths:

TRANSLATOR: Rules: function:

Am I missing certain headers? Unfortunately I couldn't find much relevant information about this error. Any help would be appreciated.

xlab commented 3 years ago

Looks like your linker flags are not complete, I see that you use - {name: LDFLAGS, flags: ["-L${SRCDIR} -lmy_ffi"]} which is not enough as all those symbols had to be linked too.

My advice is that you should create a hand-made .go file that will contain proper LDFLAGS or even pkg-config CGO directive. See for reference:

On macOS in particular, you should link with frameworks too, example: https://github.com/vulkan-go/vulkan/blob/master/vulkan_darwin.go#L7

roynalnaruto commented 3 years ago

I managed to compile my codebase in both Linux and Darwin. On MacOS, I had to link frameworks as @xlab mentioned (Thanks a lot for that @xlab). For linux I had to link a few more libraries.

Finally, my generator config looks something like this:

FlagGroups:
  - {name: "LDFLAGS", flags: [
      "-L${SRCDIR}",
      "-lmy_ffi",
  ]}
  - {name: "linux LDFLAGS", flags: [
      "-lcrypto",
      "-ldl",
      "-lm",
      "-lrt",
      "-lssl",
      "-ludev",
  ]}
  - {name: "darwin LDFLAGS", flags: [
      "-F/Library/Frameworks",
      "-framework Security",
      "-framework CoreServices",
      "-framework IOKit",
      "-framework IOSurface",
      "-framework AppKit",
  ]}

Closing the issue.