Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src/nettest_omni.c: fix compilation with GCC10 #48

Closed
wants to merge 1 commit into from
Closed

src/nettest_omni.c: fix compilation with GCC10 #48

wants to merge 1 commit into from

Conversation

ffontaine
Copy link

GCC10 defaults to -fno-common, which breaks compilation when there are
multiple definitions of implicit "extern" variables. Remove the extra
definitions.

Fix #42

Signed-off-by: Tony Ambardar [email protected]
[Retrieved from:
https://github.com/openwrt/packages/blob/master/net/netperf/patches/010-gcc10_multiple_definition_fix.patch]
Signed-off-by: Fabrice Fontaine [email protected]

GCC10 defaults to -fno-common, which breaks compilation when there are
multiple definitions of implicit "extern" variables. Remove the extra
definitions.

Fix #42

Signed-off-by: Tony Ambardar <[email protected]>
[Retrieved from:
https://github.com/openwrt/packages/blob/master/net/netperf/patches/010-gcc10_multiple_definition_fix.patch]
Signed-off-by: Fabrice Fontaine <[email protected]>
@ricera
Copy link

ricera commented Sep 10, 2020

This would also unbreak the compilation on FreeBSD 13.0-CURRENT, too.

@ffontaine
Copy link
Author

I'm closing this PR as it's a duplicate of #46

@ffontaine ffontaine closed this Sep 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to compile on Fedora 32
2 participants