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_...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: -fno-common
  Show dependency tree
 
Reported: 2021-03-29 01:33 UTC by ascendant512+gentoo
Modified: 2022-05-23 00:12 UTC (History)
3 users (show)

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


Attachments
build.log without CFLAGS=-fcommon (build.log,283.05 KB, text/x-log)
2021-03-29 01:33 UTC, ascendant512+gentoo
Details
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
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(-)