| Summary: | emerge of app-cdr/kcdlabel-2.12 fails during compilation | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Greisberger Christophe <christophe> |
| Component: | New packages | Assignee: | Gentoo KDE team <kde> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | mikessu |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | adds the -fpermissive option to CXXFLAGS | ||
|
Description
Greisberger Christophe
2003-12-02 15:58:05 UTC
it's a problem in the linux-headers. make sure you've got the latest ones installed. I just checked, I had the "latest unmasked" one: linux-headers-2.4.21-r1 I upgraded manually to linux-headers-2.4.22 and then to 2.4.23 I still had the same error... I noticed that I had the linux-headers-2.4.19-r1 protected. I unmerged them and reemerged to linux-headers-2.4.21-r1. Still no chance... i get exactly the same errors. i'm also at Kernel headers: 2.4.21 Kernel sources: vanilla 2.4.22 # emerge info Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.22) can confirm with linux-headers-2.6.3(-r1) as well. Also have other people around the office with the same problem. Perhaps we need to use *older* headers? As in it worked on some machine somewhere but the person who last tested it used old kernel headers? Or perhaps he used stuff in /usr/src/linux/include? I'm installing a new gentoo, and I still have this bug. Anything new? Still a problem for me. 2.6.5-r1 kernel and 2.6.5 headers. I found that this issue is due to a conflict with ANSI C++ dialect, not actually a kernel headers issue. To get this package to build and install, I researched the g++ syntax and found that the command below worked: CXXFLAGS="$CXXFLAGS -fpermissive" emerge kcdlabel Please note that this could be integrated into the ebuild, which does not specify build-time flags. The ebuild maintainer should address this issue. Additional note - The addition of "-fpermissive" parameter to $CXXFLAGS does not suppress the following warning, which seems to be a problem in the kcdlabel author's C++ code that was causing the ebuild to fail, i.e. see below: cc1plus: warning: "-Wbad-function-cast" is valid for C/ObjC but not for C++ error: ISO C++ forbids braced-groups within expressions To clarify my prior report, the error that was the actual cause of the failed build for kcdlabel was as follows: error: ISO C++ forbids braced-groups within expressions There is an interesting discussion about this problem on http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=203303. Daniel Souza The -fpermissive fix worked for me... -fpermissive works for me too. Time for flag-o-matic, I think ... Created attachment 34751 [details]
adds the -fpermissive option to CXXFLAGS
This updated ebuild adds -fpermissive to the CXXFLAGS
done :) |