Summary: | modutils-2.4.26 fails to compile with newer flex | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Stephane Loeuillet <leroutier> |
Component: | New packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | 1.4 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Stephane Loeuillet
2003-12-21 05:47:26 UTC
the warning/line : ../include/util.h:42: warning: built-in function `log' declared as non-function is not part of the problem as it is present all over the compilation process the only other warning i can see is : parse.y: conflicts: 6 shift/reduce, 5 reduce/reduce but it is far away from the compilation error so probably not related seems it is in the modutils part. quote from a mail i had with rusty russel : "It's actually a modutils problem. Looks like the gentoo module-init-tools package included the modutils source. I had the same problem, though, and IIRC it was fairly trivial to fix. Unfortunately, I can't find the diff 8(" so, using my friend google : http://www.google.fr/search?q=yytext_ptr+undeclared&ie=UTF-8&oe=UTF-8&hl=fr&btnG=Recherche+Google&meta= i found pointers to similar bugs in LFS and debian, including this one : http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=189695&archive=yes it contains the fix for modutils 2.4.21 but it should be easy to port to 2.4.26 LFS patches : http://linuxfromscratch.org/pipermail/patches/2003-September/000258.html http://lfs.crash404.com/patches/downloads/modutils/modutils-2.4.25-flex-1.patch seems this fix is shorter and smarter. i found this bug was triggered by both modutils (2.4.2[1-6] at least) and xfree (4.3) since flex-2.5.[28-31] another LFS page, with a summary about what flex 2.5.31 breaks : http://www.linuxfromscratch.org/~matthew/lfs_packages.html "flex-2.5.31 is known to cause compilation of certain packages (modutils and xfree86 to name but 2) to fail. flex-2.5.27 has been reported to work correctly, although as it is classed as an experimental release the CVS book is sticking to 2.5.4a for now. The patch linked to here should allow compilation of modutils to succeed but YMMV." http://www.linuxfromscratch.org/~matthew/lfs-patches/flex-2.5.31-yytext_ptr-1.patch.bz2 but it is a fix for flex, not modutils itself !!! argh, i hate it seems Martin Holzer already included LFS patch for flex 2.5.31 (in -r1) in order to make modutils to compile but as 2.5.4 is still in portage, emerge -up flex won't show me that a -r1 version is present (for portage, 2.5.4 is newer than 2.5.31) so, for people who can't compile modutils because of your current flex, update at least to flex-2.5.31-r1 or stay with 2.5.27 or lower seems it was a dupe of http://bugs.gentoo.org/show_bug.cgi?id=31240 |