Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 779016

Summary: app-admin/webalizer-2.23.08[xtended] fails with multiple definition of `resp_counter'
Product: Gentoo Linux Reporter: ascendant512+gentoo
Component: Current packagesAssignee: Anthony Basile <blueness>
Status: RESOLVED FIXED    
Severity: normal CC: ionen, seal331gentoo, web-apps
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: AMD64   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=737694
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 705764    
Attachments: build.log without CFLAGS=-fcommon
Additional GCC 10 fix

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
2.
3.
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

Workaround:
/etc/portage/package.env
#webalizer GCC 10
app-admin/webalizer gcc-10-fcommon.env

/etc/portage/env/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.
Comment 6 Larry the Git Cow gentoo-dev 2022-05-23 00:04:33 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eeb61bf8432f2ab193de2f6a9f2a45127ffbbb6f

commit eeb61bf8432f2ab193de2f6a9f2a45127ffbbb6f
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-05-23 00:04:04 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-05-23 00:04:24 +0000

    app-admin/webalizer: add -fcommon
    
    Bug: https://bugs.gentoo.org/737694
    Bug: https://bugs.gentoo.org/779016
    Signed-off-by: Sam James <sam@gentoo.org>

 app-admin/webalizer/webalizer-2.23.08.ebuild | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)