[oe] gs_9.01: task configure fails with `./base/gp_unix.c:25:37: error: fontconfig/fontconfig.h: No such file or directory`
Paul Menzel
paulepanter at users.sourceforge.net
Tue May 17 08:31:01 UTC 2011
Am Montag, den 09.05.2011, 16:27 +0200 schrieb Paul Menzel:
> Dear Steve, dear Koen,
>
>
> task configure of GS 9.01 committed in 49a0baba [1] fails with the
> following error message using `angstrom-2010.x` for `MACHINE =
> "beagleboard"`.
>
> gcc -DHAVE_MKSTEMP -DHAVE_HYPOT -DHAVE_FILE64 -DHAVE_MKSTEMP64 -DHAVE_FONTCONFIG -DHAVE_SETLOCALE -O2 -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing -Wdeclaration-after-statement -fno-builtin -fno-common -DHAVE_STDINT_H -DGX_COLOR_INDEX_TYPE="unsigned long long" -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2 -ggdb2 -I./obj -I./base -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2 -ggdb2 -o ./obj/gp_unix.o -c ./base/gp_unix.c
> In file included from ./base/gp_unix.c:17:
> ./base/pipe_.h:39: warning: function declaration isn't a prototype
> ./base/gp_unix.c:25:37: error: fontconfig/fontconfig.h: No such file or directory
> ./base/gp_unix.c: In function 'makePSFontName':
> ./base/gp_unix.c:245: error: 'FC_SLANT_ROMAN' undeclared (first use in this function)
> ./base/gp_unix.c:245: error: (Each undeclared identifier is reported only once
> ./base/gp_unix.c:245: error: for each function it appears in.)
> ./base/gp_unix.c:246: error: 'FC_SLANT_OBLIQUE' undeclared (first use in this function)
> ./base/gp_unix.c:247: error: 'FC_SLANT_ITALIC' undeclared (first use in this function)
> ./base/gp_unix.c:252: error: 'FC_WEIGHT_MEDIUM' undeclared (first use in this function)
> ./base/gp_unix.c:253: error: 'FC_WEIGHT_LIGHT' undeclared (first use in this function)
> ./base/gp_unix.c:254: error: 'FC_WEIGHT_DEMIBOLD' undeclared (first use in this function)
> ./base/gp_unix.c:255: error: 'FC_WEIGHT_BOLD' undeclared (first use in this function)
> ./base/gp_unix.c:256: error: 'FC_WEIGHT_BLACK' undeclared (first use in this function)
> ./base/gp_unix.c: At top level:
> ./base/gp_unix.c:300: error: expected specifier-qualifier-list before 'FcConfig'
> ./base/gp_unix.c: In function 'gp_enumerate_fonts_init':
> ./base/gp_unix.c:310: error: 'FcPattern' undeclared (first use in this function)
> ./base/gp_unix.c:310: error: 'pat' undeclared (first use in this function)
> ./base/gp_unix.c:311: error: 'FcObjectSet' undeclared (first use in this function)
> ./base/gp_unix.c:311: error: 'os' undeclared (first use in this function)
> ./base/gp_unix.c:318: error: 'unix_fontenum_t' has no member named 'fc'
> ./base/gp_unix.c:319: error: 'unix_fontenum_t' has no member named 'font_list'
> ./base/gp_unix.c:322: error: 'unix_fontenum_t' has no member named 'fc'
> ./base/gp_unix.c:322: warning: implicit declaration of function 'FcInitLoadConfigAndFonts'
> ./base/gp_unix.c:323: error: 'unix_fontenum_t' has no member named 'fc'
> ./base/gp_unix.c:331: warning: implicit declaration of function 'FcPatternBuild'
> ./base/gp_unix.c:332: error: 'FC_OUTLINE' undeclared (first use in this function)
> ./base/gp_unix.c:332: error: 'FcTypeBool' undeclared (first use in this function)
> ./base/gp_unix.c:333: error: 'FC_SCALABLE' undeclared (first use in this function)
> ./base/gp_unix.c:335: warning: implicit declaration of function 'FcObjectSetBuild'
> ./base/gp_unix.c:335: error: 'FC_FILE' undeclared (first use in this function)
> ./base/gp_unix.c:336: error: 'FC_FAMILY' undeclared (first use in this function)
> ./base/gp_unix.c:336: error: 'FC_WEIGHT' undeclared (first use in this function)
> ./base/gp_unix.c:336: error: 'FC_SLANT' undeclared (first use in this function)
> ./base/gp_unix.c:338: error: 'unix_fontenum_t' has no member named 'font_list'
> ./base/gp_unix.c:338: warning: implicit declaration of function 'FcFontList'
> ./base/gp_unix.c:339: warning: implicit declaration of function 'FcPatternDestroy'
> ./base/gp_unix.c:340: warning: implicit declaration of function 'FcObjectSetDestroy'
> ./base/gp_unix.c:341: error: 'unix_fontenum_t' has no member named 'font_list'
> ./base/gp_unix.c: In function 'gp_enumerate_fonts_next':
> ./base/gp_unix.c:356: error: 'FcChar8' undeclared (first use in this function)
> ./base/gp_unix.c:356: error: 'file_fc' undeclared (first use in this function)
> ./base/gp_unix.c:357: error: 'family_fc' undeclared (first use in this function)
> ./base/gp_unix.c:358: warning: ISO C90 forbids mixed declarations and code
> ./base/gp_unix.c:359: error: 'FcPattern' undeclared (first use in this function)
> ./base/gp_unix.c:359: error: 'font' undeclared (first use in this function)
> ./base/gp_unix.c:360: error: 'FcResult' undeclared (first use in this function)
> ./base/gp_unix.c:360: error: expected ';' before 'result'
> ./base/gp_unix.c:366: error: 'unix_fontenum_t' has no member named 'font_list'
> ./base/gp_unix.c:372: error: 'unix_fontenum_t' has no member named 'font_list'
> ./base/gp_unix.c:374: error: 'result' undeclared (first use in this function)
> ./base/gp_unix.c:374: warning: implicit declaration of function 'FcPatternGetString'
> ./base/gp_unix.c:374: error: 'FC_FAMILY' undeclared (first use in this function)
> ./base/gp_unix.c:375: error: 'FcResultMatch' undeclared (first use in this function)
> ./base/gp_unix.c:380: error: 'FC_FILE' undeclared (first use in this function)
> ./base/gp_unix.c:386: warning: implicit declaration of function 'FcPatternGetBool'
> ./base/gp_unix.c:386: error: 'FC_OUTLINE' undeclared (first use in this function)
> ./base/gp_unix.c:392: warning: implicit declaration of function 'FcPatternGetInteger'
> ./base/gp_unix.c:392: error: 'FC_SLANT' undeclared (first use in this function)
> ./base/gp_unix.c:398: error: 'FC_WEIGHT' undeclared (first use in this function)
> ./base/gp_unix.c:408: error: 'unix_fontenum_t' has no member named 'name'
> ./base/gp_unix.c:408: error: 'unix_fontenum_t' has no member named 'name'
> ./base/gp_unix.c:409: error: 'unix_fontenum_t' has no member named 'name'
> ./base/gp_unix.c: In function 'gp_enumerate_fonts_free':
> ./base/gp_unix.c:426: error: 'unix_fontenum_t' has no member named 'font_list'
> ./base/gp_unix.c:427: warning: implicit declaration of function 'FcFontSetDestroy'
> ./base/gp_unix.c:427: error: 'unix_fontenum_t' has no member named 'font_list'
> make: *** [obj/gp_unix.o] Error 1
>
> The header files are there
>
> $ find . -name 'fontconfig.h'
> ./angstrom-dev/sysroots/i686-linux/usr/include/fontconfig/fontconfig.h
> ./angstrom-dev/sysroots/armv7a-angstrom-linux-gnueabi/usr/include/fontconfig/fontconfig.h
>
> and
>
> bitbake fontconfig-native
>
> beforehand does not help either. So I guess somehow the include flags
> are not passed correctly and indeed the `gcc` call does not have any
> `-I` option.
>
> Any idea on how to fix this most elegantly?
The main problem seems to be that in `do_configure_prepend()` `make` is
called and not `oe_runmake` and therefore the correct paths are not set.
I have two problems with this commit though.
1. According to the build logs from Steve [2][3] this recipe fails for
him with the same error message.
2. The recipe of `gs_8.64` was improved beforehand [4] and the above
mentioned problem fixed (it still does not work though). Why was the new
version not based on the old one?
Thanks,
Paul
> [1] http://cgit.openembedded.org/cgit.cgi/openembedded/commit/?id=49a0babada7f58fc583d299cfc16c22fc3e42fc2
[2] http://build.sakoman.com/packages/11697/
[3] http://build.sakoman.com/public/logs/task/82709.txt
[4] http://cgit.openembedded.org/cgit.cgi/openembedded/commit/?id=74d7b8e7a0c52178a8a111415586eb15d802a88b
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20110517/decdeca8/attachment-0002.sig>
More information about the Openembedded-devel
mailing list