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

Fix for GCC 10 - avoid multiple definitions of variables (util.h) #128

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sourcejedi
Copy link

Fixes #119

/usr/bin/ld: src/util.o:(.data+0x0): multiple definition of VERSION'; /tmp/ccSwNFWH.o:(.bss+0x28): first defined here /usr/bin/ld: src/util.o:(.bss+0x0): multiple definition of progname';
/tmp/ccSwNFWH.o:(.bss+0x20): first defined here
collect2: error: ld returned 1 exit status

Fixes danielgtaylor#119

> /usr/bin/ld: src/util.o:(.data+0x0): multiple definition of `VERSION';
>  /tmp/ccSwNFWH.o:(.bss+0x28): first defined here
> /usr/bin/ld: src/util.o:(.bss+0x0): multiple definition of `progname';
>  /tmp/ccSwNFWH.o:(.bss+0x20): first defined here
> collect2: error: ld returned 1 exit status
@gdarko
Copy link

gdarko commented Dec 4, 2022

I tested this and can confirm this works on the newer distros that use GCC 10 or above.

@danielgtaylor - hopefully this can be merged

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.

Update to GCC 10 changes
2 participants