[MacPorts] #61464: php73-gd failed to build on MacOS11

MacPorts noreply at macports.org
Sun Nov 15 08:02:38 UTC 2020


#61464: php73-gd failed to build on MacOS11
---------------------------+------------------------
  Reporter:  andy-yx-chen  |      Owner:  ryandesign
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.6.4
Resolution:                |   Keywords:
      Port:  php73-gd      |
---------------------------+------------------------
Changes (by jmroot):

 * keywords:  php73-gd =>
 * status:  new => assigned
 * owner:  (none) => ryandesign


Old description:

> Looks like some c files were missing
>
> Undefined symbols for architecture x86_64:
>   "___zend_malloc", referenced from:
>       _fontFetch in gdft.o
>       _php_gd_gdCacheCreate in gdcache.o
>       _php_gd_gdCacheGet in gdcache.o
>   "__convert_to_string", referenced from:
>       _zif_imagecreatefromstring in gd.o
>   "__ecalloc", referenced from:
>       __php_image_output_ctx in gd.o
>       _php_gd_gdImageCreate in gd.o
>       _php_gd_gdImageCreateTrueColor in gd.o
>       _php_gd_gdImageFill in gd.o
>       _php_gd_gdImageCreateFromGd2Ctx in gd_gd2.o
>       _php_gd_gdImageCreateFromGd2PartCtx in gd_gd2.o
>       __gd2GetHeader in gd_gd2.o
>       ...
>   "__efree", referenced from:
>       _php_free_gd_font in gd.o
>       _zif_imageloadfont in gd.o
>       _zif_imagesetstyle in gd.o
>       __php_image_create_from in gd.o
>       __php_image_output in gd.o
>       _php_imagepolygon in gd.o
>       _php_imagechar in gd.o
>       ...
>   "__emalloc", referenced from:
>       _zif_imageloadfont in gd.o
>       _php_gd_gdImageCreate in gd.o
>       _php_gd_gdImageCreateTrueColor in gd.o
>       _php_gd_gdImageFilledPolygon in gd.o
>       _php_gd_gdImageCopyResized in gd.o
>       _php_gd_gdImageSetStyle in gd.o
>       _gdImagePaletteToTrueColor in gd.o
>       ...
>   "__emalloc_1024", referenced from:
>       _php_gd_gdImageStringFTEx in gdft.o
>       _gdImageBmpCtx in gd_bmp.o
>   "__emalloc_16", referenced from:
>       __gdContributionsCalc in gd_interpolation.o
>   "__emalloc_24", referenced from:
>       _zif_imageloadfont in gd.o
>       _php_gd_createwbmp in wbmp.o
>       _php_gd_readwbmp in wbmp.o
>   "__emalloc_32", referenced from:
>       _php_gd_gdNewDynamicCtxEx in gd_io_dp.o
>       _tweenColorFetch in gdft.o
>   "__emalloc_768", referenced from:
>       _php_gd_gdImageCreateFromPngCtx in gd_png.o
>   "__emalloc_80", referenced from:
>       _php_gd_gdNewDynamicCtxEx in gd_io_dp.o
>       _php_gd_gdNewFileCtx in gd_io_file.o
>       _php_gd_gdNewSSCtx in gd_io_ss.o
>   "__emalloc_large", referenced from:
>       _php_gd_gdImageCreateTrueColor in gd.o
>   "__erealloc", referenced from:
>       _php_gd_gdImageFilledPolygon in gd.o
>       _gdReallocDynamic in gd_io_dp.o
>       _gdImageCreateFromWebpCtx in gd_webp.o
>       _gdImageTrueColorToPaletteBody in gd_topal.o
>   "__estrdup", referenced from:
>       _fontFetch in gdft.o
>       _php_gd_gdImageXbmCtx in gd_xbm.o
>   "__estrndup", referenced from:
>       _php_imagechar in gd.o
>   "__php_stream_cast", referenced from:
>       __php_image_create_from in gd.o
>   "__php_stream_copy_to_mem", referenced from:
>       __php_image_create_from in gd.o
>   "__php_stream_eof", referenced from:
>       _zif_imageloadfont in gd.o
>   "__php_stream_free", referenced from:
>       _zif_imageloadfont in gd.o
>       __php_image_create_from in gd.o
>       __php_image_stream_ctxfreeandclose in gd.o
>   "__php_stream_open_wrapper_ex", referenced from:
>       _zif_imageloadfont in gd.o
>       __php_image_create_from in gd.o
>       __php_image_output_ctx in gd.o
>   "__php_stream_read", referenced from:
>       _zif_imageloadfont in gd.o
>   "__php_stream_seek", referenced from:
>       _zif_imageloadfont in gd.o
>   "__php_stream_tell", referenced from:
>       _zif_imageloadfont in gd.o
>   "__php_stream_write", referenced from:
>       __php_image_stream_putc in gd.o
>       __php_image_stream_putbuf in gd.o
>   "__safe_emalloc", referenced from:
>       _zif_imagesetstyle in gd.o
>       _php_imagepolygon in gd.o
>       _php_gd_gdImageFill in gd.o
>       __gdImageGd2 in gd_gd2.o
>       _php_gd_gdImageCreateFromPngCtx in gd_png.o
>       _php_gd_gdImagePngCtxEx in gd_png.o
>       _php_gd_gdImageJpegCtx in gd_jpeg.o
>       ...
>   "__zend_new_array_0", referenced from:
>       _zif_gd_info in gd.o
>       _zif_imagecolorsforindex in gd.o
>       _zif_imagegetclip in gd.o
>       _php_imagettftext_common in gd.o
>       _zif_imageaffinematrixget in gd.o
>       _zif_imageaffinematrixconcat in gd.o
>       _zif_imageresolution in gd.o
>       ...
>   "_add_assoc_bool_ex", referenced from:
>       _zif_gd_info in gd.o
>   "_add_assoc_long_ex", referenced from:
>       _zif_imagecolorsforindex in gd.o
>   "_add_assoc_string_ex", referenced from:
>       _zif_gd_info in gd.o
>   "_add_index_double", referenced from:
>       _zif_imageaffinematrixget in gd.o
>       _zif_imageaffinematrixconcat in gd.o
>   "_add_next_index_long", referenced from:
>       _zif_imagegetclip in gd.o
>       _php_imagettftext_common in gd.o
>       _zif_imageresolution in gd.o
>   "_ap_php_snprintf", referenced from:
>       _zm_info_gd in gd.o
>       _php_gd_gdImageJpegCtx in gd_jpeg.o
>       _fontFetch in gdft.o
>   "_display_ini_entries", referenced from:
>       _zm_info_gd in gd.o
>   "_executor_globals", referenced from:
>       _php_find_gd_font in gd.o
>   "_php_check_open_basedir", referenced from:
>       __php_image_output in gd.o
>       _php_imagettftext_common in gd.o
>       __php_image_convert in gd.o
>   "_php_error_docref0", referenced from:
>       _zif_imageloadfont in gd.o
>       _zif_imagesetstyle in gd.o
>       _zif_imagecreatetruecolor in gd.o
>       _zif_imagetruecolortopalette in gd.o
>       _zif_imagecolormatch in gd.o
>       _zif_imagecreate in gd.o
>       _zif_imagecreatefromstring in gd.o
>       ...
>   "_php_file_le_pstream", referenced from:
>       __php_image_output_ctx in gd.o
>   "_php_file_le_stream", referenced from:
>       __php_image_output_ctx in gd.o
>   "_php_info_print_table_end", referenced from:
>       _zm_info_gd in gd.o
>   "_php_info_print_table_row", referenced from:
>       _zm_info_gd in gd.o
>   "_php_info_print_table_start", referenced from:
>       _zm_info_gd in gd.o
>   "_php_open_temporary_file", referenced from:
>       __php_image_output in gd.o
>   "_php_sig_bmp", referenced from:
>       _zif_imagecreatefromstring in gd.o
>   "_php_sig_gif", referenced from:
>       _zif_imagecreatefromstring in gd.o
>   "_php_sig_jpg", referenced from:
>       _zif_imagecreatefromstring in gd.o
>   "_php_sig_png", referenced from:
>       _zif_imagecreatefromstring in gd.o
>   "_php_sig_riff", referenced from:
>       _zif_imagecreatefromstring in gd.o
>   "_php_sig_webp", referenced from:
>       _zif_imagecreatefromstring in gd.o
>   "_php_stream_stdio_ops", referenced from:
>       __php_image_create_from in gd.o
>   "_php_verror", referenced from:
>       _php_gd_error_method in gd.o
>   "_php_write", referenced from:
>       __php_image_output in gd.o
>       __php_image_output_putc in gd.o
>       __php_image_output_putbuf in gd.o
>   "_zend_error", referenced from:
>       _gdImageCreateFromWebpCtx in gd_webp.o
>       _gdImageWebpCtx in gd_webp.o
>   "_zend_fetch_resource", referenced from:
>       _zif_imagesetstyle in gd.o
>       _zif_imageistruecolor in gd.o
>       _zif_imagetruecolortopalette in gd.o
>       _zif_imagepalettetotruecolor in gd.o
>       _zif_imagecolormatch in gd.o
>       _zif_imagesetthickness in gd.o
>       _zif_imagefilledellipse in gd.o
>       ...
>   "_zend_fetch_resource2_ex", referenced from:
>       __php_image_output_ctx in gd.o
>   "_zend_hash_index_find", referenced from:
>       _php_imagepolygon in gd.o
>       _zif_imageconvolution in gd.o
>       _zif_imageaffine in gd.o
>       _zif_imageaffinematrixconcat in gd.o
>       _php_find_gd_font in gd.o
>   "_zend_hash_str_find", referenced from:
>       _zif_imagecrop in gd.o
>       _zif_imageaffine in gd.o
>       _zif_imageaffinematrixget in gd.o
>   "_zend_ini_long", referenced from:
>       __php_image_create_from in gd.o
>       __php_image_convert in gd.o
>   "_zend_list_close", referenced from:
>       _zif_imagedestroy in gd.o
>   "_zend_list_insert", referenced from:
>       _zif_imageloadfont in gd.o
>   "_zend_parse_arg_long_slow", referenced from:
>       _zif_imagecolorat in gd.o
>       _zif_imagesetpixel in gd.o
>   "_zend_parse_parameters", referenced from:
>       _zif_imageloadfont in gd.o
>       _zif_imagesetstyle in gd.o
>       _zif_imagecreatetruecolor in gd.o
>       _zif_imageistruecolor in gd.o
>       _zif_imagetruecolortopalette in gd.o
>       _zif_imagepalettetotruecolor in gd.o
>       _zif_imagecolormatch in gd.o
>       ...
>   "_zend_register_ini_entries", referenced from:
>       _zm_startup_gd in gd.o
>   "_zend_register_list_destructors_ex", referenced from:
>       _zm_startup_gd in gd.o
>   "_zend_register_long_constant", referenced from:
>       _zm_startup_gd in gd.o
>   "_zend_register_resource", referenced from:
>       _zif_imagecreatetruecolor in gd.o
>       _zif_imagerotate in gd.o
>       _zif_imagecreate in gd.o
>       _zif_imagecreatefromstring in gd.o
>       __php_image_create_from in gd.o
>       _zif_imagecrop in gd.o
>       _zif_imagecropauto in gd.o
>       ...
>   "_zend_register_string_constant", referenced from:
>       _zm_startup_gd in gd.o
>   "_zend_strndup", referenced from:
>       __php_image_create_from in gd.o
>   "_zend_vspprintf", referenced from:
>       _error in gdkanji.o
>       _php_gd_gdCtxPrintf in gd_xbm.o
>   "_zend_wrong_param_count", referenced from:
>       _php_imagettftext_common in gd.o
>       _zif_imagefilter in gd.o
>   "_zend_wrong_parameter_type_error", referenced from:
>       _zif_imagecolorat in gd.o
>       _zif_imagesetpixel in gd.o
>   "_zend_wrong_parameters_count_error", referenced from:
>       _zif_imagecolorat in gd.o
>       _zif_imagesetpixel in gd.o
>   "_zend_wrong_parameters_none_error", referenced from:
>       _zif_gd_info in gd.o
>       _zif_imagetypes in gd.o
>   "_zval_get_double_func", referenced from:
>       _php_imagettftext_common in gd.o
>       _zif_imageconvolution in gd.o
>       _zif_imageaffine in gd.o
>       _zif_imageaffinematrixget in gd.o
>       _zif_imageaffinematrixconcat in gd.o
>   "_zval_get_long_func", referenced from:
>       _zif_imagesetstyle in gd.o
>       _php_imagepolygon in gd.o
>       _zif_imagecrop in gd.o
>       _zif_imageaffine in gd.o
> ld: symbol(s) not found for architecture x86_64

New description:

 Looks like some c files were missing
 {{{
 Undefined symbols for architecture x86_64:
   "___zend_malloc", referenced from:
       _fontFetch in gdft.o
       _php_gd_gdCacheCreate in gdcache.o
       _php_gd_gdCacheGet in gdcache.o
   "__convert_to_string", referenced from:
       _zif_imagecreatefromstring in gd.o
   "__ecalloc", referenced from:
       __php_image_output_ctx in gd.o
       _php_gd_gdImageCreate in gd.o
       _php_gd_gdImageCreateTrueColor in gd.o
       _php_gd_gdImageFill in gd.o
       _php_gd_gdImageCreateFromGd2Ctx in gd_gd2.o
       _php_gd_gdImageCreateFromGd2PartCtx in gd_gd2.o
       __gd2GetHeader in gd_gd2.o
       ...
   "__efree", referenced from:
       _php_free_gd_font in gd.o
       _zif_imageloadfont in gd.o
       _zif_imagesetstyle in gd.o
       __php_image_create_from in gd.o
       __php_image_output in gd.o
       _php_imagepolygon in gd.o
       _php_imagechar in gd.o
       ...
   "__emalloc", referenced from:
       _zif_imageloadfont in gd.o
       _php_gd_gdImageCreate in gd.o
       _php_gd_gdImageCreateTrueColor in gd.o
       _php_gd_gdImageFilledPolygon in gd.o
       _php_gd_gdImageCopyResized in gd.o
       _php_gd_gdImageSetStyle in gd.o
       _gdImagePaletteToTrueColor in gd.o
       ...
   "__emalloc_1024", referenced from:
       _php_gd_gdImageStringFTEx in gdft.o
       _gdImageBmpCtx in gd_bmp.o
   "__emalloc_16", referenced from:
       __gdContributionsCalc in gd_interpolation.o
   "__emalloc_24", referenced from:
       _zif_imageloadfont in gd.o
       _php_gd_createwbmp in wbmp.o
       _php_gd_readwbmp in wbmp.o
   "__emalloc_32", referenced from:
       _php_gd_gdNewDynamicCtxEx in gd_io_dp.o
       _tweenColorFetch in gdft.o
   "__emalloc_768", referenced from:
       _php_gd_gdImageCreateFromPngCtx in gd_png.o
   "__emalloc_80", referenced from:
       _php_gd_gdNewDynamicCtxEx in gd_io_dp.o
       _php_gd_gdNewFileCtx in gd_io_file.o
       _php_gd_gdNewSSCtx in gd_io_ss.o
   "__emalloc_large", referenced from:
       _php_gd_gdImageCreateTrueColor in gd.o
   "__erealloc", referenced from:
       _php_gd_gdImageFilledPolygon in gd.o
       _gdReallocDynamic in gd_io_dp.o
       _gdImageCreateFromWebpCtx in gd_webp.o
       _gdImageTrueColorToPaletteBody in gd_topal.o
   "__estrdup", referenced from:
       _fontFetch in gdft.o
       _php_gd_gdImageXbmCtx in gd_xbm.o
   "__estrndup", referenced from:
       _php_imagechar in gd.o
   "__php_stream_cast", referenced from:
       __php_image_create_from in gd.o
   "__php_stream_copy_to_mem", referenced from:
       __php_image_create_from in gd.o
   "__php_stream_eof", referenced from:
       _zif_imageloadfont in gd.o
   "__php_stream_free", referenced from:
       _zif_imageloadfont in gd.o
       __php_image_create_from in gd.o
       __php_image_stream_ctxfreeandclose in gd.o
   "__php_stream_open_wrapper_ex", referenced from:
       _zif_imageloadfont in gd.o
       __php_image_create_from in gd.o
       __php_image_output_ctx in gd.o
   "__php_stream_read", referenced from:
       _zif_imageloadfont in gd.o
   "__php_stream_seek", referenced from:
       _zif_imageloadfont in gd.o
   "__php_stream_tell", referenced from:
       _zif_imageloadfont in gd.o
   "__php_stream_write", referenced from:
       __php_image_stream_putc in gd.o
       __php_image_stream_putbuf in gd.o
   "__safe_emalloc", referenced from:
       _zif_imagesetstyle in gd.o
       _php_imagepolygon in gd.o
       _php_gd_gdImageFill in gd.o
       __gdImageGd2 in gd_gd2.o
       _php_gd_gdImageCreateFromPngCtx in gd_png.o
       _php_gd_gdImagePngCtxEx in gd_png.o
       _php_gd_gdImageJpegCtx in gd_jpeg.o
       ...
   "__zend_new_array_0", referenced from:
       _zif_gd_info in gd.o
       _zif_imagecolorsforindex in gd.o
       _zif_imagegetclip in gd.o
       _php_imagettftext_common in gd.o
       _zif_imageaffinematrixget in gd.o
       _zif_imageaffinematrixconcat in gd.o
       _zif_imageresolution in gd.o
       ...
   "_add_assoc_bool_ex", referenced from:
       _zif_gd_info in gd.o
   "_add_assoc_long_ex", referenced from:
       _zif_imagecolorsforindex in gd.o
   "_add_assoc_string_ex", referenced from:
       _zif_gd_info in gd.o
   "_add_index_double", referenced from:
       _zif_imageaffinematrixget in gd.o
       _zif_imageaffinematrixconcat in gd.o
   "_add_next_index_long", referenced from:
       _zif_imagegetclip in gd.o
       _php_imagettftext_common in gd.o
       _zif_imageresolution in gd.o
   "_ap_php_snprintf", referenced from:
       _zm_info_gd in gd.o
       _php_gd_gdImageJpegCtx in gd_jpeg.o
       _fontFetch in gdft.o
   "_display_ini_entries", referenced from:
       _zm_info_gd in gd.o
   "_executor_globals", referenced from:
       _php_find_gd_font in gd.o
   "_php_check_open_basedir", referenced from:
       __php_image_output in gd.o
       _php_imagettftext_common in gd.o
       __php_image_convert in gd.o
   "_php_error_docref0", referenced from:
       _zif_imageloadfont in gd.o
       _zif_imagesetstyle in gd.o
       _zif_imagecreatetruecolor in gd.o
       _zif_imagetruecolortopalette in gd.o
       _zif_imagecolormatch in gd.o
       _zif_imagecreate in gd.o
       _zif_imagecreatefromstring in gd.o
       ...
   "_php_file_le_pstream", referenced from:
       __php_image_output_ctx in gd.o
   "_php_file_le_stream", referenced from:
       __php_image_output_ctx in gd.o
   "_php_info_print_table_end", referenced from:
       _zm_info_gd in gd.o
   "_php_info_print_table_row", referenced from:
       _zm_info_gd in gd.o
   "_php_info_print_table_start", referenced from:
       _zm_info_gd in gd.o
   "_php_open_temporary_file", referenced from:
       __php_image_output in gd.o
   "_php_sig_bmp", referenced from:
       _zif_imagecreatefromstring in gd.o
   "_php_sig_gif", referenced from:
       _zif_imagecreatefromstring in gd.o
   "_php_sig_jpg", referenced from:
       _zif_imagecreatefromstring in gd.o
   "_php_sig_png", referenced from:
       _zif_imagecreatefromstring in gd.o
   "_php_sig_riff", referenced from:
       _zif_imagecreatefromstring in gd.o
   "_php_sig_webp", referenced from:
       _zif_imagecreatefromstring in gd.o
   "_php_stream_stdio_ops", referenced from:
       __php_image_create_from in gd.o
   "_php_verror", referenced from:
       _php_gd_error_method in gd.o
   "_php_write", referenced from:
       __php_image_output in gd.o
       __php_image_output_putc in gd.o
       __php_image_output_putbuf in gd.o
   "_zend_error", referenced from:
       _gdImageCreateFromWebpCtx in gd_webp.o
       _gdImageWebpCtx in gd_webp.o
   "_zend_fetch_resource", referenced from:
       _zif_imagesetstyle in gd.o
       _zif_imageistruecolor in gd.o
       _zif_imagetruecolortopalette in gd.o
       _zif_imagepalettetotruecolor in gd.o
       _zif_imagecolormatch in gd.o
       _zif_imagesetthickness in gd.o
       _zif_imagefilledellipse in gd.o
       ...
   "_zend_fetch_resource2_ex", referenced from:
       __php_image_output_ctx in gd.o
   "_zend_hash_index_find", referenced from:
       _php_imagepolygon in gd.o
       _zif_imageconvolution in gd.o
       _zif_imageaffine in gd.o
       _zif_imageaffinematrixconcat in gd.o
       _php_find_gd_font in gd.o
   "_zend_hash_str_find", referenced from:
       _zif_imagecrop in gd.o
       _zif_imageaffine in gd.o
       _zif_imageaffinematrixget in gd.o
   "_zend_ini_long", referenced from:
       __php_image_create_from in gd.o
       __php_image_convert in gd.o
   "_zend_list_close", referenced from:
       _zif_imagedestroy in gd.o
   "_zend_list_insert", referenced from:
       _zif_imageloadfont in gd.o
   "_zend_parse_arg_long_slow", referenced from:
       _zif_imagecolorat in gd.o
       _zif_imagesetpixel in gd.o
   "_zend_parse_parameters", referenced from:
       _zif_imageloadfont in gd.o
       _zif_imagesetstyle in gd.o
       _zif_imagecreatetruecolor in gd.o
       _zif_imageistruecolor in gd.o
       _zif_imagetruecolortopalette in gd.o
       _zif_imagepalettetotruecolor in gd.o
       _zif_imagecolormatch in gd.o
       ...
   "_zend_register_ini_entries", referenced from:
       _zm_startup_gd in gd.o
   "_zend_register_list_destructors_ex", referenced from:
       _zm_startup_gd in gd.o
   "_zend_register_long_constant", referenced from:
       _zm_startup_gd in gd.o
   "_zend_register_resource", referenced from:
       _zif_imagecreatetruecolor in gd.o
       _zif_imagerotate in gd.o
       _zif_imagecreate in gd.o
       _zif_imagecreatefromstring in gd.o
       __php_image_create_from in gd.o
       _zif_imagecrop in gd.o
       _zif_imagecropauto in gd.o
       ...
   "_zend_register_string_constant", referenced from:
       _zm_startup_gd in gd.o
   "_zend_strndup", referenced from:
       __php_image_create_from in gd.o
   "_zend_vspprintf", referenced from:
       _error in gdkanji.o
       _php_gd_gdCtxPrintf in gd_xbm.o
   "_zend_wrong_param_count", referenced from:
       _php_imagettftext_common in gd.o
       _zif_imagefilter in gd.o
   "_zend_wrong_parameter_type_error", referenced from:
       _zif_imagecolorat in gd.o
       _zif_imagesetpixel in gd.o
   "_zend_wrong_parameters_count_error", referenced from:
       _zif_imagecolorat in gd.o
       _zif_imagesetpixel in gd.o
   "_zend_wrong_parameters_none_error", referenced from:
       _zif_gd_info in gd.o
       _zif_imagetypes in gd.o
   "_zval_get_double_func", referenced from:
       _php_imagettftext_common in gd.o
       _zif_imageconvolution in gd.o
       _zif_imageaffine in gd.o
       _zif_imageaffinematrixget in gd.o
       _zif_imageaffinematrixconcat in gd.o
   "_zval_get_long_func", referenced from:
       _zif_imagesetstyle in gd.o
       _php_imagepolygon in gd.o
       _zif_imagecrop in gd.o
       _zif_imageaffine in gd.o
 ld: symbol(s) not found for architecture x86_64
 }}}

--

Comment:

 Please add the complete log as an attachment.

-- 
Ticket URL: <https://trac.macports.org/ticket/61464#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list