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

not support macOS arm64? #591

Closed
StephenWuyun opened this issue Jan 29, 2021 · 56 comments
Closed

not support macOS arm64? #591

StephenWuyun opened this issue Jan 29, 2021 · 56 comments

Comments

@StephenWuyun
Copy link

StephenWuyun commented Jan 29, 2021

Description

I run "go vet ./..." in my project and got the following errror.

# github.com/confluentinc/confluent-kafka-go/kafka
ld: warning: ignoring file /opt/homebrew/lib/librdkafka.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
Undefined symbols for architecture x86_64:
  "_rd_kafka_AdminOptions_destroy", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_AdminOptions_destroy in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_AdminOptions_destroy)
  "_rd_kafka_AdminOptions_new", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_AdminOptions_new in _x004.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_AdminOptions_new)
  "_rd_kafka_AdminOptions_set_operation_timeout", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_AdminOptions_set_operation_timeout in _x004.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_AdminOptions_set_operation_timeout)
  "_rd_kafka_AdminOptions_set_request_timeout", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_AdminOptions_set_request_timeout in _x004.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_AdminOptions_set_request_timeout)
  "_rd_kafka_AdminOptions_set_validate_only", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_AdminOptions_set_validate_only in _x004.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_AdminOptions_set_validate_only)
  "_rd_kafka_AlterConfigs", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_AlterConfigs in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_AlterConfigs_result_resources, __cgo_22635e7f62b7_Cfunc_rd_kafka_AlterConfigs )
  "_rd_kafka_AlterConfigs_result_resources", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_AlterConfigs_result_resources in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_AlterConfigs_result_resources)
  "_rd_kafka_ConfigEntry_is_read_only", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_ConfigEntry_is_read_only in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_ConfigEntry_is_read_only)
  "_rd_kafka_ConfigEntry_is_sensitive", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_ConfigEntry_is_sensitive in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_ConfigEntry_is_sensitive)
  "_rd_kafka_ConfigEntry_is_synonym", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_ConfigEntry_is_synonym in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_ConfigEntry_is_synonym)
  "_rd_kafka_ConfigEntry_name", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_ConfigEntry_name in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_ConfigEntry_name)
  "_rd_kafka_ConfigEntry_source", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_ConfigEntry_source in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_ConfigEntry_source)
  "_rd_kafka_ConfigEntry_synonyms", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_ConfigEntry_synonyms in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_ConfigEntry_synonyms)
  "_rd_kafka_ConfigEntry_value", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_ConfigEntry_value in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_ConfigEntry_value)
  "_rd_kafka_ConfigResource_configs", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_ConfigResource_configs in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_ConfigResource_configs)
  "_rd_kafka_ConfigResource_destroy", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_ConfigResource_destroy in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_ConfigResource_destroy)
  "_rd_kafka_ConfigResource_error", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_ConfigResource_error in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_ConfigResource_error, __cgo_22635e7f62b7_Cfunc_rd_kafka_ConfigResource_error_string )
  "_rd_kafka_ConfigResource_error_string", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_ConfigResource_error_string in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_ConfigResource_error_string)
  "_rd_kafka_ConfigResource_name", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_ConfigResource_name in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_ConfigResource_name)
  "_rd_kafka_ConfigResource_new", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_ConfigResource_new in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_ConfigResource_new)
  "_rd_kafka_ConfigResource_set_config", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_ConfigResource_set_config in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_ConfigResource_set_config)
  "_rd_kafka_ConfigResource_type", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_ConfigResource_type in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_ConfigResource_type)
  "_rd_kafka_ConfigSource_name", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_ConfigSource_name in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_ConfigSource_name)
  "_rd_kafka_CreatePartitions", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_CreatePartitions in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_CreatePartitions_result_topics, __cgo_22635e7f62b7_Cfunc_rd_kafka_CreatePartitions )
  "_rd_kafka_CreatePartitions_result_topics", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_CreatePartitions_result_topics in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_CreatePartitions_result_topics)
  "_rd_kafka_CreateTopics", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_CreateTopics in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_CreateTopics, __cgo_22635e7f62b7_Cfunc_rd_kafka_CreateTopics_result_topics )
  "_rd_kafka_CreateTopics_result_topics", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_CreateTopics_result_topics in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_CreateTopics_result_topics)
  "_rd_kafka_DeleteTopic_destroy", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_DeleteTopic_destroy in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_DeleteTopic_destroy)
  "_rd_kafka_DeleteTopic_new", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_DeleteTopic_new in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_DeleteTopic_new)
  "_rd_kafka_DeleteTopics", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_DeleteTopics in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_DeleteTopics_result_topics, __cgo_22635e7f62b7_Cfunc_rd_kafka_DeleteTopics )
  "_rd_kafka_DeleteTopics_result_topics", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_DeleteTopics_result_topics in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_DeleteTopics_result_topics)
  "_rd_kafka_DescribeConfigs", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_DescribeConfigs in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_DescribeConfigs, __cgo_22635e7f62b7_Cfunc_rd_kafka_DescribeConfigs_result_resources )
  "_rd_kafka_DescribeConfigs_result_resources", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_DescribeConfigs_result_resources in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_DescribeConfigs_result_resources)
  "_rd_kafka_NewPartitions_destroy", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_NewPartitions_destroy in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_NewPartitions_destroy)
  "_rd_kafka_NewPartitions_new", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_NewPartitions_new in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_NewPartitions_new)
  "_rd_kafka_NewPartitions_set_replica_assignment", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_NewPartitions_set_replica_assignment in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_NewPartitions_set_replica_assignment)
  "_rd_kafka_NewTopic_destroy", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_NewTopic_destroy in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_NewTopic_destroy)
  "_rd_kafka_NewTopic_new", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_NewTopic_new in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_NewTopic_new)
  "_rd_kafka_NewTopic_set_config", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_NewTopic_set_config in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_NewTopic_set_config)
  "_rd_kafka_NewTopic_set_replica_assignment", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_NewTopic_set_replica_assignment in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_NewTopic_set_replica_assignment)
  "_rd_kafka_ResourceType_name", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_ResourceType_name in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_ResourceType_name)
  "_rd_kafka_assign", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_assign in _x007.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_assign, __cgo_22635e7f62b7_Cfunc_rd_kafka_assignment )
  "_rd_kafka_assignment", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_assignment in _x007.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_assignment)
  "_rd_kafka_clusterid", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_clusterid in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_clusterid)
  "_rd_kafka_commit_queue", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_commit_queue in _x007.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_commit_queue)
  "_rd_kafka_committed", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_committed in _x007.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_committed)
  "_rd_kafka_conf_destroy", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_conf_destroy in _x006.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_conf_destroy)
  "_rd_kafka_conf_new", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_conf_new in _x006.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_conf_new)
  "_rd_kafka_conf_set", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_conf_set in _x006.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_conf_set, __cgo_22635e7f62b7_Cfunc_rd_kafka_conf_set_events , __cgo_22635e7f62b7_Cfunc_rd_kafka_conf_set_default_topic_conf )
  "_rd_kafka_conf_set_default_topic_conf", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_conf_set_default_topic_conf in _x006.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_conf_set_default_topic_conf)
  "_rd_kafka_conf_set_events", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_conf_set_events in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_conf_set_events)
  "_rd_kafka_consumer_close", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_consumer_close in _x007.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_consumer_close)
  "_rd_kafka_controllerid", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_controllerid in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_controllerid)
  "_rd_kafka_destroy", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_destroy in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_destroy)
  "_rd_kafka_err2str", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_err2str in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_err2str)
  "_rd_kafka_event_AlterConfigs_result", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_event_AlterConfigs_result in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_event_AlterConfigs_result)
  "_rd_kafka_event_CreatePartitions_result", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_event_CreatePartitions_result in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_event_CreatePartitions_result)
  "_rd_kafka_event_CreateTopics_result", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_event_CreateTopics_result in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_event_CreateTopics_result)
  "_rd_kafka_event_DeleteTopics_result", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_event_DeleteTopics_result in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_event_DeleteTopics_result)
  "_rd_kafka_event_DescribeConfigs_result", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_event_DescribeConfigs_result in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_event_DescribeConfigs_result)
  "_rd_kafka_event_config_string", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_event_config_string in _x009.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_event_config_string)
  "_rd_kafka_event_destroy", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_event_destroy in _x003.o
      __rk_queue_poll in _x009.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_event_destroy)
  "_rd_kafka_event_error", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_event_error in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_event_error_is_fatal, __cgo_22635e7f62b7_Cfunc_rd_kafka_event_error_string , __cgo_22635e7f62b7_Cfunc_rd_kafka_event_error )
  "_rd_kafka_event_error_is_fatal", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_event_error_is_fatal in _x009.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_event_error_is_fatal)
  "_rd_kafka_event_error_string", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_event_error_string in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_event_error_string)
  "_rd_kafka_event_message_array", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_event_message_array in _x009.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_event_message_array)
  "_rd_kafka_event_message_count", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_event_message_count in _x009.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_event_message_count)
  "_rd_kafka_event_message_next", referenced from:
      __rk_queue_poll in _x009.o
  "_rd_kafka_event_name", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_event_name in _x007.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_event_name)
  "_rd_kafka_event_stats", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_event_stats in _x009.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_event_stats)
  "_rd_kafka_event_topic_partition", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_event_topic_partition in _x009.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_event_topic_partition, __cgo_22635e7f62b7_Cfunc_rd_kafka_event_topic_partition_list )
  "_rd_kafka_event_topic_partition_list", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_event_topic_partition_list in _x007.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_event_topic_partition_list)
  "_rd_kafka_event_type", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_event_type in _x003.o
      __rk_queue_poll in _x009.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_event_type)
  "_rd_kafka_fatal_error", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_fatal_error in _x008.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_fatal_error)
  "_rd_kafka_get_watermark_offsets", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_get_watermark_offsets in _x015.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_get_watermark_offsets)
  "_rd_kafka_header_add", referenced from:
      _tmphdrs_to_chdrs in _x018.o
  "_rd_kafka_header_cnt", referenced from:
      __rk_queue_poll in _x009.o
  "_rd_kafka_header_get_all", referenced from:
      _chdrs_to_tmphdrs in _x009.o
      __rk_queue_poll in _x009.o
  "_rd_kafka_headers_destroy", referenced from:
      _do_produce in _x018.o
      __cgo_22635e7f62b7_Cfunc_do_produce in _x018.o
  "_rd_kafka_headers_new", referenced from:
      _tmphdrs_to_chdrs in _x018.o
  "_rd_kafka_last_error", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_last_error in _x011.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_last_error)
  "_rd_kafka_mem_free", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_mem_free in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_mem_free)
  "_rd_kafka_message_headers", referenced from:
      __rk_queue_poll in _x009.o
  "_rd_kafka_message_timestamp", referenced from:
      __rk_queue_poll in _x009.o
  "_rd_kafka_metadata", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_metadata in _x015.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_metadata_destroy, __cgo_22635e7f62b7_Cfunc_rd_kafka_metadata )
  "_rd_kafka_metadata_destroy", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_metadata_destroy in _x015.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_metadata_destroy)
  "_rd_kafka_name", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_name in _x011.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_name)
  "_rd_kafka_new", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_new in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_new)
  "_rd_kafka_oauthbearer_set_token", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_oauthbearer_set_token in _x011.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_oauthbearer_set_token_failure, __cgo_22635e7f62b7_Cfunc_rd_kafka_oauthbearer_set_token )
  "_rd_kafka_oauthbearer_set_token_failure", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_oauthbearer_set_token_failure in _x011.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_oauthbearer_set_token_failure)
  "_rd_kafka_offsets_for_times", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_offsets_for_times in _x017.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_offsets_for_times)
  "_rd_kafka_offsets_store", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_offsets_store in _x007.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_offsets_store)
  "_rd_kafka_outq_len", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_outq_len in _x018.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_outq_len)
  "_rd_kafka_pause_partitions", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_pause_partitions in _x007.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_pause_partitions)
  "_rd_kafka_poll_set_consumer", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_poll_set_consumer in _x007.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_poll_set_consumer)
  "_rd_kafka_produce_batch", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_produce_batch in _x018.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_produce_batch)
  "_rd_kafka_producev", referenced from:
      _do_produce in _x018.o
      __cgo_22635e7f62b7_Cfunc_do_produce in _x018.o
  "_rd_kafka_purge", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_purge in _x018.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_purge)
  "_rd_kafka_query_watermark_offsets", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_query_watermark_offsets in _x015.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_query_watermark_offsets)
  "_rd_kafka_queue_destroy", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_queue_destroy in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_queue_destroy)
  "_rd_kafka_queue_get_consumer", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_queue_get_consumer in _x007.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_queue_get_consumer)
  "_rd_kafka_queue_get_main", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_queue_get_main in _x007.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_queue_get_main)
  "_rd_kafka_queue_new", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_queue_new in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_queue_new)
  "_rd_kafka_queue_poll", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_queue_poll in _x003.o
      __rk_queue_poll in _x009.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_queue_poll)
  "_rd_kafka_resume_partitions", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_resume_partitions in _x007.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_resume_partitions)
  "_rd_kafka_seek", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_seek in _x007.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_seek)
  "_rd_kafka_subscribe", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_subscribe in _x007.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_subscribe)
  "_rd_kafka_subscription", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_subscription in _x007.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_subscription)
  "_rd_kafka_test_fatal_error", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_test_fatal_error in _x008.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_test_fatal_error)
  "_rd_kafka_topic_conf_destroy", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_topic_conf_destroy in _x006.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_topic_conf_destroy)
  "_rd_kafka_topic_conf_new", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_topic_conf_new in _x006.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_topic_conf_new)
  "_rd_kafka_topic_conf_set", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_topic_conf_set in _x006.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_topic_conf_set)
  "_rd_kafka_topic_destroy", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_topic_destroy in _x011.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_topic_destroy)
  "_rd_kafka_topic_name", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_topic_name in _x011.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_topic_name)
  "_rd_kafka_topic_new", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_topic_new in _x011.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_topic_new)
  "_rd_kafka_topic_partition_destroy", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_topic_partition_destroy in _x009.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_topic_partition_destroy)
  "_rd_kafka_topic_partition_list_add", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_topic_partition_list_add in _x007.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_topic_partition_list_add)
  "_rd_kafka_topic_partition_list_destroy", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_topic_partition_list_destroy in _x007.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_topic_partition_list_destroy)
  "_rd_kafka_topic_partition_list_new", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_topic_partition_list_new in _x007.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_topic_partition_list_new)
  "_rd_kafka_topic_result_error", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_topic_result_error in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_topic_result_error_string, __cgo_22635e7f62b7_Cfunc_rd_kafka_topic_result_error )
  "_rd_kafka_topic_result_error_string", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_topic_result_error_string in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_topic_result_error_string)
  "_rd_kafka_topic_result_name", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_topic_result_name in _x003.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_topic_result_name)
  "_rd_kafka_unsubscribe", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_unsubscribe in _x007.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_unsubscribe)
  "_rd_kafka_version", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_version in _x013.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_version_str, __cgo_22635e7f62b7_Cfunc_rd_kafka_version )
  "_rd_kafka_version_str", referenced from:
      __cgo_22635e7f62b7_Cfunc_rd_kafka_version_str in _x013.o
     (maybe you meant: __cgo_22635e7f62b7_Cfunc_rd_kafka_version_str)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

How to reproduce

cd librdkafka
./configure --prefix=/opt/homebrew --arch=arm64
make
sudo make install

Checklist

Please provide the following information:

  • [ ] confluent-kafka-go(v1.3.0) and librdkafka(v1.6.0)
@edenhill
Copy link
Contributor

Are you building your go application with -tags dynamic?

@StephenWuyun
Copy link
Author

StephenWuyun commented Jan 29, 2021

Are you building your go application with -tags dynamic?
I tried the following commands and got the same error
"go vet ./..."
"go build"
"go build -tags static"
"go build -tags dynamic"

@StephenWuyun
Copy link
Author

92A8CEF3-E226-4523-8BFE-512D92648CDA

@ghost
Copy link

ghost commented Feb 9, 2021

+1

@d7561985
Copy link

on M1 with go 1.16, but go1.16rc works

@slayerjain
Copy link

Same problem for me too. I'm on a Macbook Pro 13 M1 with go 1.16.2.

I've installed librdkafka with brew install librdkafka, maybe we can link this with the library?

go run main.go
# gopkg.in/confluentinc/confluent-kafka-go.v1/kafka
ld: warning: ignoring file ../../../../../../go/pkg/mod/gopkg.in/confluentinc/[email protected]/kafka/librdkafka/librdkafka_darwin.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
Undefined symbols for architecture arm64:
  "_rd_kafka_AdminOptions_destroy", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_AdminOptions_destroy in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_AdminOptions_destroy)
  "_rd_kafka_AdminOptions_new", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_AdminOptions_new in _x004.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_AdminOptions_new)
  "_rd_kafka_AdminOptions_set_operation_timeout", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_AdminOptions_set_operation_timeout in _x004.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_AdminOptions_set_operation_timeout)
  "_rd_kafka_AdminOptions_set_request_timeout", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_AdminOptions_set_request_timeout in _x004.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_AdminOptions_set_request_timeout)
  "_rd_kafka_AdminOptions_set_validate_only", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_AdminOptions_set_validate_only in _x004.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_AdminOptions_set_validate_only)
  "_rd_kafka_AlterConfigs", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_AlterConfigs in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_AlterConfigs_result_resources, __cgo_6d777e531ef7_Cfunc_rd_kafka_AlterConfigs )
  "_rd_kafka_AlterConfigs_result_resources", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_AlterConfigs_result_resources in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_AlterConfigs_result_resources)
  "_rd_kafka_ConfigEntry_is_read_only", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_ConfigEntry_is_read_only in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_ConfigEntry_is_read_only)
  "_rd_kafka_ConfigEntry_is_sensitive", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_ConfigEntry_is_sensitive in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_ConfigEntry_is_sensitive)
  "_rd_kafka_ConfigEntry_is_synonym", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_ConfigEntry_is_synonym in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_ConfigEntry_is_synonym)
  "_rd_kafka_ConfigEntry_name", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_ConfigEntry_name in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_ConfigEntry_name)
  "_rd_kafka_ConfigEntry_source", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_ConfigEntry_source in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_ConfigEntry_source)
  "_rd_kafka_ConfigEntry_synonyms", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_ConfigEntry_synonyms in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_ConfigEntry_synonyms)
  "_rd_kafka_ConfigEntry_value", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_ConfigEntry_value in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_ConfigEntry_value)
  "_rd_kafka_ConfigResource_configs", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_ConfigResource_configs in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_ConfigResource_configs)
  "_rd_kafka_ConfigResource_destroy", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_ConfigResource_destroy in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_ConfigResource_destroy)
  "_rd_kafka_ConfigResource_error", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_ConfigResource_error in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_ConfigResource_error_string, __cgo_6d777e531ef7_Cfunc_rd_kafka_ConfigResource_error )
  "_rd_kafka_ConfigResource_error_string", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_ConfigResource_error_string in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_ConfigResource_error_string)
  "_rd_kafka_ConfigResource_name", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_ConfigResource_name in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_ConfigResource_name)
  "_rd_kafka_ConfigResource_new", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_ConfigResource_new in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_ConfigResource_new)
  "_rd_kafka_ConfigResource_set_config", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_ConfigResource_set_config in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_ConfigResource_set_config)
  "_rd_kafka_ConfigResource_type", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_ConfigResource_type in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_ConfigResource_type)
  "_rd_kafka_ConfigSource_name", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_ConfigSource_name in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_ConfigSource_name)
  "_rd_kafka_CreatePartitions", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_CreatePartitions in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_CreatePartitions_result_topics, __cgo_6d777e531ef7_Cfunc_rd_kafka_CreatePartitions )
  "_rd_kafka_CreatePartitions_result_topics", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_CreatePartitions_result_topics in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_CreatePartitions_result_topics)
  "_rd_kafka_CreateTopics", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_CreateTopics in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_CreateTopics_result_topics, __cgo_6d777e531ef7_Cfunc_rd_kafka_CreateTopics )
  "_rd_kafka_CreateTopics_result_topics", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_CreateTopics_result_topics in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_CreateTopics_result_topics)
  "_rd_kafka_DeleteTopic_destroy", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_DeleteTopic_destroy in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_DeleteTopic_destroy)
  "_rd_kafka_DeleteTopic_new", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_DeleteTopic_new in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_DeleteTopic_new)
  "_rd_kafka_DeleteTopics", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_DeleteTopics in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_DeleteTopics, __cgo_6d777e531ef7_Cfunc_rd_kafka_DeleteTopics_result_topics )
  "_rd_kafka_DeleteTopics_result_topics", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_DeleteTopics_result_topics in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_DeleteTopics_result_topics)
  "_rd_kafka_DescribeConfigs", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_DescribeConfigs in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_DescribeConfigs_result_resources, __cgo_6d777e531ef7_Cfunc_rd_kafka_DescribeConfigs )
  "_rd_kafka_DescribeConfigs_result_resources", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_DescribeConfigs_result_resources in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_DescribeConfigs_result_resources)
  "_rd_kafka_NewPartitions_destroy", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_NewPartitions_destroy in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_NewPartitions_destroy)
  "_rd_kafka_NewPartitions_new", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_NewPartitions_new in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_NewPartitions_new)
  "_rd_kafka_NewPartitions_set_replica_assignment", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_NewPartitions_set_replica_assignment in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_NewPartitions_set_replica_assignment)
  "_rd_kafka_NewTopic_destroy", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_NewTopic_destroy in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_NewTopic_destroy)
  "_rd_kafka_NewTopic_new", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_NewTopic_new in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_NewTopic_new)
  "_rd_kafka_NewTopic_set_config", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_NewTopic_set_config in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_NewTopic_set_config)
  "_rd_kafka_NewTopic_set_replica_assignment", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_NewTopic_set_replica_assignment in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_NewTopic_set_replica_assignment)
  "_rd_kafka_ResourceType_name", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_ResourceType_name in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_ResourceType_name)
  "_rd_kafka_abort_transaction", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_abort_transaction in _x020.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_abort_transaction)
  "_rd_kafka_assign", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_assign in _x007.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_assignment, __cgo_6d777e531ef7_Cfunc_rd_kafka_assign )
  "_rd_kafka_assignment", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_assignment in _x007.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_assignment)
  "_rd_kafka_begin_transaction", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_begin_transaction in _x020.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_begin_transaction)
  "_rd_kafka_clusterid", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_clusterid in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_clusterid)
  "_rd_kafka_commit_queue", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_commit_queue in _x007.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_commit_queue)
  "_rd_kafka_commit_transaction", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_commit_transaction in _x020.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_commit_transaction)
  "_rd_kafka_committed", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_committed in _x007.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_committed)
  "_rd_kafka_conf_destroy", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_conf_destroy in _x006.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_conf_destroy)
  "_rd_kafka_conf_new", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_conf_new in _x006.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_conf_new)
  "_rd_kafka_conf_set", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_conf_set in _x006.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_conf_set_default_topic_conf, __cgo_6d777e531ef7_Cfunc_rd_kafka_conf_set , __cgo_6d777e531ef7_Cfunc_rd_kafka_conf_set_events )
  "_rd_kafka_conf_set_default_topic_conf", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_conf_set_default_topic_conf in _x006.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_conf_set_default_topic_conf)
  "_rd_kafka_conf_set_events", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_conf_set_events in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_conf_set_events)
  "_rd_kafka_consumer_close", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_consumer_close in _x007.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_consumer_close)
  "_rd_kafka_consumer_group_metadata", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_consumer_group_metadata in _x007.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_consumer_group_metadata_new, __cgo_6d777e531ef7_Cfunc_rd_kafka_consumer_group_metadata_write , __cgo_6d777e531ef7_Cfunc_rd_kafka_consumer_group_metadata_destroy , __cgo_6d777e531ef7_Cfunc_rd_kafka_consumer_group_metadata_read , __cgo_6d777e531ef7_Cfunc_rd_kafka_consumer_group_metadata )
  "_rd_kafka_consumer_group_metadata_destroy", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_consumer_group_metadata_destroy in _x007.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_consumer_group_metadata_destroy)
  "_rd_kafka_consumer_group_metadata_new", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_consumer_group_metadata_new in _x007.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_consumer_group_metadata_new)
  "_rd_kafka_consumer_group_metadata_read", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_consumer_group_metadata_read in _x007.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_consumer_group_metadata_read)
  "_rd_kafka_consumer_group_metadata_write", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_consumer_group_metadata_write in _x007.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_consumer_group_metadata_write)
  "_rd_kafka_controllerid", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_controllerid in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_controllerid)
  "_rd_kafka_destroy", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_destroy in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_destroy)
  "_rd_kafka_err2str", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_err2str in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_err2str)
  "_rd_kafka_error_code", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_error_code in _x008.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_error_code)
  "_rd_kafka_error_destroy", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_error_destroy in _x008.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_error_destroy)
  "_rd_kafka_error_is_fatal", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_error_is_fatal in _x008.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_error_is_fatal)
  "_rd_kafka_error_is_retriable", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_error_is_retriable in _x008.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_error_is_retriable)
  "_rd_kafka_error_string", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_error_string in _x008.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_error_string)
  "_rd_kafka_error_txn_requires_abort", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_error_txn_requires_abort in _x008.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_error_txn_requires_abort)
  "_rd_kafka_event_AlterConfigs_result", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_event_AlterConfigs_result in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_event_AlterConfigs_result)
  "_rd_kafka_event_CreatePartitions_result", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_event_CreatePartitions_result in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_event_CreatePartitions_result)
  "_rd_kafka_event_CreateTopics_result", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_event_CreateTopics_result in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_event_CreateTopics_result)
  "_rd_kafka_event_DeleteTopics_result", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_event_DeleteTopics_result in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_event_DeleteTopics_result)
  "_rd_kafka_event_DescribeConfigs_result", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_event_DescribeConfigs_result in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_event_DescribeConfigs_result)
  "_rd_kafka_event_config_string", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_event_config_string in _x010.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_event_config_string)
  "_rd_kafka_event_destroy", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_event_destroy in _x003.o
      __rk_queue_poll in _x010.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_event_destroy)
  "_rd_kafka_event_error", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_event_error in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_event_error_is_fatal, __cgo_6d777e531ef7_Cfunc_rd_kafka_event_error , __cgo_6d777e531ef7_Cfunc_rd_kafka_event_error_string )
  "_rd_kafka_event_error_is_fatal", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_event_error_is_fatal in _x010.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_event_error_is_fatal)
  "_rd_kafka_event_error_string", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_event_error_string in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_event_error_string)
  "_rd_kafka_event_log", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_event_log in _x015.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_event_log)
  "_rd_kafka_event_message_array", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_event_message_array in _x010.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_event_message_array)
  "_rd_kafka_event_message_count", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_event_message_count in _x010.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_event_message_count)
  "_rd_kafka_event_message_next", referenced from:
      __rk_queue_poll in _x010.o
  "_rd_kafka_event_name", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_event_name in _x007.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_event_name)
  "_rd_kafka_event_stats", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_event_stats in _x010.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_event_stats)
  "_rd_kafka_event_topic_partition", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_event_topic_partition in _x010.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_event_topic_partition, __cgo_6d777e531ef7_Cfunc_rd_kafka_event_topic_partition_list )
  "_rd_kafka_event_topic_partition_list", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_event_topic_partition_list in _x007.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_event_topic_partition_list)
  "_rd_kafka_event_type", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_event_type in _x003.o
      __rk_queue_poll in _x010.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_event_type)
  "_rd_kafka_fatal_error", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_fatal_error in _x008.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_fatal_error)
  "_rd_kafka_get_err_descs", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_get_err_descs in _x009.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_get_err_descs)
  "_rd_kafka_get_watermark_offsets", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_get_watermark_offsets in _x017.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_get_watermark_offsets)
  "_rd_kafka_header_add", referenced from:
      _tmphdrs_to_chdrs in _x020.o
  "_rd_kafka_header_cnt", referenced from:
      __rk_queue_poll in _x010.o
  "_rd_kafka_header_get_all", referenced from:
      _chdrs_to_tmphdrs in _x010.o
      __rk_queue_poll in _x010.o
  "_rd_kafka_headers_destroy", referenced from:
      _do_produce in _x020.o
      __cgo_6d777e531ef7_Cfunc_do_produce in _x020.o
  "_rd_kafka_headers_new", referenced from:
      _tmphdrs_to_chdrs in _x020.o
  "_rd_kafka_init_transactions", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_init_transactions in _x020.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_init_transactions)
  "_rd_kafka_last_error", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_last_error in _x012.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_last_error)
  "_rd_kafka_mem_free", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_mem_free in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_mem_free)
  "_rd_kafka_message_headers", referenced from:
      __rk_queue_poll in _x010.o
  "_rd_kafka_message_timestamp", referenced from:
      __rk_queue_poll in _x010.o
  "_rd_kafka_metadata", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_metadata in _x017.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_metadata, __cgo_6d777e531ef7_Cfunc_rd_kafka_metadata_destroy )
  "_rd_kafka_metadata_destroy", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_metadata_destroy in _x017.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_metadata_destroy)
  "_rd_kafka_name", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_name in _x012.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_name)
  "_rd_kafka_new", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_new in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_new)
  "_rd_kafka_oauthbearer_set_token", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_oauthbearer_set_token in _x012.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_oauthbearer_set_token, __cgo_6d777e531ef7_Cfunc_rd_kafka_oauthbearer_set_token_failure )
  "_rd_kafka_oauthbearer_set_token_failure", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_oauthbearer_set_token_failure in _x012.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_oauthbearer_set_token_failure)
  "_rd_kafka_offsets_for_times", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_offsets_for_times in _x019.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_offsets_for_times)
  "_rd_kafka_offsets_store", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_offsets_store in _x007.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_offsets_store)
  "_rd_kafka_outq_len", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_outq_len in _x020.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_outq_len)
  "_rd_kafka_pause_partitions", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_pause_partitions in _x007.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_pause_partitions)
  "_rd_kafka_poll_set_consumer", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_poll_set_consumer in _x007.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_poll_set_consumer)
  "_rd_kafka_position", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_position in _x007.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_position)
  "_rd_kafka_produce_batch", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_produce_batch in _x020.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_produce_batch)
  "_rd_kafka_producev", referenced from:
      _do_produce in _x020.o
      __cgo_6d777e531ef7_Cfunc_do_produce in _x020.o
  "_rd_kafka_purge", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_purge in _x020.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_purge)
  "_rd_kafka_query_watermark_offsets", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_query_watermark_offsets in _x017.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_query_watermark_offsets)
  "_rd_kafka_queue_destroy", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_queue_destroy in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_queue_destroy)
  "_rd_kafka_queue_get_consumer", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_queue_get_consumer in _x007.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_queue_get_consumer)
  "_rd_kafka_queue_get_main", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_queue_get_main in _x007.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_queue_get_main)
  "_rd_kafka_queue_new", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_queue_new in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_queue_new)
  "_rd_kafka_queue_poll", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_queue_poll in _x003.o
      __rk_queue_poll in _x010.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_queue_poll)
  "_rd_kafka_resume_partitions", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_resume_partitions in _x007.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_resume_partitions)
  "_rd_kafka_seek", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_seek in _x007.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_seek)
  "_rd_kafka_send_offsets_to_transaction", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_send_offsets_to_transaction in _x020.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_send_offsets_to_transaction)
  "_rd_kafka_set_log_queue", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_set_log_queue in _x012.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_set_log_queue)
  "_rd_kafka_subscribe", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_subscribe in _x007.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_subscribe)
  "_rd_kafka_subscription", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_subscription in _x007.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_subscription)
  "_rd_kafka_test_fatal_error", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_test_fatal_error in _x008.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_test_fatal_error)
  "_rd_kafka_topic_conf_destroy", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_topic_conf_destroy in _x006.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_topic_conf_destroy)
  "_rd_kafka_topic_conf_new", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_topic_conf_new in _x006.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_topic_conf_new)
  "_rd_kafka_topic_conf_set", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_topic_conf_set in _x006.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_topic_conf_set)
  "_rd_kafka_topic_destroy", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_topic_destroy in _x012.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_topic_destroy)
  "_rd_kafka_topic_name", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_topic_name in _x012.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_topic_name)
  "_rd_kafka_topic_new", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_topic_new in _x012.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_topic_new)
  "_rd_kafka_topic_partition_destroy", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_topic_partition_destroy in _x010.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_topic_partition_destroy)
  "_rd_kafka_topic_partition_list_add", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_topic_partition_list_add in _x007.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_topic_partition_list_add)
  "_rd_kafka_topic_partition_list_destroy", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_topic_partition_list_destroy in _x007.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_topic_partition_list_destroy)
  "_rd_kafka_topic_partition_list_new", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_topic_partition_list_new in _x007.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_topic_partition_list_new)
  "_rd_kafka_topic_result_error", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_topic_result_error in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_topic_result_error_string, __cgo_6d777e531ef7_Cfunc_rd_kafka_topic_result_error )
  "_rd_kafka_topic_result_error_string", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_topic_result_error_string in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_topic_result_error_string)
  "_rd_kafka_topic_result_name", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_topic_result_name in _x003.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_topic_result_name)
  "_rd_kafka_unsubscribe", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_unsubscribe in _x007.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_unsubscribe)
  "_rd_kafka_version", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_version in _x014.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_version_str, __cgo_6d777e531ef7_Cfunc_rd_kafka_version )
  "_rd_kafka_version_str", referenced from:
      __cgo_6d777e531ef7_Cfunc_rd_kafka_version_str in _x009.o
     (maybe you meant: __cgo_6d777e531ef7_Cfunc_rd_kafka_version_str)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@edenhill
Copy link
Contributor

You need to build your application with -tags dynamic to have confluent-kafka-go link librdkafka dynamically.

@d7561985
Copy link

I guess we talking about librdkafka_vendor linking without any additional moves as it was before

@danielfmelo
Copy link

@StephenWuyun could you go through it somehow?

This was referenced Apr 1, 2021
@edenhill
Copy link
Contributor

edenhill commented Apr 1, 2021

  1. Install librdkafka separately (from source or brew)
  2. Build your Go application with -tags dynamic to make confluent-kafka-go link librdkafka dynamically.
  3. Success!

@d7561985
Copy link

d7561985 commented Apr 1, 2021

@edenhill i've already did that, but brew installs only x86 version + i was trying install librdkafa on M1 and i was stacked (half of libs exists in x86 platform)

@edenhill
Copy link
Contributor

edenhill commented Apr 1, 2021

Try installing librdkafka from source:
https://github.com/edenhill/librdkafka/#building

@d7561985
Copy link

d7561985 commented Apr 1, 2021

@edenhill but as i said brew provides libraries for x86... and opens issue to compile all dependencies... Please take look

https://gist.github.com/d7561985/b020e37814cd8b5d90a0068767a2a148

@jakobii
Copy link

jakobii commented Apr 22, 2021

Heres is what is did on my M1 Mac (macOS 11.2.2) to get it working:

git clone https://github.com/edenhill/librdkafka.git
cd librdkafka
./configure --install-deps # this did not work. i did not investigate.
brew install  openssl zstd pkg-config
./configure
make
sudo make install 

Then tried running tests in my own Go project:

# cd /your/project
go test ./... # this failed
go test ./... -tags dynamic # this worked!

@luoyuctl
Copy link

Heres is what is did on my M1 Mac (macOS 11.2.2) to get it working:

git clone https://github.com/edenhill/librdkafka.git
cd librdkafka
./configure --install-deps # this did not work. i did not investigate.
brew install  openssl zstd pkg-config
./configure
make
sudo make install 

Then tried running tests in my own Go project:

# cd /your/project
go test ./... # this failed
go test ./... -tags dynamic # this worked!

i try this for my m1 mac , but it's still not work.

when i run ./configure i found this

➜  librdkafka git:(master) ./configure --install-deps
checking for OS or distribution... ok (osx)
checking for C compiler from CC env... failed
checking for gcc (by command)... ok
checking for C++ compiler from CXX env... failed
checking for C++ compiler (g++)... ok
checking executable ld... ok
checking executable nm... ok
checking executable objdump... ok
checking executable strip... ok
checking executable libtool... ok
checking executable ranlib... ok
checking for debug symbols compiler flag (-g...)... ok
checking for pkgconfig (by command)... ok
checking for install (by command)... failed
checking for PIC (by compile)... ok
checking for GNU-compatible linker options... failed
checking for OSX linker options... ok
checking for GNU linker-script ld flag... failed
checking for Solaris linker-script ld flag... failed (ignore)
checking for __atomic_32 (by compile)... ok
checking for __atomic_64 (by compile)... ok
checking for socket (by compile)... ok
parsing version '0x010700ff'... ok (1.7.0)
checking for librt (by pkg-config)... failed
checking for librt (by compile)... failed
checking for libpthread (by pkg-config)... failed
checking for libpthread (by compile)... ok
checking for c11threads (by pkg-config)... failed
checking for c11threads (by compile)... failed (disable)
checking for libdl (by pkg-config)... failed
checking for libdl (by compile)... ok
checking for zlib (by pkg-config)... ok
checking for libcrypto (by pkg-config)... ok
checking for libssl (by pkg-config)... ok
checking for libsasl2 (by pkg-config)... failed
checking for libsasl2 (by compile)... ok
checking for libzstd (by pkg-config)... ok
checking for libm (by pkg-config)... failed
checking for libm (by compile)... ok
checking for liblz4 (by pkg-config)... ok
checking for syslog (by compile)... ok
checking for rapidjson (by compile)... failed (disable)
checking for crc32chw (by compile)... ok
checking for regex (by compile)... ok
checking for rand_r (by compile)... ok
checking for strndup (by compile)... ok
checking for strlcpy (by compile)... ok
checking for strerror_r (by compile)... ok
checking for strcasestr (by compile)... ok
checking for pthread_setname_gnu (by compile)... failed (disable)
checking for pthread_setname_darwin (by compile)... ok
checking for nm (by env NM)... ok (cached)
checking for getrusage (by compile)... ok
Generated Makefile.config
Generated config.h

Configuration summary:
  prefix                   /usr/local
  MKL_DISTRO               osx
  SOLIB_EXT                .dylib
  ARCH                     x86_64
  CPU                      generic
  GEN_PKG_CONFIG           y
  MKL_APP_NAME             librdkafka
  MKL_APP_DESC_ONELINE     The Apache Kafka C/C++ library
  CC                       gcc
  CXX                      g++
  LD                       ld
  NM                       nm
  OBJDUMP                  objdump
  STRIP                    strip
  LIBTOOL                  libtool
  RANLIB                   ranlib
  CPPFLAGS                 -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align
  PKG_CONFIG               pkg-config
  INSTALL                  install
  LIB_LDFLAGS              -shared -dynamiclib -Wl,-install_name,$(DESTDIR)$(libdir)/$(LIBFILENAME)
  RDKAFKA_VERSION_STR      1.7.0
  MKL_APP_VERSION          1.7.0
  LIBS                     -L/usr/local/Cellar/lz4/1.9.3/lib -llz4 -lm -L/usr/local/Cellar/zstd/1.5.0/lib -lzstd -lsasl2 -L/usr/local/Cellar/[email protected]/1.1.1k/lib -lssl -L/usr/local/Cellar/[email protected]/1.1.1k/lib -lcrypto -lz -ldl -lpthread
  MKL_PKGCONFIG_LIBS_PRIVATE -lm -lsasl2 -ldl -lpthread
  MKL_PKGCONFIG_REQUIRES_PRIVATE zlib libcrypto libssl libzstd liblz4
  CFLAGS                   -I/usr/local/Cellar/[email protected]/1.1.1k/include -I/usr/local/Cellar/[email protected]/1.1.1k/include -I/usr/local/Cellar/zstd/1.5.0/include -I/usr/local/Cellar/lz4/1.9.3/include
  MKL_PKGCONFIG_REQUIRES   zlib libcrypto libssl libzstd liblz4
  CXXFLAGS                 -Wno-non-virtual-dtor
  SYMDUMPER                $(NM) -g
  MKL_DYNAMIC_LIBS         -llz4 -lm -lzstd -lsasl2 -lssl -lcrypto -lz -ldl -lpthread
  exec_prefix              /usr/local
  bindir                   /usr/local/bin
  sbindir                  /usr/local/sbin
  libexecdir               /usr/local/libexec
  datadir                  /usr/local/share
  sysconfdir               /usr/local/etc
  sharedstatedir           /usr/local/com
  localstatedir            /usr/local/var
  runstatedir              /usr/local/var/run
  libdir                   /usr/local/lib
  includedir               /usr/local/include
  infodir                  /usr/local/info
  mandir                   /usr/local/man
  BUILT_WITH               GCC GXX PKGCONFIG OSXLD LIBDL PLUGINS ZLIB SSL SASL_CYRUS ZSTD HDRHISTOGRAM LZ4_EXT SYSLOG SNAPPY SOCKEM SASL_SCRAM SASL_OAUTHBEARER CRC32C_HW
Generated config.cache

when i install librdkafka , i found this

install librdkafka++.1.dylib $DESTDIR/usr/local/lib
[ -f "rdkafka++.pc" ] && ( \
                install -d $DESTDIR/usr/local/lib/pkgconfig && \
                install -m 0644 rdkafka++.pc $DESTDIR/usr/local/lib/pkgconfig \
        )
[ -f "rdkafka++-static.pc" ] && ( \
                install -d $DESTDIR/usr/local/lib/pkgconfig && \
                install -m 0644 rdkafka++-static.pc $DESTDIR/usr/local/lib/pkgconfig \
        )
(cd $DESTDIR/usr/local/lib && ln -sf librdkafka++.1.dylib librdkafka++.dylib)
WARNING: librdkafka-static.a: Not creating self-contained static library librdkafka-static.a: no static libraries available/enabled
Generating pkg-config file rdkafka-static.pc
Checking librdkafka integrity
librdkafka.1.dylib             OK
librdkafka.a                   OK
Symbol visibility              OK
Generating pkg-config file rdkafka++-static.pc
Checking librdkafka++ integrity
librdkafka++.1.dylib           OK
librdkafka++.a                 OK
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C examples
make[1]: Nothing to be done for `all'.
Installing documentation to /usr/local
install -d $DESTDIR/usr/local/share/doc/librdkafka
install LICENSE LICENSES.txt INTRODUCTION.md README.md CONFIGURATION.md STATISTICS.md CHANGELOG.md $DESTDIR/usr/local/share/doc/librdkafka

build error

# github.com/confluentinc/confluent-kafka-go/kafka
ld: warning: ignoring file ../../../../../../pkg/mod/github.com/confluentinc/[email protected]/kafka/librdkafka/librdkafka_darwin.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
Undefined symbols for architecture arm64:

is there any problem for my operate?

@luoyuctl
Copy link

luoyuctl commented May 25, 2021

all ready resolved , make sure your remove all of the x86_64 librdkafka , and use arm64 brew install
just like

arch -arm64 /opt/homebrew/bin/brew install librdkafka

and just need setting a few env, make sure go build use -tags dynamic , and a little pkg like 'pkg-config', then it's works!!!

@luoyuctl
Copy link

luoyuctl commented Aug 7, 2021

If you use vscode,use setting like this
image

@kurennoy16
Copy link

kurennoy16 commented Sep 9, 2021

Hey guys.
I stuck on the same issue but on the go get github.com/confluentinc/confluent-kafka-go/kafka for arm64
Any suggestions on how to solve it?

@bkorayoz
Copy link

Hello, I have tried building from source as mentioned below.

Heres is what is did on my M1 Mac (macOS 11.2.2) to get it working:

git clone https://github.com/edenhill/librdkafka.git
cd librdkafka
./configure --install-deps # this did not work. i did not investigate.
brew install  openssl zstd pkg-config
./configure
make
sudo make install 

Then tried running tests in my own Go project:

# cd /your/project
go test ./... # this failed
go test ./... -tags dynamic # this worked!

Then, I tried installing the library using brew by specifying arch, setting env and running with -tags dynamic flag as suggested below.

all ready resolved , make sure your remove all of the x86_64 librdkafka , and use arm64 brew install
just like

arch -arm64 /opt/homebrew/bin/brew install librdkafka

and just need setting a few env, make sure go build use -tags dynamic , and a little pkg like 'pkg-config', then it's works!!!

I still get the same error.

# github.com/confluentinc/confluent-kafka-go/kafka
ld: warning: ignoring file ../../pkg/mod/github.com/confluentinc/[email protected]/kafka/librdkafka_vendor/librdkafka_darwin.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
Undefined symbols for architecture arm64:
  "_rd_kafka_AdminOptions_destroy", referenced from:
      __cgo_497ae96c6da8_Cfunc_rd_kafka_AdminOptions_destroy in _x003.o
     (maybe you meant: __cgo_497ae96c6da8_Cfunc_rd_kafka_AdminOptions_destroy)
  "_rd_kafka_AdminOptions_new", referenced from:
      __cgo_497ae96c6da8_Cfunc_rd_kafka_AdminOptions_new in _x004.o
     (maybe you meant: __cgo_497ae96c6da8_Cfunc_rd_kafka_AdminOptions_new)
  "_rd_kafka_AdminOptions_set_operation_timeout", referenced from:
      __cgo_497ae96c6da8_Cfunc_rd_kafka_AdminOptions_set_operation_timeout in _x004.o
     (maybe you meant: __cgo_497ae96c6da8_Cfunc_rd_kafka_AdminOptions_set_operation_timeout)
  "_rd_kafka_AdminOptions_set_request_timeout", referenced from:
      __cgo_497ae96c6da8_Cfunc_rd_kafka_AdminOptions_set_request_timeout in _x004.o
     (maybe you meant: __cgo_497ae96c6da8_Cfunc_rd_kafka_AdminOptions_set_request_timeout)
  "_rd_kafka_AdminOptions_set_validate_only", referenced from:
      __cgo_497ae96c6da8_Cfunc_rd_kafka_AdminOptions_set_validate_only in _x004.o
     (maybe you meant: __cgo_497ae96c6da8_Cfunc_rd_kafka_AdminOptions_set_validate_only)
  "_rd_kafka_AlterConfigs", referenced from:
      __cgo_497ae96c6da8_Cfunc_rd_kafka_AlterConfigs in _x003.o
     (maybe you meant: __cgo_497ae96c6da8_Cfunc_rd_kafka_AlterConfigs, __cgo_497ae96c6da8_Cfunc_rd_kafka_AlterConfigs_result_resources ).........

I deleted the previously installed libraries from /usr/local/lib directory before each method. I also get the same error when run go get github.com/confluentinc/confluent-kafka-go/kafka.

MacBook Pro M1 MacOS 11.4
go version go1.17.1 darwin/arm64

Do you have any suggestions?

@MuweiHe
Copy link

MuweiHe commented Oct 3, 2021

So there's no way we can link librdkafka statically for a arm64 environment?

@vncatts
Copy link

vncatts commented Oct 4, 2021

Works on MacBook Pro M1 v11.2
go version go1.16.3 darwin/arm64

brew install librdkafka pkg-config

export PKG_CONFIG_PATH="/opt/homebrew/Cellar/[email protected]/1.1.1l/lib/pkgconfig"  # the version could be different on your mac

go run -tags dynamic main.go

@akshay-github-acc
Copy link

@edenhill.
System: MacOS Big Sur 11.6 (M1 chip)
I am able to do the go run with librdkafka. But not able to debug code on VS code using dlv-dap(if user has installed librdkafka).
I tried passing "args": ["-tags","dynamic"], in launch.json of VS code but unfortunately, I am getting the same error as we run the code with go run main.go from terminal that is without -tags dynamics.
Any workaround around this ?

@akshay-github-acc
Copy link

Hi,

I was able to debug go code with dlv-dap along with librdkafka library, so I though I should share with all. Need to make few change in launch.json
This has been done with following environments/tools/IDE etc.
IDE: VS code
Debug tool: dlv-dap
language : go1.16.8 darwin/arm64

Following are the changes in launch.json
{ "version": "0.2.0", "configurations": [ { "name": "Launch", "type": "go", "request": "launch", "mode": "auto", **"buildFlags": "-tags dynamic",** "program": "${workspaceFolder}", **"env": { "PKG_CONFIG_PATH":"/opt/homebrew/Cellar/[email protected]/1.1.1l/lib/pkgconfig" },** "args": [], "showLog": true } ] }

@jeevanragula
Copy link

jeevanragula commented Oct 25, 2021

These steps solved the issue for me.
My Go Version is: go version go1.17.2 darwin/arm64

brew install openssl
brew install librdkafka
brew install pkg-config
export PKG_CONFIG_PATH="/opt/homebrew/opt/openssl@3/lib/pkgconfig"
go build --tags dynamic main.go

@luisaugustomelo
Copy link

luisaugustomelo commented Oct 28, 2021

I am using go1.17rc2 darwin/arm64, packages installed by homebrew (openssl, librdkafka, pkg-config) and export PKG_CONFIG_PATH="/opt/homebrew/opt/openssl@3/lib/pkgconfig" but it doesn't work

Openssl info

Air-de-Luis :: ~ » brew info openssl         
openssl@3: stable 3.0.0 (bottled) [keg-only]
Cryptography and SSL/TLS Toolkit
https://openssl.org/
/usr/local/Cellar/openssl@3/3.0.0_1 (6,415 files, 28.1MB)
  Poured from bottle on 2021-10-27 at 19:08:55
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/[email protected]
License: Apache-2.0
==> Dependencies
Required: ca-certificates ✔
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
  /usr/local/etc/openssl@3/certs

and run
  /usr/local/opt/openssl@3/bin/c_rehash

openssl@3 is keg-only, which means it was not symlinked into /usr/local,
because macOS provides LibreSSL.

If you need to have openssl@3 first in your PATH, run:
  echo 'export PATH="/usr/local/opt/openssl@3/bin:$PATH"' >> ~/.zshrc

For compilers to find openssl@3 you may need to set:
  export LDFLAGS="-L/usr/local/opt/openssl@3/lib"
  export CPPFLAGS="-I/usr/local/opt/openssl@3/include"

For pkg-config to find openssl@3 you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/openssl@3/lib/pkgconfig"

==> Analytics
install: 93,032 (30 days), 107,645 (90 days), 107,651 (365 days)
install-on-request: 74,933 (30 days), 86,716 (90 days), 86,722 (365 days)
build-error: 0 (30 days)

librdkafka info

Air-de-Luis :: ~ » brew info librdkafka
librdkafka: stable 1.8.2 (bottled), HEAD
Apache Kafka C/C++ library
https://github.com/edenhill/librdkafka
/usr/local/Cellar/librdkafka/1.8.2 (36 files, 4.8MB) *
  Poured from bottle on 2021-10-27 at 20:56:40
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/librdkafka.rb
License: BSD-2-Clause
==> Dependencies
Build: pkg-config ✔, [email protected] ✔
Required: lz4 ✔, lzlib ✔, [email protected] ✔, zstd ✔
==> Options
--HEAD
	Install HEAD version
==> Analytics
install: 13,510 (30 days), 28,706 (90 days), 101,298 (365 days)
install-on-request: 9,459 (30 days), 18,972 (90 days), 65,206 (365 days)
build-error: 0 (30 days)

pkg-config info

Air-de-Luis :: ~ » brew info pkg-config
pkg-config: stable 0.29.2 (bottled)
Manage compile and link flags for libraries
https://freedesktop.org/wiki/Software/pkg-config/
/usr/local/Cellar/pkg-config/0.29.2_3 (11 files, 656.8KB) *
  Poured from bottle on 2021-10-27 at 17:35:02
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/pkg-config.rb
License: GPL-2.0-or-later
==> Analytics
install: 185,115 (30 days), 547,114 (90 days), 2,474,881 (365 days)
install-on-request: 22,742 (30 days), 70,015 (90 days), 336,667 (365 days)
build-error: 0 (30 days)

PKG_CONFIG_PATH

Air-de-Luis :: ~ » echo $PKG_CONFIG_PATH       
/usr/local/opt/openssl@3/lib/pkgconfig

But the following error ld: warning: ignoring file /usr/local/Cellar/librdkafka/1.8.2/lib/librdkafka.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64 persists. I already tried install librdkafka with arch -x86_64 brew install librdkafka but not has changed.

Does anyone have any suggestions for solving the problem?

@nolanleung
Copy link

@luisaugustomelo what is your build command? are you running with --tags dynamic?

@jatinkapoor1313
Copy link

These steps solved the issue for me. My Go Version is: go version go1.17.2 darwin/arm64

brew install openssl
brew install librdkafka
brew install pkg-config
export PKG_CONFIG_PATH="/opt/homebrew/opt/openssl@3/lib/pkgconfig"
go build --tags dynamic main.go

It worked for me

@Semkoo
Copy link

Semkoo commented Mar 8, 2022

How I overcame this solution with my M1 Pro.

I uninstalled go that is associated with brew so brew uninstall go and just downloaded the official release from https://go.dev/dl/ and everything worked out of the box.

It had to do with
GOROOT="/usr/local/Cellar/go/1.17.2/libexec"

@lavoiesl
Copy link

For this to be seamlessly supported on macos-arm64, the static library would need to be built on librdkafka. It appears to be planned for some time in the future: confluentinc/librdkafka#3546 (comment)

@johnpangalos
Copy link

How I overcame this solution with my M1 Pro.

I uninstalled go that is associated with brew so brew uninstall go and just downloaded the official release from https://go.dev/dl/ and everything worked out of the box.

It had to do with GOROOT="/usr/local/Cellar/go/1.17.2/libexec"

Just to be clear, this is the amd64 version, so it will be running using rosetta.

@RoarkeRandall
Copy link

Got go test ./... --tags dynamic to work. Not having any luck with go generate --tags dynamic though:

wire: generate failed
cmd/server/wire_gen.go:3: running "wire": exit status 1
wire: go [list -e -json -compiled=true -test=false -export=false -deps=true -find=false -tags=wireinject -- .]: exit status 2: # github.com/confluentinc/confluent-kafka-go/kafka
        ld: warning: ignoring file /Users/roarker/go/pkg/mod/github.com/confluentinc/[email protected]/kafka/librdkafka_vendor/librdkafka_darwin.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64

@i6u
Copy link

i6u commented May 20, 2022

Got go test ./... --tags dynamic to work. Not having any luck with go generate --tags dynamic though:

wire: generate failed
cmd/server/wire_gen.go:3: running "wire": exit status 1
wire: go [list -e -json -compiled=true -test=false -export=false -deps=true -find=false -tags=wireinject -- .]: exit status 2: # github.com/confluentinc/confluent-kafka-go/kafka
        ld: warning: ignoring file /Users/roarker/go/pkg/mod/github.com/confluentinc/[email protected]/kafka/librdkafka_vendor/librdkafka_darwin.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
git clone --depth=1 https://github.com/google/wire.git
cd wire
go build -tags dynamic -o wire cmd/wire/main.go
# replace gopath bin wire
mv wire $GOPATH/bin

@tayfunuyar
Copy link

Hi everyone,
I solved this problem apply below command.

brew install pkg-config
brew install librdkafka
brew install openssl

Dont forget your downloaded custom openssl version here.

image

PKG_CONFIG_PATH=/opt/homebrew/opt/[email protected]/lib/pkgconfig
-tags dynamic

@harshalbhatia
Copy link

Spent half a day on this and then realized that "buildTags" in launch.json is not getting picked up. Added "go.buildTags": "dynamic" to settings.json (Workspace or global, both are ok) and this started working instantly. (First you need to install openssl and librdkafka through brew though.

@guotie
Copy link

guotie commented Aug 31, 2022

I upgrade librdkafka from 1.9.1 to 1.9.2, but when i compile, the ld still use 1.9.1:

/usr/local/go/pkg/tool/darwin_arm64/link: running clang failed: exit status 1
ld: warning: directory not found for option '-L/opt/homebrew/Cellar/librdkafka/1.9.1/lib'
ld: library not found for -lrdkafka
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@areknoster
Copy link

@guotie I had the same issue. Ditching go installation and installing latest version helped eventually, no idea why though. Maybe some strange cgo linker caching

@guotie
Copy link

guotie commented Sep 2, 2022

If not reinstall golang, just

export LIBRARY_PATH=/opt/homebrew/Cellar/librdkafka/1.9.2/lib 
go build -tags dynamic

@renier
Copy link

renier commented Oct 18, 2022

Are there plans to properly support this without the special tagging? Seems possible given the doc.

@RoarkeRandall
Copy link

RoarkeRandall commented Nov 4, 2022

Since the release of 1.9.1 (https://github.com/confluentinc/confluent-kafka-go/releases/tag/v1.9.1) it is supported without the dynamic tags. Update your go.mod file, if that doesn't work you may need to do some fresh installs. I think the ticket should be closed.

@shyandsy
Copy link

mark

@Mohitj252
Copy link

Hi,

me too facing the same issue but after adding -tags dynamic to go build -v main.go command (I added -tags dynamic to go build command because i was facing the issue while building the arm image), it perfectly works fine. But now i catch up with one more known issue (#344), this new issue was seen by lot of people and there is no permanent solution as of now, could any one help us how can we fix both the issues together.

@sgtsquiggs
Copy link

I was having this issue, but upgrading to 1.9.2 and removing the dynamic tag now works for me on M1.

@emasab
Copy link
Contributor

emasab commented May 11, 2023

supported since v1.9.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests