Skip to content

fix build on gcc-10 (-fno-common)#30

Open
trofi wants to merge 1 commit into
ghedo:masterfrom
trofi:fix-gcc-10-build
Open

fix build on gcc-10 (-fno-common)#30
trofi wants to merge 1 commit into
ghedo:masterfrom
trofi:fix-gcc-10-build

Conversation

@trofi
Copy link
Copy Markdown

@trofi trofi commented May 28, 2022

gcc-10 changed the default from -fcommon to fno-common:
https://gcc.gnu.org/PR85678

As a result build fails as:

ld: src/util.c.1.o:/build/pflask/build/../src/printf.h:42: multiple definition of
  `use_syslog'; src/cgroup.c.1.o:/build/pflask/build/../src/printf.h:42: first defined here

gcc-10 changed the default from -fcommon to fno-common:
  https://gcc.gnu.org/PR85678

As a result build fails as:

    ld: src/util.c.1.o:/build/pflask/build/../src/printf.h:42: multiple definition of
      `use_syslog'; src/cgroup.c.1.o:/build/pflask/build/../src/printf.h:42: first defined here
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.

1 participant