-
Notifications
You must be signed in to change notification settings - Fork 86
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
OSS C SDK 在mac上面make失败 #62
Comments
curl apr apr-util 依赖均已安装 |
同问,mac 下面,也编译失败, -- Configuring incomplete, errors occurred! CMakeOutput.log 如下 The output was: Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out" The C compiler identification is AppleClang, found in "/Users/dylanpoe/myown/aliyun-oss-c-sdk/CMakeFiles/3.13.2/CompilerIdC/a.out" Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded. The output was: Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out" The CXX compiler identification is AppleClang, found in "/Users/dylanpoe/myown/aliyun-oss-c-sdk/CMakeFiles/3.13.2/CompilerIdCXX/a.out" Determining if the C compiler works passed with the following output: Run Build Command:"/usr/local/bin/gmake" "cmTC_df8fd/fast" Detecting C compiler ABI info compiled with the following output: Run Build Command:"/usr/local/bin/gmake" "cmTC_b3838/fast" Parsed C implicit link information from above output: Detecting C [-std=c11] compiler features compiled with the following output: Run Build Command:"/usr/local/bin/gmake" "cmTC_5fb49/fast"
Detecting C [-std=c99] compiler features compiled with the following output: Run Build Command:"/usr/local/bin/gmake" "cmTC_a3472/fast"
Detecting C [-std=c90] compiler features compiled with the following output: Run Build Command:"/usr/local/bin/gmake" "cmTC_f5b37/fast"
Determining if the CXX compiler works passed with the following output: Run Build Command:"/usr/local/bin/gmake" "cmTC_8f2fd/fast" Detecting CXX compiler ABI info compiled with the following output: Run Build Command:"/usr/local/bin/gmake" "cmTC_3831a/fast" Parsed CXX implicit link information from above output: Detecting CXX [-std=c++1z] compiler features compiled with the following output: Run Build Command:"/usr/local/bin/gmake" "cmTC_cb0a8/fast"
Detecting CXX [-std=c++14] compiler features compiled with the following output: Run Build Command:"/usr/local/bin/gmake" "cmTC_61b40/fast"
Detecting CXX [-std=c++11] compiler features compiled with the following output: Run Build Command:"/usr/local/bin/gmake" "cmTC_07a34/fast"
Detecting CXX [-std=c++98] compiler features compiled with the following output: Run Build Command:"/usr/local/bin/gmake" "cmTC_c42e1/fast"
|
用xcode |
Undefined symbols for architecture x86_64:
"_apr_array_make", referenced from:
_aos_fstack_create in aos_fstack.o
"_apr_array_pop", referenced from:
_aos_fstack_pop in aos_fstack.o
"_apr_array_push", referenced from:
_aos_fstack_push in aos_fstack.o
"_apr_atomic_inc32", referenced from:
_upload_part in oss_resumable.o
_oss_resumable_upload_file_with_cp in oss_resumable.o
_oss_resumable_download_file_internal in oss_resumable.o
"_apr_atomic_read32", referenced from:
_upload_part in oss_resumable.o
_oss_resumable_upload_file_without_cp in oss_resumable.o
_oss_resumable_upload_file_with_cp in oss_resumable.o
_download_part_thread in oss_resumable.o
_oss_resumable_download_file_internal in oss_resumable.o
"_apr_file_close", referenced from:
_aos_open_file_for_read in aos_buf.o
_aos_http_io_deinitialize in aos_http_io.o
_aos_transport_cleanup in aos_transport.o
_oss_get_file_info in oss_resumable.o
_oss_does_file_exist in oss_resumable.o
_oss_load_checkpoint in oss_resumable.o
_oss_resumable_upload_file_with_cp in oss_resumable.o
...
"_apr_file_flush", referenced from:
_oss_dump_checkpoint in oss_resumable.o
"_apr_file_info_get", referenced from:
_aos_open_file_for_read in aos_buf.o
_oss_get_file_info in oss_resumable.o
_oss_load_checkpoint in oss_resumable.o
"_apr_file_open", referenced from:
_aos_open_file_for_read in aos_buf.o
_aos_open_file_for_write in aos_buf.o
_aos_open_file_for_write_notrunc in aos_buf.o
_oss_get_file_info in oss_resumable.o
_oss_does_file_exist in oss_resumable.o
_oss_open_checkpoint_file in oss_resumable.o
_oss_load_checkpoint in oss_resumable.o
...
"_apr_file_read", referenced from:
_aos_read_http_body_file in aos_http_io.o
"_apr_file_read_full", referenced from:
_oss_load_checkpoint in oss_resumable.o
"_apr_file_remove", referenced from:
_oss_resumable_upload_file_with_cp in oss_resumable.o
_oss_resumable_download_file_internal in oss_resumable.o
_oss_temp_file_rename in oss_util.o
"_apr_file_rename", referenced from:
_oss_resumable_download_file_internal in oss_resumable.o
_oss_temp_file_rename in oss_util.o
"_apr_file_seek", referenced from:
_aos_open_file_for_range_read in aos_buf.o
_download_part in oss_resumable.o
"_apr_file_trunc", referenced from:
_oss_dump_checkpoint in oss_resumable.o
_oss_resumable_download_file_internal in oss_resumable.o
"_apr_file_write", referenced from:
_aos_write_http_body_file in aos_http_io.o
_aos_log_print_default in aos_log.o
_oss_dump_checkpoint in oss_resumable.o
"_apr_initialize", referenced from:
_aos_http_io_initialize in aos_http_io.o
"_apr_is_empty_table", referenced from:
_aos_query_params_to_string in aos_util.o
_oss_get_canonicalized_headers in oss_auth.o
_oss_get_canonicalized_resource in oss_auth.o
_oss_get_canonicalized_params in oss_auth.o
"_apr_md5_final", referenced from:
_aos_md5 in aos_util.o
"_apr_md5_init", referenced from:
_aos_md5 in aos_util.o
"_apr_md5_update", referenced from:
_aos_md5 in aos_util.o
"_apr_os_thread_current", referenced from:
_aos_log_format_default in aos_log.o
"_apr_palloc", referenced from:
_aos_create_buf in aos_buf.o
_aos_buf_pack in aos_buf.o
_aos_buf_list_content in aos_buf.o
_aos_create_file_buf in aos_buf.o
_aos_buf_append_string in aos_buf.o
_aos_http_request_options_create in aos_http_io.o
_aos_http_controller_create in aos_http_io.o
...
"_apr_pool_create_ex", referenced from:
_aos_http_controller_create in aos_http_io.o
_aos_http_io_initialize in aos_http_io.o
_oss_delete_objects_by_prefix in oss_bucket.o
_oss_get_sorted_uploaded_part in oss_multipart.o
_oss_upload_file in oss_multipart.o
_oss_build_thread_params in oss_resumable.o
_oss_resumable_upload_file_without_cp in oss_resumable.o
...
"_apr_pool_destroy", referenced from:
_aos_http_io_deinitialize in aos_http_io.o
_oss_delete_objects_by_prefix in oss_bucket.o
_oss_get_sorted_uploaded_part in oss_multipart.o
_oss_upload_file in oss_multipart.o
_oss_destroy_thread_pool in oss_resumable.o
_oss_resumable_upload_file_without_cp in oss_resumable.o
_oss_resumable_upload_file_with_cp in oss_resumable.o
...
"_apr_psprintf", referenced from:
_aos_curl_default_write_callback in aos_transport.o
_aos_init_curl_headers in aos_transport.o
_aos_init_curl_url in aos_transport.o
_oss_sign_headers in oss_auth.o
_get_oss_request_signature in oss_auth.o
_oss_get_signed_url in oss_auth.o
_oss_get_rtmp_signed_url in oss_auth.o
...
"_apr_pstrdup", referenced from:
_aos_status_dup in aos_status.o
_aos_status_parse_from_body in aos_status.o
_aos_curl_http_transport_perform in aos_transport.o
_aos_curl_transport_setup in aos_transport.o
_aos_curl_transport_headers_done in aos_transport.o
_oss_delete_objects_by_prefix in oss_bucket.o
_oss_upload_file in oss_multipart.o
...
"_apr_pstrndup", referenced from:
_aos_pstrdup in aos_string.o
"_apr_queue_create", referenced from:
_oss_resumable_upload_file_without_cp in oss_resumable.o
_oss_resumable_upload_file_with_cp in oss_resumable.o
_oss_resumable_download_file_internal in oss_resumable.o
"_apr_queue_pop", referenced from:
_oss_resumable_upload_file_without_cp in oss_resumable.o
_oss_resumable_upload_file_with_cp in oss_resumable.o
_oss_resumable_download_file_internal in oss_resumable.o
"_apr_queue_push", referenced from:
_upload_part in oss_resumable.o
_oss_resumable_upload_file_with_cp in oss_resumable.o
_download_part_thread in oss_resumable.o
_oss_resumable_download_file_internal in oss_resumable.o
"_apr_queue_size", referenced from:
_oss_resumable_download_file_internal in oss_resumable.o
"_apr_queue_trypop", referenced from:
_oss_resumable_upload_file_without_cp in oss_resumable.o
_oss_resumable_upload_file_with_cp in oss_resumable.o
_download_part_thread in oss_resumable.o
"_apr_sha1_final", referenced from:
_HMAC_SHA1 in aos_util.o
"_apr_sha1_init", referenced from:
_HMAC_SHA1 in aos_util.o
"_apr_sha1_update", referenced from:
_HMAC_SHA1 in aos_util.o
"_apr_sleep", referenced from:
_oss_resumable_upload_file_without_cp in oss_resumable.o
_oss_resumable_upload_file_with_cp in oss_resumable.o
"_apr_snprintf", referenced from:
_aos_http_io_initialize in aos_http_io.o
_aos_log_format_default in aos_log.o
_aos_convert_to_gmt_time in aos_util.o
_aos_query_params_to_string in aos_util.o
_oss_get_canonicalized_headers in oss_auth.o
_oss_get_canonicalized_resource in oss_auth.o
_oss_sign_request in oss_auth.o
...
"_apr_stat", referenced from:
_oss_resumable_download_file_internal in oss_resumable.o
"_apr_strerror", referenced from:
_aos_open_file_for_read in aos_buf.o
_aos_open_file_for_write in aos_buf.o
_aos_open_file_for_write_notrunc in aos_buf.o
_aos_read_http_body_file in aos_http_io.o
_aos_write_http_body_file in aos_http_io.o
_aos_http_io_initialize in aos_http_io.o
_aos_transport_cleanup in aos_transport.o
...
"_apr_strnatcasecmp", referenced from:
_aos_gnome_sort in aos_util.o
"_apr_strnatcmp", referenced from:
_is_oss_sub_resource in oss_auth.o
"_apr_table_add", referenced from:
_oss_put_bucket_acl in oss_bucket.o
_oss_get_bucket_acl in oss_bucket.o
_oss_get_bucket_location in oss_bucket.o
_oss_get_bucket_info in oss_bucket.o
_oss_get_bucket_stat in oss_bucket.o
_oss_get_bucket_referer in oss_bucket.o
_oss_get_bucket_storage_capacity in oss_bucket.o
...
"_apr_table_addn", referenced from:
_aos_curl_response_headers_parse in aos_transport.o
_oss_sign_headers in oss_auth.o
_oss_put_bucket_storage_capacity in oss_bucket.o
_oss_delete_objects in oss_bucket.o
"_apr_table_elts", referenced from:
_aos_init_curl_headers in aos_transport.o
_aos_query_params_to_string in aos_util.o
_oss_get_canonicalized_headers in oss_auth.o
_oss_get_canonicalized_resource in oss_auth.o
_oss_get_rtmp_signed_url in oss_auth.o
_oss_get_canonicalized_params in oss_auth.o
"_apr_table_get", referenced from:
_aos_curl_transport_headers_done in aos_transport.o
_oss_get_string_to_sign in oss_auth.o
_oss_get_canonicalized_headers in oss_auth.o
_oss_get_canonicalized_resource in oss_auth.o
_oss_sign_request in oss_auth.o
_oss_get_canonicalized_params in oss_auth.o
_oss_upload_file in oss_multipart.o
...
"_apr_table_make", referenced from:
_aos_http_request_create in aos_http_io.o
_aos_http_response_create in aos_http_io.o
_oss_upload_file in oss_multipart.o
_oss_put_symlink in oss_object.o
_oss_resumable_upload_file_without_cp in oss_resumable.o
_oss_resumable_upload_file_with_cp in oss_resumable.o
_aos_table_create_if_null in oss_util.o
...
"_apr_table_set", referenced from:
_oss_sign_request in oss_auth.o
_get_oss_request_signature in oss_auth.o
_oss_get_signed_url in oss_auth.o
_oss_get_rtmp_signed_url in oss_auth.o
_oss_create_bucket_with_params in oss_bucket.o
_oss_put_bucket_acl in oss_bucket.o
_oss_delete_objects in oss_bucket.o
...
"_apr_terminate", referenced from:
_aos_http_io_deinitialize in aos_http_io.o
"_apr_thread_create", referenced from:
_oss_resumable_download_file_internal in oss_resumable.o
"_apr_thread_join", referenced from:
_oss_resumable_download_file_internal in oss_resumable.o
"_apr_thread_mutex_create", referenced from:
_aos_http_io_initialize in aos_http_io.o
"_apr_thread_mutex_destroy", referenced from:
_aos_http_io_deinitialize in aos_http_io.o
"_apr_thread_mutex_lock", referenced from:
_aos_request_get in aos_http_io.o
_request_release in aos_http_io.o
"_apr_thread_mutex_unlock", referenced from:
_aos_request_get in aos_http_io.o
_request_release in aos_http_io.o
"_apr_thread_pool_create", referenced from:
_oss_resumable_upload_file_without_cp in oss_resumable.o
_oss_resumable_upload_file_with_cp in oss_resumable.o
"_apr_thread_pool_push", referenced from:
_oss_resumable_upload_file_without_cp in oss_resumable.o
_oss_resumable_upload_file_with_cp in oss_resumable.o
"_apr_time_exp_gmt", referenced from:
_aos_get_gmt_str_time in aos_util.o
"_apr_time_exp_lt", referenced from:
_aos_log_format_default in aos_log.o
"_apr_time_now", referenced from:
_aos_log_format_default in aos_log.o
_aos_curl_default_header_callback in aos_transport.o
_aos_curl_default_write_callback in aos_transport.o
_aos_curl_http_transport_perform in aos_transport.o
_aos_get_gmt_str_time in aos_util.o
"_curl_easy_cleanup", referenced from:
_request_release in aos_http_io.o
_aos_http_io_deinitialize in aos_http_io.o
"_curl_easy_getinfo", referenced from:
_aos_curl_transport_headers_done in aos_transport.o
"_curl_easy_init", referenced from:
_aos_request_get in aos_http_io.o
"_curl_easy_perform", referenced from:
_aos_curl_http_transport_perform in aos_transport.o
"_curl_easy_reset", referenced from:
_aos_request_get in aos_http_io.o
"_curl_easy_setopt", referenced from:
_aos_curl_transport_setup in aos_transport.o
"_curl_easy_strerror", referenced from:
_aos_http_io_initialize in aos_http_io.o
_aos_curl_http_transport_perform in aos_transport.o
_aos_curl_transport_setup in aos_transport.o
_aos_curl_transport_headers_done in aos_transport.o
"_curl_global_init", referenced from:
_aos_http_io_initialize in aos_http_io.o
"_curl_slist_append", referenced from:
_aos_init_curl_headers in aos_transport.o
"_curl_slist_free_all", referenced from:
_aos_init_curl_headers in aos_transport.o
"_mxmlDelete", referenced from:
_aos_status_parse_from_body in aos_status.o
_oss_acl_parse_from_body in oss_xml.o
_oss_location_parse_from_body in oss_xml.o
_oss_storage_capacity_parse_from_body in oss_xml.o
_oss_logging_parse_from_body in oss_xml.o
_oss_list_objects_parse_from_body in oss_xml.o
_oss_list_buckets_parse_from_body in oss_xml.o
...
"_mxmlFindElement", referenced from:
_aos_status_parse_from_body in aos_status.o
_get_xmlnode_value in oss_xml.o
_oss_logging_parse_from_body in oss_xml.o
_oss_list_objects_owner_parse in oss_xml.o
_oss_list_objects_content_parse in oss_xml.o
_oss_list_objects_contents_parse in oss_xml.o
_oss_list_objects_prefix_parse in oss_xml.o
...
"_mxmlLoadString", referenced from:
_aos_parse_xml_body in aos_util.o
_oss_checkpoint_parse_from_body in oss_xml.o
"_mxmlNewElement", referenced from:
_build_complete_multipart_upload_xml in oss_xml.o
_build_bucket_logging_xml in oss_xml.o
_build_lifecycle_xml in oss_xml.o
_build_referer_config_xml in oss_xml.o
_build_cors_rule_xml in oss_xml.o
_build_website_config_xml in oss_xml.o
_build_bucket_storage_class_xml in oss_xml.o
...
"_mxmlNewText", referenced from:
_build_complete_multipart_upload_xml in oss_xml.o
_build_bucket_logging_xml in oss_xml.o
_build_lifecycle_xml in oss_xml.o
_build_referer_config_xml in oss_xml.o
_build_cors_rule_xml in oss_xml.o
_build_website_config_xml in oss_xml.o
_build_bucket_storage_class_xml in oss_xml.o
...
"_mxmlNewXML", referenced from:
_build_complete_multipart_upload_xml in oss_xml.o
_build_bucket_logging_xml in oss_xml.o
_build_lifecycle_xml in oss_xml.o
_build_referer_config_xml in oss_xml.o
_build_cors_rule_xml in oss_xml.o
_build_website_config_xml in oss_xml.o
_build_bucket_storage_class_xml in oss_xml.o
...
"_mxmlSaveString", referenced from:
_new_xml_buff in oss_xml.o
"_mxml_opaque_cb", referenced from:
_aos_parse_xml_body in aos_util.o
_oss_checkpoint_parse_from_body in oss_xml.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [build/lib/liboss_c_sdk.3.0.0.dylib] Error 1
make[1]: *** [CMakeFiles/oss_c_sdk.dir/all] Error 2
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: