Bug 104584

Summary: CAIRO DOES NOT COMPILE after commit a18c0de due to implicit declaration of function ‘FT_Get_Var_Design_Coordinates’
Product: cairo Reporter: hecmundo <hector.edmundox.ramirez.gomez>
Component: generalAssignee: Behdad Esfahbod <freedesktop>
Status: CLOSED DUPLICATE QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: blocker    
Priority: highest CC: freedesktop, hector.edmundox.ramirez.gomez
Version: unspecified   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: autogen output
make output

Description hecmundo 2018-01-11 17:55:05 UTC
Created attachment 136664 [details]
autogen output

Followed steps:

1) $ git clone https://anongit.freedesktop.org/git/cairo/

2) $ sudo./autogen.sh --prefix=/opt/X11R7 --libdir=/opt/X11R7/lib

3) $ sudo make

***
Compilation fails, log attached. Main error:

cairo-ft-font.c: In function ‘_cairo_ft_unscaled_font_init’:
cairo-ft-font.c:460:7: error: implicit declaration of function ‘FT_Get_Var_Design_Coordinates’ [-Werror=implicit-function-declaration]
       FT_Get_Var_Design_Coordinates (face, ft_mm_var->num_axis, unscaled->variations);
       ^
cairo-ft-font.c: In function ‘_cairo_ft_has_color_glyphs’:
cairo-ft-font.c:3007:9: warning: ignoring return value of ‘_cairo_ft_unscaled_font_lock_face’, declared with attribute warn_unused_result [-Wunused-result]
         _cairo_ft_unscaled_font_lock_face (unscaled);
         ^
  CC       cairo-pdf-interchange.lo
cairo-png.c: In function ‘read_png’:
cairo-png.c:550:15: warning: variable ‘data’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
     png_byte *data = NULL;
               ^
  CC       cairo-tag-stack.lo
cairo-png.c:551:16: warning: variable ‘row_pointers’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
     png_byte **row_pointers = NULL;
                ^
  CC       cairo-svg-surface.lo
cc1: some warnings being treated as errors
Makefile:2376: recipe for target 'cairo-ft-font.lo' failed

***
This error was introduced in commit a18c0decdacc3846588f424edb6d45ddc9be9560 (https://cgit.freedesktop.org/cairo/commit/?id=a18c0decdacc3846588f424edb6d45ddc9be9560)

***
Using previous commit 6b0593827b072abd701ea47448981bcc9bdde9f3 (https://cgit.freedesktop.org/cairo/commit/?id=6b0593827b072abd701ea47448981bcc9bdde9f3) compilation is succesful
Comment 1 hecmundo 2018-01-11 17:55:33 UTC
Created attachment 136665 [details]
make output
Comment 2 Behdad Esfahbod 2018-01-16 00:29:41 UTC
commit 5795ac9d90c4927e9826cf49687a9f84628d9974 (HEAD -> master)
Author: Behdad Esfahbod <behdad@behdad.org>
Date:   Mon Jan 15 19:28:56 2018 -0500

    Fix compile with older FreeType without FT_Get_Var_Design_Coordinates
Comment 3 Humberto Israel Perez Rodriguez 2018-01-18 18:33:59 UTC
duplicated of https://bugs.freedesktop.org/show_bug.cgi?id=104504

*** This bug has been marked as a duplicate of bug 104504 ***

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.