Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#61466 closed defect (duplicate)

php74-curl @7.4.12: Build fails on macOS Big Sur 11.0.1 (x86_64), Xcode 12.2 (12B45b)

Reported by: ohader (Oliver Hader) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: bigsur Cc:
Port: php

Description

sudo port install php74-curl fails referring to missing Zend/PHP linker symbols (full log attached as file)

  • macOS Big Sur 11.0.1 (x86_64)
  • Xcode 12.2 (12B45b)
DEBUG: system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php74-curl/work/php-7.4.12/ext/curl" && /usr/bin/make -j8 -w all
make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php74-curl/work/php-7.4.12/ext/curl'
/bin/ksh /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php74-curl/work/php-7.4.12/ext/curl/libtool --mode=link /usr/bin/clang -DPHP_ATOM_INC -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php74-curl/work/php-7.4.12/ext/curl/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php74-curl/work/php-7.4.12/ext/curl/main -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php74-curl/work/php-7.4.12/ext/curl -I/opt/local/include/php74/php -I/opt/local/include/php74/php/main -I/opt/local/include/php74/php/TSRM -I/opt/local/include/php74/php/Zend -I/opt/local/include/php74/php/ext -I/opt/local/include/php74/php/ext/date/lib -I/opt/local/include  -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -DHAVE_CONFIG_H  -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64  -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64  -o curl.la -export-dynamic -avoid-version -prefer-pic -module -rpath /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php74-curl/work/php-7.4.12/ext/curl/modules  interface.lo multi.lo share.lo curl_file.lo -Wl,-rpath,/opt/local/lib -L/opt/local/lib -lcurl
/usr/bin/clang  -o .libs/curl.so -bundle  .libs/interface.o .libs/multi.o .libs/share.o .libs/curl_file.o  -L/opt/local/lib -lcurl  -arch x86_64 -Wl,-headerpad_max_install_names -Wl,-syslibroot -Wl,/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64 -Wl,-rpath -Wl,/opt/local/lib
Undefined symbols for architecture x86_64:
  "__ecalloc", referenced from:
      _alloc_curl_handle in interface.o
      __php_setup_easy_copy_handlers in interface.o
      __php_curl_setopt in interface.o
      _zif_curl_multi_init in multi.o
      _zif_curl_multi_setopt in multi.o
      _zif_curl_share_init in share.o
  "__efree", referenced from:
      _curl_free_string in interface.o
      _curl_free_cb_arg in interface.o
      __php_curl_close_ex in interface.o
      __php_setup_easy_copy_handlers in interface.o
      _build_mime_structure_from_hash in interface.o
      __php_curl_setopt in interface.o
      __php_curl_cleanup_handle in interface.o
      ...
  "__emalloc", referenced from:
      _zif_curl_getinfo in interface.o
      _zif_curl_error in interface.o
      _zif_curl_strerror in interface.o
      _zif_curl_escape in interface.o
      _zif_curl_unescape in interface.o
      _curl_write in interface.o
      _curl_write_header in interface.o
      ...
  "__emalloc_16", referenced from:
      _build_mime_structure_from_hash in interface.o
  "__emalloc_56", referenced from:
      _alloc_curl_handle in interface.o
  "__emalloc_8", referenced from:
      _alloc_curl_handle in interface.o
  "__estrndup", referenced from:
      _php_curl_option_str in interface.o
  "__php_stream_cast", referenced from:
      __php_curl_setopt in interface.o
  "__php_stream_flush", referenced from:
      _zif_curl_exec in interface.o
  "__php_stream_free", referenced from:
      _read_cb in interface.o
      _free_cb in interface.o
  "__php_stream_open_wrapper_ex", referenced from:
      _build_mime_structure_from_hash in interface.o
      _read_cb in interface.o
  "__php_stream_read", referenced from:
      _read_cb in interface.o
  "__php_stream_seek", referenced from:
      _seek_cb in interface.o
  "__php_stream_stat", referenced from:
      _build_mime_structure_from_hash in interface.o
  "__zend_hash_init", referenced from:
      _alloc_curl_handle in interface.o
  "__zend_new_array_0", referenced from:
      _zif_curl_version in interface.o
      _zif_curl_getinfo in interface.o
      _create_certinfo in interface.o
      _zif_curl_multi_info_read in multi.o
      __php_server_push_callback in multi.o
  "_add_assoc_double_ex", referenced from:
      _zif_curl_getinfo in interface.o
  "_add_assoc_long_ex", referenced from:
      _zif_curl_version in interface.o
      _zif_curl_getinfo in interface.o
      _zif_curl_multi_info_read in multi.o
  "_add_assoc_str_ex", referenced from:
      _zif_curl_getinfo in interface.o
  "_add_assoc_string_ex", referenced from:
      _zif_curl_version in interface.o
      _zif_curl_getinfo in interface.o
      _create_certinfo in interface.o
  "_add_assoc_zval_ex", referenced from:
      _zif_curl_version in interface.o
      _zif_curl_getinfo in interface.o
      _zif_curl_multi_info_read in multi.o
  "_add_next_index_string", referenced from:
      _zif_curl_version in interface.o
      _zif_curl_getinfo in interface.o
      __php_server_push_callback in multi.o
  "_core_globals", referenced from:
      _php_curl_option_url in interface.o
      __php_curl_setopt in interface.o
  "_display_ini_entries", referenced from:
      _zm_info_curl in interface.o
  "_empty_fcall_info", referenced from:
      __php_server_push_callback in multi.o
  "_empty_fcall_info_cache", referenced from:
      __php_curl_setopt in interface.o
      _zif_curl_multi_setopt in multi.o
  "_instanceof_function", referenced from:
      _build_mime_structure_from_hash in interface.o
  "_object_init_ex", referenced from:
      _zif_curl_file_create in curl_file.o
  "_php_check_open_basedir", referenced from:
      _build_mime_structure_from_hash in interface.o
      __php_curl_setopt in interface.o
  "_php_error_docref", referenced from:
      __php_curl_verify_handlers in interface.o
      _zif_curl_version in interface.o
      _zif_curl_init in interface.o
      _zif_curl_copy_handle in interface.o
      _build_mime_structure_from_hash in interface.o
      _zif_curl_setopt in interface.o
      __php_curl_setopt in interface.o
      ...
  "_php_file_le_pstream", referenced from:
      __php_curl_verify_handlers in interface.o
      __php_curl_setopt in interface.o
      _zif_curl_exec in interface.o
  "_php_file_le_stream", referenced from:
      __php_curl_verify_handlers in interface.o
      __php_curl_setopt in interface.o
      _zif_curl_exec in interface.o
  "_php_info_print_table_end", referenced from:
      _zm_info_curl in interface.o
  "_php_info_print_table_row", referenced from:
      _zm_info_curl in interface.o
  "_php_info_print_table_start", referenced from:
      _zm_info_curl in interface.o
  "_php_output_write", referenced from:
      _curl_write in interface.o
      _curl_write_header in interface.o
  "_rc_dtor_func", referenced from:
      __php_server_push_callback in multi.o
  "_smart_str_erealloc", referenced from:
      _curl_write in interface.o
      _curl_write_header in interface.o
  "_zend_call_function", referenced from:
      _curl_write in interface.o
      _curl_read in interface.o
      _curl_write_header in interface.o
      _curl_progress in interface.o
      _curl_fnmatch in interface.o
      __php_server_push_callback in multi.o
  "_zend_class_serialize_deny", referenced from:
      _curlfile_register_class in curl_file.o
  "_zend_class_unserialize_deny", referenced from:
      _curlfile_register_class in curl_file.o
  "_zend_declare_property_string", referenced from:
      _curlfile_register_class in curl_file.o
  "_zend_empty_string", referenced from:
      _zif_curl_exec in interface.o
      _zif_curl_error in interface.o
      _zif_curl_multi_getcontent in multi.o
  "_zend_fcall_info_argn", referenced from:
      __php_server_push_callback in multi.o
  "_zend_fcall_info_args_clear", referenced from:
      __php_server_push_callback in multi.o
  "_zend_fcall_info_init", referenced from:
      __php_server_push_callback in multi.o
  "_zend_fetch_resource", referenced from:
      _zif_curl_copy_handle in interface.o
      _zif_curl_setopt in interface.o
      _zif_curl_setopt_array in interface.o
      _zif_curl_exec in interface.o
      _zif_curl_getinfo in interface.o
      _zif_curl_error in interface.o
      _zif_curl_errno in interface.o
      ...
  "_zend_fetch_resource2_ex", referenced from:
      __php_curl_verify_handlers in interface.o
      __php_curl_setopt in interface.o
      _zif_curl_exec in interface.o
  "_zend_fetch_resource_ex", referenced from:
      __php_curl_setopt in interface.o
  "_zend_hash_destroy", referenced from:
      __php_curl_close_ex in interface.o
  "_zend_hash_index_update", referenced from:
      __php_curl_setopt in interface.o
  "_zend_hash_next_index_insert", referenced from:
      __php_curl_setopt in interface.o
      _create_certinfo in interface.o
  "_zend_ini_string_ex", referenced from:
      __php_curl_set_default_options in interface.o
  "_zend_is_true", referenced from:
      __php_curl_setopt in interface.o
  "_zend_list_close", referenced from:
      _zif_curl_close in interface.o
      _zif_curl_multi_close in multi.o
      _zif_curl_share_close in share.o
  "_zend_list_delete", referenced from:
      __php_curl_multi_cleanup_list in multi.o
  "_zend_llist_add_element", referenced from:
      _build_mime_structure_from_hash in interface.o
      _php_curl_option_str in interface.o
      _zif_curl_multi_add_handle in multi.o
      __php_server_push_callback in multi.o
  "_zend_llist_clean", referenced from:
      __php_curl_close_ex in interface.o
      _build_mime_structure_from_hash in interface.o
      __php_curl_multi_close in multi.o
  "_zend_llist_del_element", referenced from:
      _zif_curl_multi_remove_handle in multi.o
  "_zend_llist_get_first_ex", referenced from:
      _zif_curl_multi_exec in multi.o
      __php_curl_multi_find_easy_handle in multi.o
      __php_curl_multi_close in multi.o
  "_zend_llist_get_next_ex", referenced from:
      _zif_curl_multi_exec in multi.o
      __php_curl_multi_find_easy_handle in multi.o
      __php_curl_multi_close in multi.o
  "_zend_llist_init", referenced from:
      _alloc_curl_handle in interface.o
      _zif_curl_multi_init in multi.o
  "_zend_long_to_str", referenced from:
      _build_mime_structure_from_hash in interface.o
  "_zend_parse_arg_double_slow", referenced from:
      _zif_curl_multi_select in multi.o
  "_zend_parse_arg_long_slow", referenced from:
      _zif_curl_version in interface.o
      _zif_curl_setopt in interface.o
      _zif_curl_getinfo in interface.o
      _zif_curl_strerror in interface.o
      _zif_curl_pause in interface.o
      _zif_curl_multi_strerror in multi.o
      _zif_curl_multi_setopt in multi.o
      ...
  "_zend_parse_arg_str_slow", referenced from:
      _zif_curl_init in interface.o
      _zif_curl_escape in interface.o
      _zif_curl_unescape in interface.o
      _curlfile_ctor in curl_file.o
      _curlfile_set_property in curl_file.o
  "_zend_read_property", referenced from:
      _build_mime_structure_from_hash in interface.o
      _curlfile_get_property in curl_file.o
  "_zend_register_ini_entries", referenced from:
      _zm_startup_curl in interface.o
  "_zend_register_internal_class", referenced from:
      _curlfile_register_class in curl_file.o
  "_zend_register_list_destructors_ex", referenced from:
      _zm_startup_curl in interface.o
  "_zend_register_long_constant", referenced from:
      _zm_startup_curl in interface.o
  "_zend_register_resource", referenced from:
      _zif_curl_init in interface.o
      _zif_curl_copy_handle in interface.o
      _zif_curl_multi_init in multi.o
      __php_server_push_callback in multi.o
      _zif_curl_share_init in share.o
  "_zend_string_init_interned", referenced from:
      _curlfile_register_class in curl_file.o
  "_zend_try_assign_typed_ref_long", referenced from:
      _zif_curl_multi_exec in multi.o
      _zif_curl_multi_info_read in multi.o
  "_zend_unregister_ini_entries", referenced from:
      _zm_shutdown_curl in interface.o
  "_zend_update_property_string", referenced from:
      _curlfile_ctor in curl_file.o
      _curlfile_set_property in curl_file.o
  "_zend_wrong_parameter_type_error", referenced from:
      _zif_curl_version in interface.o
      _zif_curl_init in interface.o
      _zif_curl_copy_handle in interface.o
      _zif_curl_setopt in interface.o
      _zif_curl_setopt_array in interface.o
      _zif_curl_exec in interface.o
      _zif_curl_getinfo in interface.o
      ...
  "_zend_wrong_parameters_count_error", referenced from:
      _zif_curl_version in interface.o
      _zif_curl_init in interface.o
      _zif_curl_copy_handle in interface.o
      _zif_curl_setopt in interface.o
      _zif_curl_setopt_array in interface.o
      _zif_curl_exec in interface.o
      _zif_curl_getinfo in interface.o
      ...
  "_zend_wrong_parameters_none_error", referenced from:
      _zif_curl_multi_init in multi.o
      _zif_curl_share_init in share.o
      _curlfile_get_property in curl_file.o
  "_zval_get_long_func", referenced from:
      __php_curl_setopt in interface.o
      _curl_write in interface.o
      _curl_write_header in interface.o
      _curl_progress in interface.o
      _curl_fnmatch in interface.o
      _zif_curl_multi_exec in multi.o
      _zif_curl_multi_setopt in multi.o
      ...
  "_zval_get_string_func", referenced from:
      _build_mime_structure_from_hash in interface.o
      __php_curl_setopt in interface.o
  "_zval_ptr_dtor", referenced from:
      __php_curl_verify_handlers in interface.o
      __php_curl_close_ex in interface.o
      _build_mime_structure_from_hash in interface.o
      __php_curl_setopt in interface.o
      _zif_curl_reset in interface.o
      _curl_write in interface.o
      _curl_read in interface.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: *** [curl.la] Error 1
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php74-curl/work/php-7.4.12/ext/curl'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php74-curl/work/php-7.4.12/ext/curl" && /usr/bin/make -j8 -w all
Exit code: 2

Attachments (1)

main.log (201.7 KB) - added by ohader (Oliver Hader) 4 years ago.
build log

Download all attachments as: .zip

Change History (5)

Changed 4 years ago by ohader (Oliver Hader)

Attachment: main.log added

build log

comment:1 Changed 4 years ago by ohader (Oliver Hader)

Report in #61464 looks similar (albeit it's a different PHP version)

comment:2 Changed 4 years ago by eljakim (Eljakim Schrijvers)

The following ports appear to have the same issue:

  • php74-curl
  • php74-exif
  • php74-gd
  • php74-iconv
  • php74-imap
  • php74-intl
  • php74-redis
  • php74-mysql

I stopped trying after this.

comment:3 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: duplicate
Status: assignedclosed

Probably the usual libtool bug with macOS 11+. I'll handle it in #61464.

comment:4 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: bigsur added
Port: php added; php74-curl removed
Note: See TracTickets for help on using tickets.