Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 31240 - error: `yytext_ptr' undeclared while emerging modutils-2.4.25 (problem with flex-2.5.31)
Summary: error: `yytext_ptr' undeclared while emerging modutils-2.4.25 (problem with f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-15 23:19 UTC by Sven Blumenstein (RETIRED)
Modified: 2004-06-07 09:58 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch against ebuild (flex-2.5.31.ebuild.patch,324 bytes, patch)
2003-10-15 23:23 UTC, Sven Blumenstein (RETIRED)
Details | Diff
Patch against flex-2.5.31 (flex-2.5.31-yytext_ptr.patch,265 bytes, patch)
2003-10-15 23:24 UTC, Sven Blumenstein (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Blumenstein (RETIRED) gentoo-dev 2003-10-15 23:19:16 UTC
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.
Comment 1 Sven Blumenstein (RETIRED) gentoo-dev 2003-10-15 23:23:51 UTC
Created attachment 19296 [details, diff]
Patch against ebuild
Comment 2 Sven Blumenstein (RETIRED) gentoo-dev 2003-10-15 23:24:19 UTC
Created attachment 19297 [details, diff]
Patch against flex-2.5.31
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2003-10-16 12:11:07 UTC
with -r1 in cvs
Comment 4 Dominic Finke 2004-06-07 09:58:25 UTC
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.