Summary: | kbabel compilation failure in kdesdk-3.1.94 | ||
---|---|---|---|
Product: | kbabel | Reporter: | marcin <mg> |
Component: | general | Assignee: | Stanislav Visnovsky <visnovsky> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
marcin
2003-12-09 18:48:07 UTC
If you upgrade your GNU flex, does it work? This problem is caused by GNU flex being incompatible with the stricter C++ requirements of your g++ 3.2 or up. Can you also verify if pofiles.cc was already present in your packages or if it was generated? (or both?) My flex version is 2.5.4 (and I can't find newer one). pofiles.cc is generated. Using this patch on flex 2.5.4a : http://lfs.crash404.com/patches/downloads/flex/flex-2.5.4a-redhat-fixes.patch make kbabel compile with gcc 3.3.x. Confirm, no errors anymore. Maybe you should include generated pofiles.cc in source distribution since most people won't have this patch applied? No, if you've updated gcc, you should consider to update flex as well. It does not make sense if you have a new gcc and old flex, which generates invalid code for you gcc. *** This bug has been marked as a duplicate of 62895 *** The problem is that the newest version of flex is 2.5.4a from 1997 (ftp://ftp.gnu.org/pub/gnu/non-gnu/flex, correct me if there is newer version available). And believe me, there are people who simple don't use packages or even don't use any specific distribution (consider LFS). Yes, you are right that 2.54a is the latest "stable" flex. And I do believe there are people that don't use distros. Simply, I cannot add a file, that will compile with all flex versions. That's the problem! What about adding a test to configure or even a notice in README and including this patch (or its url)? I think it could be fine solution ... If you have faulty programs installed, it's not our fault. This problem has also appeared several times here in the bug tracking system, so people can find it if they don't simply file reports away without checking for duplicates. As for the generated file, it's KDE policy that they be included in the tarballs and CVS. That means this pofiles.cc should be in CVS. That is, I hope flex 2.5.4a generates files that old g++ versions can compile as well as new ones. It doesn't and that's the whole problem. It works only if you patch flex with this redhat patch. |