Bug 37414

Summary: py2cairo, mac os x 10.6.7 xcode 4.0.2 python 2.7 py2cairo cannot build
Product: pycairo Reporter: Rinat <rinat.enikeev>
Component: generalAssignee: Steve Chaplin <d74n5pohf9>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Rinat 2011-05-20 10:03:25 UTC
./options()
Waf: Entering directory `/Users/rinatenikeev/Documents/py2cairo/build_directory'
  ./build()
  src/build()
[1/9] c: src/cairomodule.c -> build_directory/src/cairomodule.c.1.o
[2/9] c: src/context.c -> build_directory/src/context.c.1.o
[3/9] c: src/font.c -> build_directory/src/font.c.1.o
[4/9] c: src/path.c -> build_directory/src/path.c.1.o
[5/9] c: src/pattern.c -> build_directory/src/pattern.c.1.o
[6/9] c: src/matrix.c -> build_directory/src/matrix.c.1.o
[7/9] c: src/surface.c -> build_directory/src/surface.c.1.o
[8/9] subst: pycairo.pc.in -> build_directory/pycairo.pc
[9/9] cshlib: build_directory/src/cairomodule.c.1.o build_directory/src/context.c.1.o build_directory/src/font.c.1.o build_directory/src/path.c.1.o build_directory/src/pattern.c.1.o build_directory/src/matrix.c.1.o build_directory/src/surface.c.1.o -> build_directory/src/_cairo.so
ld: warning: ignoring file /opt/local/lib/libcairo.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
Undefined symbols for architecture i386:
  "_cairo_font_face_status", referenced from:
      _PycairoFontFace_FromFontFace in font.c.1.o
  "_cairo_font_face_destroy", referenced from:
      _PycairoFontFace_FromFontFace in font.c.1.o
      _font_face_dealloc in font.c.1.o
  "_cairo_font_face_get_type", referenced from:
      _PycairoFontFace_FromFontFace in font.c.1.o
  "_cairo_toy_font_face_create", referenced from:
      _toy_font_face_new in font.c.1.o
  "_cairo_toy_font_face_get_family", referenced from:
      _toy_font_get_family in font.c.1.o
  "_cairo_toy_font_face_get_slant", referenced from:
      _toy_font_get_slant in font.c.1.o
  "_cairo_toy_font_face_get_weight", referenced from:
      _toy_font_get_weight in font.c.1.o
  "_cairo_scaled_font_status", referenced from:
      _PycairoScaledFont_FromScaledFont in font.c.1.o
      _scaled_font_extents in font.c.1.o
      _scaled_font_text_extents in font.c.1.o
  "_cairo_scaled_font_destroy", referenced from:
      _PycairoScaledFont_FromScaledFont in font.c.1.o
      _scaled_font_dealloc in font.c.1.o
  "_cairo_scaled_font_create", referenced from:
      _scaled_font_new in font.c.1.o
  "_cairo_scaled_font_extents", referenced from:
      _scaled_font_extents in font.c.1.o
  "_cairo_scaled_font_get_font_face", referenced from:
      _scaled_font_get_font_face in font.c.1.o
  "_cairo_scaled_font_get_scale_matrix", referenced from:
      _scaled_font_get_scale_matrix in font.c.1.o
  "_cairo_scaled_font_text_extents", referenced from:
      _scaled_font_text_extents in font.c.1.o
  "_cairo_font_options_status", referenced from:
      _PycairoFontOptions_FromFontOptions in font.c.1.o
      _font_options_set_antialias in font.c.1.o
      _font_options_set_hint_metrics in font.c.1.o
      _font_options_set_hint_style in font.c.1.o
      _font_options_set_subpixel_order in font.c.1.o
  "_cairo_font_options_destroy", referenced from:
      _PycairoFontOptions_FromFontOptions in font.c.1.o
      _font_options_dealloc in font.c.1.o
  "_cairo_font_options_get_antialias", referenced from:
      _font_options_get_antialias in font.c.1.o
  "_cairo_font_options_get_hint_metrics", referenced from:
      _font_options_get_hint_metrics in font.c.1.o
  "_cairo_font_options_get_hint_style", referenced from:
      _font_options_get_hint_style in font.c.1.o
  "_cairo_font_options_get_subpixel_order", referenced from:
      _font_options_get_subpixel_order in font.c.1.o
  "_cairo_font_options_set_antialias", referenced from:
      _font_options_set_antialias in font.c.1.o
  "_cairo_font_options_set_hint_metrics", referenced from:
      _font_options_set_hint_metrics in font.c.1.o
  "_cairo_font_options_set_hint_style", referenced from:
      _font_options_set_hint_style in font.c.1.o
  "_cairo_font_options_set_subpixel_order", referenced from:
      _font_options_set_subpixel_order in font.c.1.o
  "_cairo_status_to_string", referenced from:
      _Pycairo_Check_Status in cairomodule.c.1.o
  "_cairo_version", referenced from:
      _pycairo_cairo_version in cairomodule.c.1.o
  "_cairo_version_string", referenced from:
      _pycairo_cairo_version_string in cairomodule.c.1.o
  "_cairo_status", referenced from:
      _PycairoContext_FromContext in context.c.1.o
      _pycairo_append_path in context.c.1.o
      _pycairo_arc in context.c.1.o
      _pycairo_arc_negative in context.c.1.o
      _pycairo_clip in context.c.1.o
      _pycairo_clip_extents in context.c.1.o
      _pycairo_clip_preserve in context.c.1.o
      ...
  "_cairo_destroy", referenced from:
      _PycairoContext_FromContext in context.c.1.o
      _pycairo_dealloc in context.c.1.o
  "_cairo_create", referenced from:
      _pycairo_new in context.c.1.o
  "_cairo_append_path", referenced from:
      _pycairo_append_path in context.c.1.o
  "_cairo_arc", referenced from:
      _pycairo_arc in context.c.1.o
  "_cairo_arc_negative", referenced from:
      _pycairo_arc_negative in context.c.1.o
  "_cairo_clip", referenced from:
      _pycairo_clip in context.c.1.o
  "_cairo_clip_extents", referenced from:
      _pycairo_clip_extents in context.c.1.o
  "_cairo_clip_preserve", referenced from:
      _pycairo_clip_preserve in context.c.1.o
  "_cairo_close_path", referenced from:
      _pycairo_close_path in context.c.1.o
  "_cairo_copy_clip_rectangle_list", referenced from:
      _pycairo_copy_clip_rectangle_list in context.c.1.o
  "_cairo_rectangle_list_destroy", referenced from:
      _pycairo_copy_clip_rectangle_list in context.c.1.o
  "_cairo_copy_page", referenced from:
      _pycairo_copy_page in context.c.1.o
  "_cairo_copy_path", referenced from:
      _pycairo_copy_path in context.c.1.o
  "_cairo_copy_path_flat", referenced from:
      _pycairo_copy_path_flat in context.c.1.o
  "_cairo_curve_to", referenced from:
      _pycairo_curve_to in context.c.1.o
  "_cairo_device_to_user", referenced from:
      _pycairo_device_to_user in context.c.1.o
  "_cairo_device_to_user_distance", referenced from:
      _pycairo_device_to_user_distance in context.c.1.o
  "_cairo_fill", referenced from:
      _pycairo_fill in context.c.1.o
  "_cairo_fill_extents", referenced from:
      _pycairo_fill_extents in context.c.1.o
  "_cairo_fill_preserve", referenced from:
      _pycairo_fill_preserve in context.c.1.o
  "_cairo_font_extents", referenced from:
      _pycairo_font_extents in context.c.1.o
  "_cairo_get_antialias", referenced from:
      _pycairo_get_antialias in context.c.1.o
  "_cairo_get_current_point", referenced from:
      _pycairo_get_current_point in context.c.1.o
  "_cairo_get_dash_count", referenced from:
      _pycairo_get_dash in context.c.1.o
      _pycairo_get_dash_count in context.c.1.o
  "_cairo_get_dash", referenced from:
      _pycairo_get_dash in context.c.1.o
  "_cairo_get_fill_rule", referenced from:
      _pycairo_get_fill_rule in context.c.1.o
  "_cairo_get_font_face", referenced from:
      _pycairo_get_font_face in context.c.1.o
  "_cairo_font_face_reference", referenced from:
      _pycairo_get_font_face in context.c.1.o
      _scaled_font_get_font_face in font.c.1.o
  "_cairo_get_font_matrix", referenced from:
      _pycairo_get_font_matrix in context.c.1.o
  "_cairo_font_options_create", referenced from:
      _pycairo_get_font_options in context.c.1.o
      _font_options_new in font.c.1.o
      _surface_get_font_options in surface.c.1.o
  "_cairo_get_font_options", referenced from:
      _pycairo_get_font_options in context.c.1.o
  "_cairo_get_group_target", referenced from:
      _pycairo_get_group_target in context.c.1.o
  "_cairo_surface_reference", referenced from:
      _pycairo_get_group_target in context.c.1.o
      _pycairo_get_target in context.c.1.o
      _surface_pattern_get_surface in pattern.c.1.o
  "_cairo_get_line_cap", referenced from:
      _pycairo_get_line_cap in context.c.1.o
  "_cairo_get_line_join", referenced from:
      _pycairo_get_line_join in context.c.1.o
  "_cairo_get_line_width", referenced from:
      _pycairo_get_line_width in context.c.1.o
  "_cairo_get_matrix", referenced from:
      _pycairo_get_matrix in context.c.1.o
  "_cairo_get_miter_limit", referenced from:
      _pycairo_get_miter_limit in context.c.1.o
  "_cairo_get_operator", referenced from:
      _pycairo_get_operator in context.c.1.o
  "_cairo_get_scaled_font", referenced from:
      _pycairo_get_scaled_font in context.c.1.o
  "_cairo_scaled_font_reference", referenced from:
      _pycairo_get_scaled_font in context.c.1.o
  "_cairo_get_source", referenced from:
      _pycairo_get_source in context.c.1.o
  "_cairo_pattern_reference", referenced from:
      _pycairo_get_source in context.c.1.o
  "_cairo_get_target", referenced from:
      _pycairo_get_target in context.c.1.o
  "_cairo_get_tolerance", referenced from:
      _pycairo_get_tolerance in context.c.1.o
  "_cairo_glyph_extents", referenced from:
      _pycairo_glyph_extents in context.c.1.o
  "_cairo_glyph_path", referenced from:
      _pycairo_glyph_path in context.c.1.o
  "_cairo_has_current_point", referenced from:
      _pycairo_has_current_point in context.c.1.o
  "_cairo_identity_matrix", referenced from:
      _pycairo_identity_matrix in context.c.1.o
  "_cairo_in_fill", referenced from:
      _pycairo_in_fill in context.c.1.o
  "_cairo_in_stroke", referenced from:
      _pycairo_in_stroke in context.c.1.o
  "_cairo_line_to", referenced from:
      _pycairo_line_to in context.c.1.o
  "_cairo_mask", referenced from:
      _pycairo_mask in context.c.1.o
  "_cairo_mask_surface", referenced from:
      _pycairo_mask_surface in context.c.1.o
  "_cairo_move_to", referenced from:
      _pycairo_move_to in context.c.1.o
  "_cairo_new_path", referenced from:
      _pycairo_new_path in context.c.1.o
  "_cairo_new_sub_path", referenced from:
      _pycairo_new_sub_path in context.c.1.o
  "_cairo_paint", referenced from:
      _pycairo_paint in context.c.1.o
  "_cairo_paint_with_alpha", referenced from:
      _pycairo_paint_with_alpha in context.c.1.o
  "_cairo_path_extents", referenced from:
      _pycairo_path_extents in context.c.1.o
  "_cairo_pop_group", referenced from:
      _pycairo_pop_group in context.c.1.o
  "_cairo_pop_group_to_source", referenced from:
      _pycairo_pop_group_to_source in context.c.1.o
  "_cairo_push_group", referenced from:
      _pycairo_push_group in context.c.1.o
  "_cairo_push_group_with_content", referenced from:
      _pycairo_push_group_with_content in context.c.1.o
  "_cairo_rectangle", referenced from:
      _pycairo_rectangle in context.c.1.o
  "_cairo_rel_curve_to", referenced from:
      _pycairo_rel_curve_to in context.c.1.o
  "_cairo_rel_line_to", referenced from:
      _pycairo_rel_line_to in context.c.1.o
  "_cairo_rel_move_to", referenced from:
      _pycairo_rel_move_to in context.c.1.o
  "_cairo_reset_clip", referenced from:
      _pycairo_reset_clip in context.c.1.o
  "_cairo_restore", referenced from:
      _pycairo_restore in context.c.1.o
  "_cairo_rotate", referenced from:
      _pycairo_rotate in context.c.1.o
  "_cairo_save", referenced from:
      _pycairo_save in context.c.1.o
  "_cairo_scale", referenced from:
      _pycairo_scale in context.c.1.o
  "_cairo_select_font_face", referenced from:
      _pycairo_select_font_face in context.c.1.o
  "_cairo_set_antialias", referenced from:
      _pycairo_set_antialias in context.c.1.o
  "_cairo_set_dash", referenced from:
      _pycairo_set_dash in context.c.1.o
  "_cairo_set_fill_rule", referenced from:
      _pycairo_set_fill_rule in context.c.1.o
  "_cairo_set_font_face", referenced from:
      _pycairo_set_font_face in context.c.1.o
  "_cairo_set_font_matrix", referenced from:
      _pycairo_set_font_matrix in context.c.1.o
  "_cairo_set_font_options", referenced from:
      _pycairo_set_font_options in context.c.1.o
  "_cairo_set_font_size", referenced from:
      _pycairo_set_font_size in context.c.1.o
  "_cairo_set_line_cap", referenced from:
      _pycairo_set_line_cap in context.c.1.o
  "_cairo_set_line_join", referenced from:
      _pycairo_set_line_join in context.c.1.o
  "_cairo_set_line_width", referenced from:
      _pycairo_set_line_width in context.c.1.o
  "_cairo_set_matrix", referenced from:
      _pycairo_set_matrix in context.c.1.o
  "_cairo_set_miter_limit", referenced from:
      _pycairo_set_miter_limit in context.c.1.o
  "_cairo_set_operator", referenced from:
      _pycairo_set_operator in context.c.1.o
  "_cairo_set_scaled_font", referenced from:
      _pycairo_set_scaled_font in context.c.1.o
  "_cairo_set_source", referenced from:
      _pycairo_set_source in context.c.1.o
  "_cairo_set_source_rgb", referenced from:
      _pycairo_set_source_rgb in context.c.1.o
  "_cairo_set_source_rgba", referenced from:
      _pycairo_set_source_rgba in context.c.1.o
  "_cairo_set_source_surface", referenced from:
      _pycairo_set_source_surface in context.c.1.o
  "_cairo_set_tolerance", referenced from:
      _pycairo_set_tolerance in context.c.1.o
  "_cairo_show_glyphs", referenced from:
      _pycairo_show_glyphs in context.c.1.o
  "_cairo_show_page", referenced from:
      _pycairo_show_page in context.c.1.o
  "_cairo_show_text", referenced from:
      _pycairo_show_text in context.c.1.o
  "_cairo_stroke", referenced from:
      _pycairo_stroke in context.c.1.o
  "_cairo_stroke_extents", referenced from:
      _pycairo_stroke_extents in context.c.1.o
  "_cairo_stroke_preserve", referenced from:
      _pycairo_stroke_preserve in context.c.1.o
  "_cairo_text_extents", referenced from:
      _pycairo_text_extents in context.c.1.o
  "_cairo_text_path", referenced from:
      _pycairo_text_path in context.c.1.o
  "_cairo_transform", referenced from:
      _pycairo_transform in context.c.1.o
  "_cairo_translate", referenced from:
      _pycairo_translate in context.c.1.o
  "_cairo_user_to_device", referenced from:
      _pycairo_user_to_device in context.c.1.o
  "_cairo_user_to_device_distance", referenced from:
      _pycairo_user_to_device_distance in context.c.1.o
  "_cairo_path_destroy", referenced from:
      _PycairoPath_FromPath in path.c.1.o
      _path_dealloc in path.c.1.o
  "_cairo_pattern_status", referenced from:
      _PycairoPattern_FromPattern in pattern.c.1.o
      _gradient_add_color_stop_rgb in pattern.c.1.o
      _gradient_add_color_stop_rgba in pattern.c.1.o
  "_cairo_pattern_destroy", referenced from:
      _PycairoPattern_FromPattern in pattern.c.1.o
      _pattern_dealloc in pattern.c.1.o
  "_cairo_pattern_get_type", referenced from:
      _PycairoPattern_FromPattern in pattern.c.1.o
  "_cairo_pattern_get_extend", referenced from:
      _pattern_get_extend in pattern.c.1.o
  "_cairo_pattern_get_matrix", referenced from:
      _pattern_get_matrix in pattern.c.1.o
  "_cairo_pattern_set_extend", referenced from:
      _pattern_set_extend in pattern.c.1.o
  "_cairo_pattern_set_matrix", referenced from:
      _pattern_set_matrix in pattern.c.1.o
  "_cairo_pattern_create_rgba", referenced from:
      _solid_pattern_new in pattern.c.1.o
  "_cairo_pattern_get_rgba", referenced from:
      _solid_pattern_get_rgba in pattern.c.1.o
  "_cairo_pattern_create_for_surface", referenced from:
      _surface_pattern_new in pattern.c.1.o
  "_cairo_pattern_get_filter", referenced from:
      _surface_pattern_get_filter in pattern.c.1.o
  "_cairo_pattern_get_surface", referenced from:
      _surface_pattern_get_surface in pattern.c.1.o
  "_cairo_pattern_set_filter", referenced from:
      _surface_pattern_set_filter in pattern.c.1.o
  "_cairo_pattern_add_color_stop_rgb", referenced from:
      _gradient_add_color_stop_rgb in pattern.c.1.o
  "_cairo_pattern_add_color_stop_rgba", referenced from:
      _gradient_add_color_stop_rgba in pattern.c.1.o
  "_cairo_pattern_create_linear", referenced from:
      _linear_gradient_new in pattern.c.1.o
  "_cairo_pattern_get_linear_points", referenced from:
      _linear_gradient_get_linear_points in pattern.c.1.o
  "_cairo_pattern_create_radial", referenced from:
      _radial_gradient_new in pattern.c.1.o
  "_cairo_pattern_get_radial_circles", referenced from:
      _radial_gradient_get_radial_circles in pattern.c.1.o
  "_cairo_matrix_init", referenced from:
      _matrix_new in matrix.c.1.o
  "_cairo_matrix_init_rotate", referenced from:
      _matrix_init_rotate in matrix.c.1.o
  "_cairo_matrix_invert", referenced from:
      _matrix_invert in matrix.c.1.o
  "_cairo_matrix_multiply", referenced from:
      _matrix_multiply in matrix.c.1.o
      _matrix_operator_multiply in matrix.c.1.o
  "_cairo_matrix_rotate", referenced from:
      _matrix_rotate in matrix.c.1.o
  "_cairo_matrix_scale", referenced from:
      _matrix_scale in matrix.c.1.o
  "_cairo_matrix_transform_distance", referenced from:
      _matrix_transform_distance in matrix.c.1.o
  "_cairo_matrix_transform_point", referenced from:
      _matrix_transform_point in matrix.c.1.o
  "_cairo_matrix_translate", referenced from:
      _matrix_translate in matrix.c.1.o
  "_cairo_surface_status", referenced from:
      _PycairoSurface_FromSurface in surface.c.1.o
      _surface_copy_page in surface.c.1.o
      _surface_finish in surface.c.1.o
      _surface_flush in surface.c.1.o
      _surface_mark_dirty in surface.c.1.o
      _surface_mark_dirty_rectangle in surface.c.1.o
      _surface_show_page in surface.c.1.o
      ...
  "_cairo_surface_destroy", referenced from:
      _PycairoSurface_FromSurface in surface.c.1.o
      _surface_dealloc in surface.c.1.o
  "_cairo_surface_get_type", referenced from:
      _PycairoSurface_FromSurface in surface.c.1.o
  "_cairo_surface_copy_page", referenced from:
      _surface_copy_page in surface.c.1.o
  "_cairo_surface_create_similar", referenced from:
      _surface_create_similar in surface.c.1.o
  "_cairo_surface_finish", referenced from:
      _surface_finish in surface.c.1.o
  "_cairo_surface_flush", referenced from:
      _surface_flush in surface.c.1.o
  "_cairo_surface_get_content", referenced from:
      _surface_get_content in surface.c.1.o
  "_cairo_surface_get_device_offset", referenced from:
      _surface_get_device_offset in surface.c.1.o
  "_cairo_surface_get_fallback_resolution", referenced from:
      _surface_get_fallback_resolution in surface.c.1.o
  "_cairo_surface_get_font_options", referenced from:
      _surface_get_font_options in surface.c.1.o
  "_cairo_surface_mark_dirty", referenced from:
      _surface_mark_dirty in surface.c.1.o
  "_cairo_surface_mark_dirty_rectangle", referenced from:
      _surface_mark_dirty_rectangle in surface.c.1.o
  "_cairo_surface_set_device_offset", referenced from:
      _surface_set_device_offset in surface.c.1.o
  "_cairo_surface_set_fallback_resolution", referenced from:
      _surface_set_fallback_resolution in surface.c.1.o
  "_cairo_surface_show_page", referenced from:
      _surface_show_page in surface.c.1.o
  "_cairo_surface_write_to_png", referenced from:
      _surface_write_to_png in surface.c.1.o
  "_cairo_surface_write_to_png_stream", referenced from:
      _surface_write_to_png in surface.c.1.o
  "_cairo_image_surface_create", referenced from:
      _image_surface_new in surface.c.1.o
  "_cairo_format_stride_for_width", referenced from:
      _image_surface_create_for_data in surface.c.1.o
      _image_surface_format_stride_for_width in surface.c.1.o
  "_cairo_image_surface_create_for_data", referenced from:
      _image_surface_create_for_data in surface.c.1.o
  "_cairo_image_surface_create_from_png", referenced from:
      _image_surface_create_from_png in surface.c.1.o
  "_cairo_image_surface_create_from_png_stream", referenced from:
      _image_surface_create_from_png in surface.c.1.o
  "_cairo_image_surface_get_format", referenced from:
      _image_surface_get_format in surface.c.1.o
  "_cairo_image_surface_get_height", referenced from:
      _image_surface_get_height in surface.c.1.o
      _image_surface_buffer_getreadbuf in surface.c.1.o
      _image_surface_buffer_getwritebuf in surface.c.1.o
      _image_surface_buffer_getsegcount in surface.c.1.o
  "_cairo_image_surface_get_stride", referenced from:
      _image_surface_get_stride in surface.c.1.o
      _image_surface_buffer_getreadbuf in surface.c.1.o
      _image_surface_buffer_getwritebuf in surface.c.1.o
      _image_surface_buffer_getsegcount in surface.c.1.o
  "_cairo_image_surface_get_width", referenced from:
      _image_surface_get_width in surface.c.1.o
  "_cairo_image_surface_get_data", referenced from:
      _image_surface_buffer_getreadbuf in surface.c.1.o
      _image_surface_buffer_getwritebuf in surface.c.1.o
  "_cairo_pdf_surface_create", referenced from:
      _pdf_surface_new in surface.c.1.o
  "_cairo_pdf_surface_create_for_stream", referenced from:
      _pdf_surface_new in surface.c.1.o
  "_cairo_pdf_surface_set_size", referenced from:
      _pdf_surface_set_size in surface.c.1.o
  "_cairo_ps_surface_create", referenced from:
      _ps_surface_new in surface.c.1.o
  "_cairo_ps_surface_create_for_stream", referenced from:
      _ps_surface_new in surface.c.1.o
  "_cairo_ps_surface_dsc_begin_page_setup", referenced from:
      _ps_surface_dsc_begin_page_setup in surface.c.1.o
  "_cairo_ps_surface_dsc_begin_setup", referenced from:
      _ps_surface_dsc_begin_setup in surface.c.1.o
  "_cairo_ps_surface_dsc_comment", referenced from:
      _ps_surface_dsc_comment in surface.c.1.o
  "_cairo_ps_surface_get_eps", referenced from:
      _ps_surface_get_eps in surface.c.1.o
  "_cairo_ps_level_to_string", referenced from:
      _ps_surface_ps_level_to_string in surface.c.1.o
  "_cairo_ps_surface_restrict_to_level", referenced from:
      _ps_surface_restrict_to_level in surface.c.1.o
  "_cairo_ps_surface_set_eps", referenced from:
      _ps_surface_set_eps in surface.c.1.o
  "_cairo_ps_surface_set_size", referenced from:
      _ps_surface_set_size in surface.c.1.o
  "_cairo_svg_surface_create", referenced from:
      _svg_surface_new in surface.c.1.o
  "_cairo_svg_surface_create_for_stream", referenced from:
      _svg_surface_new in surface.c.1.o
  "_cairo_xlib_surface_get_depth", referenced from:
      _xlib_surface_get_depth in surface.c.1.o
  "_cairo_xlib_surface_get_height", referenced from:
      _xlib_surface_get_height in surface.c.1.o
  "_cairo_xlib_surface_get_width", referenced from:
      _xlib_surface_get_width in surface.c.1.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
lipo: can't open input file: /var/folders/RU/RUEqVC7bH+eseBkL8n2kE++++TI/-Tmp-//ccmEmhUF.out (No such file or directory)
Waf: Leaving directory `/Users/rinatenikeev/Documents/py2cairo/build_directory'
Build failed
 -> task failed (exit status 1): 
	{task 4314873808: cshlib cairomodule.c.1.o,context.c.1.o,font.c.1.o,path.c.1.o,pattern.c.1.o,matrix.c.1.o,surface.c.1.o -> _cairo.so}
['/usr/bin/gcc', 'src/cairomodule.c.1.o', 'src/context.c.1.o', 'src/font.c.1.o', 'src/path.c.1.o', 'src/pattern.c.1.o', 'src/matrix.c.1.o', 'src/surface.c.1.o', '-o', '/Users/rinatenikeev/Documents/py2cairo/build_directory/src/_cairo.so', '-L/opt/local/lib', '-L/Library/Frameworks/Python.framework/Versions/2.7/lib', '-lcairo', '-lpython2.7', '-dynamiclib', '-arch', 'i386', '-arch', 'x86_64', '-isysroot', '/', '-arch', 'i386', '-arch', 'x86_64', '-isysroot', '/', '-arch', 'i386', '-arch', 'x86_64', '-isysroot', '/', '-arch', 'i386', '-arch', 'x86_64']
Comment 1 Steve Chaplin 2011-06-17 06:05:23 UTC
It looks like it is compiling for x86_64 when it should be compiling for i386.
The 'arch' options are conflicting with each other - the end of your message has
  '-arch', 'i386', '-arch', 'x86_64',   repeated many times.
I suggest trying to discover where these 'arch' options are being set or picked up from. It should 
be i386 or x86_64, but not both. (I think the last one mentioned wins)
Comment 2 Niels Martin Hansen 2012-06-29 06:27:34 UTC
I can confirm this problem. I tried building pycairo 1.10.0 on OS X 10.6.8, Python 2.6.1, gcc 4.2.1.

It seems waf is over-zealous in what archs it attempts to build for. For me it wanted to build for all of i386, ppc and x86_64. The cairo build system built cairo for only x86_64, and so pycairo failed to link to it.

I managed to work around the problem by manually editing build_directory/c4che/_cache.py to remove the -arch arguments.
Comment 3 Christoph Reiter 2017-07-05 15:28:09 UTC
Since 1.11 pycairo uses distutils for building. There is a good chance that
this bug no longer occurs with the new system. If there are still problems
please file a bug: https://github.com/pygobject/pycairo/issues

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.