[oe] xfonts-xorg_6.8.bb flex-problem?

martin mangard martin at mangard.at
Fri Mar 19 14:55:19 UTC 2010


Hello

I've got a problem compiling the   xfonts-xorg package. regarding to a
post in the gentoo mailing list this should be an issue with a wrong
flex version.
http://bugs.gentoo.org/133646 . They use flex version 2.5.33 .
I tried to compile this package with flex version 2.5.31 and 2.5.35.
Both  times the build failed with the same error message.


| gcc -O2 -fno-strength-reduce -ansi -pedantic -Wall -Wpointer-arith
-Wundef     -I../.. -I../../exports/include   -Dlinux -D__i386__
-D_POSIX_C_SOURCE=199309L
-D_POSIX_SOURCE -D_XOPEN_SOURCE
-D_BSD_SOURCE -D_SVID_SOURCE                             -D_GNU_SOURCE
                           -DFUNCPROTO=15 -DNARROWPROTO
-DXENVIRONMENT
-isystem/home/mmangard/mystuff/build_test/tmp/staging/i486-angstrom-linux/usr/include
 -c -o pswparser.o pswparser.c
| y.tab.c:230:6: warning: "YYENABLE_NLS" is not defined
| y.tab.c:734:6: warning: "YYLTYPE_IS_TRIVIAL" is not defined
| flex -l  -t lexer.l > lexer.c
| gcc -O2 -fno-strength-reduce -ansi -pedantic -Wall -Wpointer-arith
-Wundef     -I../.. -I../../exports/include   -Dlinux -D__i386__
-D_POSIX_C_SOURCE=199309L
-D_POSIX_SOURCE -D_XOPEN_SOURCE
-D_BSD_SOURCE -D_SVID_SOURCE                             -D_GNU_SOURCE
                           -DFUNCPROTO=15 -DNARROWPROTO
-DXENVIRONMENT
-isystem/home/mmangard/mystuff/build_test/tmp/staging/i486-angstrom-linux/usr/include
 -c -o lexer.o lexer.c
| lexer.l:44: error: non-static declaration of 'yy_prev_more_offset'
follows static declaration
| <stdout>:819: note: previous definition of 'yy_prev_more_offset' was here
| lexer.l: In function 'yylex':
| lexer.l:350: warning: format '%lo' expects type 'long unsigned int
*', but argument 3 has type 'long int *'
| lexer.l:359: warning: format '%lx' expects type 'long unsigned int
*', but argument 3 has type 'long int *'
| make[4]: *** [lexer.o] Error 1
| make[4]: Leaving directory
`/home/mmangard/mystuff/build_test/tmp/work/all-angstrom-linux/xfonts-xorg-6.8-r1/xc/config/pswrap'
| make[3]: *** [../../config/pswrap/pswrap] Error 2
| make[3]: Leaving directory
`/home/mmangard/mystuff/build_test/tmp/work/all-angstrom-linux/xfonts-xorg-6.8-r1/xc/lib/dps'
| make[2]: *** [includes] Error 2
| make[2]: Leaving directory
`/home/mmangard/mystuff/build_test/tmp/work/all-angstrom-linux/xfonts-xorg-6.8-r1/xc/lib'
| make[1]: *** [includes] Error 2
| make[1]: Leaving directory
`/home/mmangard/mystuff/build_test/tmp/work/all-angstrom-linux/xfonts-xorg-6.8-r1/xc'
| make: *** [includes] Error 2
NOTE: Task failed:
/home/mmangard/mystuff/build_test/tmp/work/all-angstrom-linux/xfonts-xorg-6.8-r1/temp/log.do_compile.9487


I tried to make a package for flex 2.5.33, but ran into problems. But
I also don't want to be stuck at a specific flex version, which has a
lot of dependencies.
How can I build the "x-fonts-xorg" package successfully?  Is it a
wrong version of flex or is there another problem?

Martin




More information about the Openembedded-devel mailing list