Summary: | x11-libs/libxklavier-2.2 fails with warnings being treated as errors | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Sam <sgreadly> |
Component: | [OLD] Library | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | VERIFIED UPSTREAM | ||
Severity: | normal | ||
Priority: | High | ||
Version: | 2006.0 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Sam
2006-09-24 03:43:17 UTC
You should know better than sticking -fvisibility-inlines-hidden into CFLAGS. The message clearly tells you that you've screwed-up (plus, this is an upstream issue and -Werror is already removed in >=3.0) Why the comment ? http://gentoo-wiki.com/CFLAGS_matrix says that it doesn't work with gcc 3.3. The note says "Avoids exporting unneeded symbols from libraries, making them smaller. Recommended especially for KDE users.". And since i'm a KDE user i used it. The error is green there, and only says "Some older wxGTK versions don't compile. The wxGTK-2.6 version compiles, but doesn't work. Prelinking will no longer work.". I'm on wxGTK-2.6.3.2 so that's no problem. Furthermore, i removed the CFLAG and recompiled, and it's a different error. Edit: http://gentoo-wiki.com/CFLAGS_matrix says that it doesn't work with gcc 3.3, but i'm on GCC 4.1.1 KDE has USE=kdehiddenvisibility for this. And, it plain doesn't belong into CFLAGS, that's what the message tells you: <snip> cc1: warning: command line option "-fvisibility-inlines-hidden" is valid for C++/ObjC++ but not for C </snip> <snip> test_monitor.c:1: warning: variable tracking requested, but useless unless producing debug info </snip> -fvar-tracking is obviously causing the above. I'd suggest reading man gcc before sticking stuff into your C[XX]FLAGS. :) <snip> As a followup to bug http://bugs.gentoo.org/show_bug.cgi?id=148894 I removed -fvisibility-inlines-hidden from my CFLAGS, but still i get a compilation error. This one i'm not sure exactly what from. </snip> This is strange. If what you said above is true, then i'm getting confused.. Check out the dump, "..................-I/usr/include -I -I.. -Os -march=pentium-m -pipe -fomit-frame-pointer -ftracer -fweb -fvar-tracking -MT test_monitor.o......................" Doesn't seem like -fvisibility-inlines-hidden is there. Or do i have to recompile gcc after i remove it from make.conf ? |