Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 779016 - app-admin/webalizer-2.23.08[xtended] fails with multiple definition of `resp_counter'
Summary: app-admin/webalizer-2.23.08[xtended] fails with multiple definition of `resp_...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Anthony Basile
Depends on:
Blocks: -fno-common
  Show dependency tree
Reported: 2021-03-29 01:33 UTC by ascendant512+gentoo
Modified: 2021-09-20 11:16 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---

build.log without CFLAGS=-fcommon (build.log,283.05 KB, text/x-log)
2021-03-29 01:33 UTC, ascendant512+gentoo
Additional GCC 10 fix (webalizer-fix-gcc10.patch,2.63 KB, patch)
2021-09-20 11:16 UTC, Vladislav Dudar
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ascendant512+gentoo 2021-03-29 01:33:06 UTC
Related to gcc 10 -fno-common

Reproducible: Always

Steps to Reproduce:
1. USE=xtended emerge -1 webalizer
Actual Results:  
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: hashtab.o:(.bss+0x40000): multiple definition of `resp_counter'; webalizer.o:(.bss+0x92b8): first defined here


Expected Results:  
>>> Installing (1 of 1) app-admin/webalizer-2.23.08::gentoo

#webalizer GCC 10
app-admin/webalizer gcc-10-fcommon.env

CFLAGS="${CFLAGS} -fcommon"
Comment 1 ascendant512+gentoo 2021-03-29 01:33:44 UTC
Created attachment 695736 [details]
build.log without CFLAGS=-fcommon
Comment 2 Ionen Wolkens gentoo-dev 2021-03-29 01:54:32 UTC
Seems previous fix was incomplete.
Comment 3 Andrew A. Sabitov 2021-03-29 14:15:34 UTC
Workaround works for me. Thanks a lot!
Comment 4 Patrice BOUVARD 2021-07-27 08:00:07 UTC
Workaround works for me as well.
Comment 5 Vladislav Dudar 2021-09-20 11:16:33 UTC
Created attachment 740286 [details, diff]
Additional GCC 10 fix

Fixed it at the source level. Mod it as you want, I'm not good at C.