[gtk-osx-users] Pango error implicit declaration of function is invalid in C99.



Hello,
I've a compiling error with Pango:

% jhbuild build meta-gtk-osx-gtk3
...
[88/126] Compiling C object pango/libpangocairo-1.0.0.dylib.p/pangocairo-fcfont.c.o
FAILED: pango/libpangocairo-1.0.0.dylib.p/pangocairo-fcfont.c.o 
/Applications/Xcode.app/Contents/Developer/usr/bin/gcc -Ipango/libpangocairo-1.0.0.dylib.p -Ipango 
-I../../../../pango-1.44.7/pango -I. -I../../../../pango-1.44.7 -I/opt/xnadalib-2020/include/glib-2.0 
-I/opt/xnadalib-2020/lib/glib-2.0/include -I/opt/xnadalib-2020/include/fribidi 
-I/opt/xnadalib-2020/include/harfbuzz -I/opt/xnadalib-2020/include/freetype2 
-I/opt/xnadalib-2020/include/libpng16 -I/opt/local/include -I/opt/xnadalib-2020/include/cairo 
-I/opt/xnadalib-2020/include/pixman-1 
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include 
-I/opt/xnadalib-2020/include -Xclang -fcolor-diagnostics -pipe -Wall -Winvalid-pch -std=gnu99 -O2 -g 
-D_POSIX_C_SOURCE=200809L -D_POSIX_THREAD_SAFE_FUNCTIONS -D_GNU_SOURCE -arch x86_64 -isysroot 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk 
-mmacosx-version-min=10.15 -g -O0 -ggdb3 -arch x86_64 -isysroot 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -g -O0 -ggdb3 
-Wimplicit-function-declaration -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs 
-Wold-style-definition -Wno-int-conversion -fno-strict-aliasing -Wpointer-arith -Wmissing-declarations 
-Wformat=2 -Wformat-nonliteral -Wformat-security -Wunused -Wcast-align -Wmissing-noreturn 
-Wmissing-format-attribute -Wmissing-include-dirs -Wno-uninitialized -Wno-shadow -Werror=implicit 
-Werror=implicit-fallthrough -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces 
-Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings 
-Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=empty-body 
-Werror=write-strings -Wundef -Werror=redundant-decls -fvisibility=hidden -DPANGO_ENABLE_DEBUG 
'-DG_LOG_DOMAIN="Pango"' -DG_LOG_USE_STRUCTURED=1 -DPANGO_COMPILATION '-DSYSCONFDIR="/opt/xnadalib-2020/etc"' 
'-DLIBDIR="/opt/xnadalib-2020/lib"' -DPANGO_DISABLE_DEPRECATION_WARNINGS -MD -MQ 
pango/libpangocairo-1.0.0.dylib.p/pangocairo-fcfont.c.o -MF 
pango/libpangocairo-1.0.0.dylib.p/pangocairo-fcfont.c.o.d -o 
pango/libpangocairo-1.0.0.dylib.p/pangocairo-fcfont.c.o -c ../../../../pango-1.44.7/pango/pangocairo-fcfont.c
../../../../pango-1.44.7/pango/pangocairo-fcfont.c:71:10: error: implicit declaration of function 
'cairo_ft_font_face_create_for_pattern' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
  return cairo_ft_font_face_create_for_pattern (fcfont->font_pattern);
         ^
../../../../pango-1.44.7/pango/pangocairo-fcfont.c:71:10: note: did you mean 
'cairo_ft_font_face_create_for_ft_face'?
/opt/xnadalib-2020/include/cairo/cairo-ft.h:56:1: note: 'cairo_ft_font_face_create_for_ft_face' declared here
cairo_ft_font_face_create_for_ft_face (FT_Face         face,
^
1 error generated.
[89/126] Compiling C object pango/libpangocairo-1.0.0.dylib.p/pangocairo-render.c.o
../../../../pango-1.44.7/pango/pangocairo-render.c:506:19: warning: assigning to 'char *' from 'const char *' 
discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
  for (row = 0, p = name; row < rows; row++)
                  ^ ~~~~
1 warning generated.
[90/126] Compiling C object pango/libpangocairo-1.0.0.dylib.p/pangocairo-fcfontmap.c.o
FAILED: pango/libpangocairo-1.0.0.dylib.p/pangocairo-fcfontmap.c.o 
/Applications/Xcode.app/Contents/Developer/usr/bin/gcc -Ipango/libpangocairo-1.0.0.dylib.p -Ipango 
-I../../../../pango-1.44.7/pango -I. -I../../../../pango-1.44.7 -I/opt/xnadalib-2020/include/glib-2.0 
-I/opt/xnadalib-2020/lib/glib-2.0/include -I/opt/xnadalib-2020/include/fribidi 
-I/opt/xnadalib-2020/include/harfbuzz -I/opt/xnadalib-2020/include/freetype2 
-I/opt/xnadalib-2020/include/libpng16 -I/opt/local/include -I/opt/xnadalib-2020/include/cairo 
-I/opt/xnadalib-2020/include/pixman-1 
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include 
-I/opt/xnadalib-2020/include -Xclang -fcolor-diagnostics -pipe -Wall -Winvalid-pch -std=gnu99 -O2 -g 
-D_POSIX_C_SOURCE=200809L -D_POSIX_THREAD_SAFE_FUNCTIONS -D_GNU_SOURCE -arch x86_64 -isysroot 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk 
-mmacosx-version-min=10.15 -g -O0 -ggdb3 -arch x86_64 -isysroot 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -g -O0 -ggdb3 
-Wimplicit-function-declaration -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs 
-Wold-style-definition -Wno-int-conversion -fno-strict-aliasing -Wpointer-arith -Wmissing-declarations 
-Wformat=2 -Wformat-nonliteral -Wformat-security -Wunused -Wcast-align -Wmissing-noreturn 
-Wmissing-format-attribute -Wmissing-include-dirs -Wno-uninitialized -Wno-shadow -Werror=implicit 
-Werror=implicit-fallthrough -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces 
-Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings 
-Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=empty-body 
-Werror=write-strings -Wundef -Werror=redundant-decls -fvisibility=hidden -DPANGO_ENABLE_DEBUG 
'-DG_LOG_DOMAIN="Pango"' -DG_LOG_USE_STRUCTURED=1 -DPANGO_COMPILATION '-DSYSCONFDIR="/opt/xnadalib-2020/etc"' 
'-DLIBDIR="/opt/xnadalib-2020/lib"' -DPANGO_DISABLE_DEPRECATION_WARNINGS -MD -MQ 
pango/libpangocairo-1.0.0.dylib.p/pangocairo-fcfontmap.c.o -MF 
pango/libpangocairo-1.0.0.dylib.p/pangocairo-fcfontmap.c.o.d -o 
pango/libpangocairo-1.0.0.dylib.p/pangocairo-fcfontmap.c.o -c 
../../../../pango-1.44.7/pango/pangocairo-fcfontmap.c
../../../../pango-1.44.7/pango/pangocairo-fcfontmap.c:109:5: error: implicit declaration of function 
'cairo_ft_font_options_substitute' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    cairo_ft_font_options_substitute (pango_fc_fontset_key_get_context_key (fontkey),
    ^
../../../../pango-1.44.7/pango/pangocairo-fcfontmap.c:109:5: note: did you mean 'cairo_font_options_status'?
/opt/xnadalib-2020/include/cairo/cairo.h:1397:1: note: 'cairo_font_options_status' declared here
cairo_font_options_status (cairo_font_options_t *options);
^
1 error generated.
[91/126] Generating symbol file pango/libpangoft2-1.0.0.dylib.p/libpangoft2-1.0.[92/126] Compiling C object 
pango/libpangocairo-1.0.0.dylib.p/pangocairo-fontmap[93/126] Generating Pango-1.0.gir with a custom command
ninja: build stopped: subcommand failed.
*** Error during phase build of pango: ########## Error running ninja   *** [19/29]

  [1] Rerun phase build
  [2] Ignore error and continue to install
  [3] Give up on module
  [4] Start shell
  [5] Reload configuration
  [6] Go to phase "wipe directory and start over"
  [7] Go to phase "configure"
  [8] Go to phase "clean"
choice: 

Is there an issue with Apple C compiler?

Thanks, Pascal.
https://blady.pagesperso-orange.fr




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]