Hi, when I try to emerge modutils-2.4.25 on my new installed system, I receive this error: flex -olex.c -d lex.l parse.h gcc -mcpu=ultrasparc -mtune=ultrasparc -pipe -O3 -fomit-frame-pointer -Wno-uninitialized -I. -I. -I./../include -D_GNU_SOURCE -DCONFIG_ROOT_CHECK_OFF=0 -c -o lex.o lex.c In file included from lex.l:33: ../include/util.h:42: warning: built-in function `log' declared as non-function lex.l: In function `yylex': lex.l:429: error: `yytext_ptr' undeclared (first use in this function) lex.l:429: error: (Each undeclared identifier is reported only once lex.l:429: error: for each function it appears in.) make[1]: *** [lex.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/modutils-2.4.25/work/modutils-2.4.25/genksyms' make: *** [all] Error 2 !!! ERROR: sys-apps/modutils-2.4.25 failed. !!! Function src_compile, Line 42, Exitcode 2 !!! emake failed This is not an modutils error. The source of the error is Flex... darwin portage # emerge -s ^flex$ Searching... [ Results for search key : flex ] [ Applications found : 1 ] * sys-devel/flex Latest version available: 2.5.31 Latest version installed: 2.5.31 Size of downloaded files: 665 kB Homepage: http://lex.sourceforge.net/ Description: GNU lexical analyser generator darwin portage # Running `grep -r yytext_ptr *` over the Flex source shows a #undef yytext_ptr, which shouldnt be there ;) Patch for ebuild and Flex-2.5.31 source attached.
Created attachment 19296 [details, diff] Patch against ebuild
Created attachment 19297 [details, diff] Patch against flex-2.5.31
with -r1 in cvs
Hi. I got almost the same error while doing an emerge system on a fresh installed system. I solved it by emerging flex-2.5.4x before doing the emerge system. works well for me.