[cairo-bugs] [Bug 77060] New: cario fails to compile with gcc 4.9
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Apr 4 09:42:02 PDT 2014
https://bugs.freedesktop.org/show_bug.cgi?id=77060
Priority: medium
Bug ID: 77060
Assignee: chris at chris-wilson.co.uk
Summary: cario fails to compile with gcc 4.9
QA Contact: cairo-bugs at cairographics.org
Severity: normal
Classification: Unclassified
OS: All
Reporter: yunlian at gmail.com
Hardware: Other
Status: NEW
Version: 1.12.14
Component: general
Product: cairo
When using gcc 4.9, I got the following errors.
This is because for gcc 4.9 When using a linker plugin, compiling with the
-flto option now generates slim objects files (.o) which only contain
intermediate language representation for LTO. Use -ffat-lto-objects to create
files which contain additionally the object code.
So a quick fix is to add '-ffat-lto-objects' when -flto is used.
CCLD cairo-sphinx
../../util/cairo-script/.libs/libcairo-script-interpreter.so: error: undefined
reference to 'cairo_matrix_init_identity'
../../util/cairo-script/.libs/libcairo-script-interpreter.so: error: undefined
reference to 'cairo_matrix_init'
../../util/cairo-script/.libs/libcairo-script-interpreter.so: error: undefined
reference to 'cairo_scaled_font_reference'
../../util/cairo-script/.libs/libcairo-script-interpreter.so: error: undefined
reference to 'cairo_pattern_reference'
../../util/cairo-script/.libs/libcairo-script-interpreter.so: error: undefined
reference to 'cairo_font_face_reference'
../../util/cairo-script/.libs/libcairo-script-interpreter.so: error: undefined
reference to 'cairo_reference'
../../util/cairo-script/.libs/libcairo-script-interpreter.so: error: undefined
reference to 'cairo_scaled_font_destroy'
../../util/cairo-script/.libs/libcairo-script-interpreter.so: error: undefined
reference to 'cairo_pattern_destroy'
../../util/cairo-script/.libs/libcairo-script-interpreter.so: error: undefined
reference to 'cairo_font_face_destroy'
../../util/cairo-script/.libs/libcairo-script-interpreter.so: error: undefined
reference to 'cairo_font_options_set_antialias'
../../util/cairo-script/.libs/libcairo-script-interpreter.so: error: undefined
reference to 'cairo_font_options_set_subpixel_order'
../../util/cairo-script/.libs/libcairo-script-interpreter.so: esphinx.c:979:
error: undefined reference to 'cairo_surface_create_similar'
sphinx.c:981: error: undefined reference to 'cairo_surface_get_type'
sphinx.c:984: error: undefined reference to 'cairo_boilerplate_xmalloc'
sphinx.c:987: error: undefined reference to 'cairo_surface_set_user_data'
sphinx.c:874: error: undefined reference to 'cairo_surface_get_type'
sphinx.c:881: error: undefined reference to 'cairo_surface_get_user_data'
sphinx.c:875: error: undefined reference to 'cairo_image_surface_get_width'
sphinx.c:876: error: undefined reference to 'cairo_image_surface_get_height'
sphinx.c:877: error: undefined reference to 'cairo_image_surface_get_format'
sphinx.c:890: error: undefined reference to 'cairo_create'
sphinx.c:891: error: undefined reference to 'cairo_clip_extents'
--
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo-bugs/attachments/20140404/3cf22f0d/attachment.html>
More information about the cairo-bugs
mailing list