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

libplugin: fix compilation issue on recent gccs. #3631

Merged
merged 1 commit into from
Apr 8, 2020

Conversation

rustyrussell
Copy link
Contributor

They now use -fno-common by default, so duplicated variables cause
a link error:

/usr/bin/ld: common/utils.o:(.bss+0x10): multiple definition of `chainparams'; plugins/libplugin.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:408: plugins/autoclean] Error 1

This was introduced in 9ebfdf0.

Fixes: #3597
Signed-off-by: Rusty Russell rusty@rustcorp.com.au
Changelog-Fixed: Multiple definition of chainparams on Fedora (or other really recent gcc)

They now use -fno-common by default, so duplicated variables cause
a link error:

/usr/bin/ld: common/utils.o:(.bss+0x10): multiple definition of `chainparams'; plugins/libplugin.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:408: plugins/autoclean] Error 1

This was introduced in 9ebfdf0.

Fixes: ElementsProject#3597
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Fixed: Multiple definition of chainparams on Fedora (or other really recent gcc)
@rustyrussell rustyrussell added this to the 0.8.2 milestone Apr 8, 2020
@niftynei
Copy link
Collaborator

niftynei commented Apr 8, 2020

ACK d9084f7

@niftynei niftynei merged commit 72327f5 into ElementsProject:master Apr 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

build: link error building on Fedora 32
2 participants