Summary: | xine-lib-1.1.2_pre20060328-r9 does not compile (unknown option -fvisibility=hidden) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Guido Flohr <guido> |
Component: | New packages | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | VERIFIED DUPLICATE | ||
Severity: | major | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Guido Flohr
2006-07-10 07:45:06 UTC
> Why do you not simply check the gcc version, or alternatively check whether gcc > understands the option or not? Because it wouldn't make any difference, it'd die either. And there's no way to force users to switch. http://www.gentoo.org/doc/en/gcc-upgrading.xml *** This bug has been marked as a duplicate of 132122 *** Yes, it _would_ make a difference: gcc 3.3.6 does not support the command line switch "-fvisibility=..." but already supports the function attribute "visibility", see http://gcc.gnu.org/onlinedocs/gcc-3.3.6/gcc/Function-Attributes.html#Function-Attributes and search for "visibility". And, anyway, gcc only warns about unknown function attributes and will not die. (In reply to comment #2) > And, anyway, gcc only warns about unknown function attributes and will not die. Err? <snip> cc1: error: unrecognized option `-fvisibility=hidden' make[3]: *** [xineplug_ao_out_oss_la-audio_oss_out.lo] Error 1 </snip> (In reply to comment #3) > Err? > > <snip> > cc1: error: unrecognized option `-fvisibility=hidden' > make[3]: *** [xineplug_ao_out_oss_la-audio_oss_out.lo] Error 1 > </snip> That's exactly my point. The configure macro does not try the command line option but instead compiles a piece of code: void __attribute__ ((visibility ("default"))) testfunc() {} That compiles with gcc 3.3.6, and so the test succeeds, although it should not. |