Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Sep 2005 11:13:59 +0300
From:      Panagiotis Astithas <past@ebs.gr>
To:        Vladimir Grebenschikov <vova@sw.ru>
Cc:        eclipse@freebsd.org, gnome <freebsd-gnome@freebsd.org>
Subject:   Re: Failed to build eclipse with gnome 2.12 (failed on cario)
Message-ID:  <4327DBC7.2090707@ebs.gr>
In-Reply-To: <1126680998.14844.2.camel@localhost>
References:  <1126680998.14844.2.camel@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
Vladimir Grebenschikov wrote:
> Hi
> 
> Trying to upgrade to gnome 2.12 from marcus repository.
> 
> 
>     [javac] 2. WARNING in /usr/ports/java/eclipse/work/plugins/org.eclipse.pde.build/src_ant/org/eclipse/pde/internal/build/tasks/PluginVersionReplaceTask.java
>     [javac]  (at line 157)
>     [javac]     private static void transferStreams(InputStream source, OutputStream destination) throws IOException {
>     [javac]                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>     [javac] The method transferStreams(InputStream, OutputStream) from the type PluginVersionReplaceTask is never used locally
>     [javac] ----------
>     [javac] 2 problems (2 warnings)
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1concat_1matrix':
>      [exec] cairo.c:73: warning: implicit declaration of function `cairo_concat_matrix_REPLACED_BY_cairo_transform'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1copy':
>      [exec] cairo.c:83: warning: implicit declaration of function `cairo_copy_DEPRECATED_BY_cairo_create_AND_MANY_INDIVIDUAL_FUNCTIONS'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1create':
>      [exec] cairo.c:104: error: too few arguments to function `cairo_create'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1current_1alpha':
>      [exec] cairo.c:116: warning: implicit declaration of function `cairo_current_alpha'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1current_1fill_1rule':
>      [exec] cairo.c:128: warning: implicit declaration of function `cairo_current_fill_rule_REPLACED_BY_cairo_get_fill_rule'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1current_1font':
>      [exec] cairo.c:140: warning: implicit declaration of function `cairo_current_font'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1current_1font_1extents':
>      [exec] cairo.c:153: warning: implicit declaration of function `cairo_current_font_extents_REPLACED_BY_cairo_font_extents'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1current_1line_1cap':
>      [exec] cairo.c:166: warning: implicit declaration of function `cairo_current_line_cap_REPLACED_BY_cairo_get_line_cap'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1current_1line_1join':
>      [exec] cairo.c:178: warning: implicit declaration of function `cairo_current_line_join_REPLACED_BY_cairo_get_line_join'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1current_1line_1width':
>      [exec] cairo.c:190: warning: implicit declaration of function `cairo_current_line_width_REPLACED_BY_cairo_get_line_width'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1current_1matrix':
>      [exec] cairo.c:201: warning: implicit declaration of function `cairo_current_matrix_REPLACED_BY_cairo_get_matrix'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1current_1miter_1limit':
>      [exec] cairo.c:212: warning: implicit declaration of function `cairo_current_miter_limit_REPLACED_BY_cairo_get_miter_limit'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1current_1operator':
>      [exec] cairo.c:224: warning: implicit declaration of function `cairo_current_operator_REPLACED_BY_cairo_get_operator'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1current_1path':
>      [exec] cairo.c:235: warning: implicit declaration of function `cairo_current_path_DEPRECATED_BY_cairo_copy_path'
>      [exec] cairo.c:235: error: `cairo_move_to_func_t' undeclared (first use in this function)
>      [exec] cairo.c:235: error: (Each undeclared identifier is reported only once
>      [exec] cairo.c:235: error: for each function it appears in.)
>      [exec] cairo.c:235: error: syntax error before ')' token
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1current_1path_1flat':
>      [exec] cairo.c:245: warning: implicit declaration of function `cairo_current_path_flat_DEPRECATED_BY_cairo_copy_path_flat'
>      [exec] cairo.c:245: error: `cairo_move_to_func_t' undeclared (first use in this function)
>      [exec] cairo.c:245: error: syntax error before ')' token
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1current_1pattern':
>      [exec] cairo.c:256: warning: implicit declaration of function `cairo_current_pattern'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1current_1point':
>      [exec] cairo.c:271: warning: implicit declaration of function `cairo_current_point_REPLACED_BY_cairo_get_current_point'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1current_1rgb_1color':
>      [exec] cairo.c:290: warning: implicit declaration of function `cairo_current_rgb_color'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1current_1target_1surface':
>      [exec] cairo.c:305: warning: implicit declaration of function `cairo_current_target_surface_REPLACED_BY_cairo_get_target'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1current_1tolerance':
>      [exec] cairo.c:317: warning: implicit declaration of function `cairo_current_tolerance_REPLACED_BY_cairo_get_tolerance'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1default_1matrix':
>      [exec] cairo.c:338: warning: implicit declaration of function `cairo_default_matrix_REPLACED_BY_cairo_identity_matrix'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1font_1destroy':
>      [exec] cairo.c:391: warning: implicit declaration of function `cairo_font_destroy'
>      [exec] cairo.c:391: error: `cairo_font_t' undeclared (first use in this function)
>      [exec] cairo.c:391: error: syntax error before ')' token
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1font_1reference':
>      [exec] cairo.c:413: warning: implicit declaration of function `cairo_font_reference'
>      [exec] cairo.c:413: error: `cairo_font_t' undeclared (first use in this function)
>      [exec] cairo.c:413: error: syntax error before ')' token
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1init_1clip':
>      [exec] cairo.c:501: warning: implicit declaration of function `cairo_init_clip_REPLACED_BY_cairo_reset_clip'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1inverse_1transform_1distance':
>      [exec] cairo.c:515: warning: implicit declaration of function `cairo_inverse_transform_distance_REPLACED_BY_cairo_device_to_user_distance'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1inverse_1transform_1point':
>      [exec] cairo.c:532: warning: implicit declaration of function `cairo_inverse_transform_point_REPLACED_BY_cairo_device_to_user'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1matrix_1copy':
>      [exec] cairo.c:556: warning: implicit declaration of function `cairo_matrix_copy_DEPRECATED_BY_cairo_matrix_t'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1matrix_1create':
>      [exec] cairo.c:568: warning: implicit declaration of function `cairo_matrix_create_DEPRECATED_BY_cairo_matrix_t'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1matrix_1destroy':
>      [exec] cairo.c:579: warning: implicit declaration of function `cairo_matrix_destroy_DEPRECATED_BY_cairo_matrix_t'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1matrix_1get_1affine':
>      [exec] cairo.c:602: warning: implicit declaration of function `cairo_matrix_get_affine_DEPRECATED_BY_cairo_matrix_t'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1matrix_1multiply':
>      [exec] cairo.c:633: error: void value not ignored as it ought to be
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1matrix_1rotate':
>      [exec] cairo.c:645: error: void value not ignored as it ought to be
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1matrix_1scale':
>      [exec] cairo.c:657: error: void value not ignored as it ought to be
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1matrix_1set_1affine':
>      [exec] cairo.c:669: warning: implicit declaration of function `cairo_matrix_set_affine_REPLACED_BY_cairo_matrix_init'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1matrix_1set_1identity':
>      [exec] cairo.c:681: warning: implicit declaration of function `cairo_matrix_set_identity_REPLACED_BY_cairo_matrix_init_identity'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1matrix_1transform_1distance':
>      [exec] cairo.c:697: error: void value not ignored as it ought to be
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1matrix_1transform_1point':
>      [exec] cairo.c:716: error: void value not ignored as it ought to be
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1matrix_1translate':
>      [exec] cairo.c:731: error: void value not ignored as it ought to be
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1pattern_1add_1color_1stop':
>      [exec] cairo.c:763: warning: implicit declaration of function `cairo_pattern_add_color_stop_REPLACED_BY_cairo_pattern_add_color_stop_rgba'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1pattern_1get_1matrix':
>      [exec] cairo.c:845: error: void value not ignored as it ought to be
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1pattern_1set_1extend':
>      [exec] cairo.c:867: error: void value not ignored as it ought to be
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1pattern_1set_1filter':
>      [exec] cairo.c:879: error: void value not ignored as it ought to be
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1pattern_1set_1matrix':
>      [exec] cairo.c:891: error: void value not ignored as it ought to be
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1scale_1font':
>      [exec] cairo.c:992: warning: implicit declaration of function `cairo_scale_font_REPLACED_BY_cairo_set_font_size'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1select_1font':
>      [exec] cairo.c:1004: warning: implicit declaration of function `cairo_select_font_REPLACED_BY_cairo_select_font_face'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1set_1alpha':
>      [exec] cairo.c:1016: warning: implicit declaration of function `cairo_set_alpha_DEPRECATED_BY_cairo_set_source_rgba_OR_cairo_paint_with_alpha'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1set_1font':
>      [exec] cairo.c:1050: warning: implicit declaration of function `cairo_set_font'
>      [exec] cairo.c:1050: error: `cairo_font_t' undeclared (first use in this function)
>      [exec] cairo.c:1050: error: syntax error before ')' token
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1set_1pattern':
>      [exec] cairo.c:1120: warning: implicit declaration of function `cairo_set_pattern_REPLACED_BY_cairo_set_source'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1set_1rgb_1color':
>      [exec] cairo.c:1130: warning: implicit declaration of function `cairo_set_rgb_color_REPLACED_BY_cairo_set_source_rgb'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1set_1target_1drawable':
>      [exec] cairo.c:1140: warning: implicit declaration of function `cairo_set_target_drawable_DEPRECATED_BY_cairo_xlib_surface_create'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1set_1target_1image':
>      [exec] cairo.c:1150: warning: implicit declaration of function `cairo_set_target_image_DEPRECATED_BY_cairo_image_surface_create_for_data'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1set_1target_1surface':
>      [exec] cairo.c:1160: warning: implicit declaration of function `cairo_set_target_surface_DEPRECATED_BY_cairo_create'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1show_1surface':
>      [exec] cairo.c:1200: warning: implicit declaration of function `cairo_show_surface_DEPRECATED_BY_cairo_set_source_surface_AND_cairo_paint'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1status_1string':
>      [exec] cairo.c:1237: warning: implicit declaration of function `cairo_status_string_DEPRECATED_BY_cairo_status_AND_cairo_status_to_string'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1surface_1create_1for_1image':
>      [exec] cairo.c:1282: warning: implicit declaration of function `cairo_surface_create_for_image_REPLACED_BY_cairo_image_surface_create_for_data'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1surface_1get_1filter':
>      [exec] cairo.c:1316: warning: implicit declaration of function `cairo_surface_get_filter_DEPRECATED_BY_cairo_pattern_get_filter'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1surface_1get_1matrix':
>      [exec] cairo.c:1328: warning: implicit declaration of function `cairo_surface_get_matrix_DEPRECATED_BY_cairo_pattern_get_matrix'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1surface_1set_1filter':
>      [exec] cairo.c:1350: warning: implicit declaration of function `cairo_surface_set_filter_DEPRECATED_BY_cairo_pattern_set_filter'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1surface_1set_1matrix':
>      [exec] cairo.c:1362: warning: implicit declaration of function `cairo_surface_set_matrix_DEPRECATED_BY_cairo_pattern_set_matrix'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1surface_1set_1repeat':
>      [exec] cairo.c:1374: warning: implicit declaration of function `cairo_surface_set_repeat_DEPRECATED_BY_cairo_pattern_set_extend'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1transform_1distance':
>      [exec] cairo.c:1417: warning: implicit declaration of function `cairo_transform_distance_REPLACED_BY_cairo_user_to_device_distance'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1transform_1font':
>      [exec] cairo.c:1430: warning: implicit declaration of function `cairo_transform_font_REPLACED_BY_cairo_set_font_matrix'
>      [exec] cairo.c: In function `Java_org_eclipse_swt_internal_cairo_Cairo_cairo_1transform_1point':
>      [exec] cairo.c:1444: warning: implicit declaration of function `cairo_transform_point_REPLACED_BY_cairo_user_to_device'
>      [exec] gmake: *** [cairo.o] ïÛÉÂËÁ 1
> 
> BUILD FAILED
> /usr/ports/java/eclipse/work/build.xml:53: exec returned: 2
> 
> Total time: 18 minutes 9 seconds
> *** Error code 1
> 
> Stop in /usr/ports/java/eclipse.
> 

This seems to be caused by the updated cairo 1.0.0 in gnome 2.12. 
Eclipse 3.1 depends on cairo 0.4 and cairo has changed its ABI 
afterwards. I think Eclipse 3.2M1 has been updated for cairo 0.6, which 
should be ABI-compatible to cairo 1.0.0, according to this:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=106527

We could use the patches for 3.1 in that report, but I would feel safer 
if we could preserve the cairo 0.4 libraries in /usr/local/lib/compat 
during the upgarde, as you suggested.

Regards,

Panagiotis



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4327DBC7.2090707>