Re: GCC 10 how disable redefinition of thing error ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2020-02-05 at 01:38 +0000, Sérgio Basto wrote:
> Hi, 
> Packages gpm, VirtualBox and webalizer have the building problem as
> described for gpm in [1] , but VirtualBox have thousands of lines
> with
> this error , I'd like disable this check on VirtualBox until
> VirtualBox
> fix it , 
> the author of pull request [1] also comment "The error also happens
> if
> CFLAGS=-fno-common passed explicitly." , any quick way to fix these
> builds ? 

The easiest way is to add -fcommon to the build flags for the package:
  https://gcc.gnu.org/gcc-10/porting_to.html#common
(but FWIW it's best to fix it properly by adding extern to the decls in
the headers, as C can generate slightly faster code that way).

Dave

> Thanks. 
> 
> [1]
> https://github.com/telmich/gpm/pull/37

_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux