Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 889698 - net-analyzer/flowgrind-0.8.2 fails to compile with -fno-common
Summary: net-analyzer/flowgrind-0.8.2 fails to compile with -fno-common
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: -fno-common
  Show dependency tree
 
Reported: 2023-01-04 14:30 UTC by Agostino Sarubbo
Modified: 2023-04-19 06:26 UTC (History)
0 users

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


Attachments
build.log (build.log,169.70 KB, text/plain)
2023-01-04 14:30 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2023-01-04 14:30:22 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: net-analyzer/flowgrind-0.8.2 fails to compile with -fno-common.
Discovered on: amd64 (internal ref: dash_tinderbox)

NOTE:
(DASH-SYSTEM) in the summary means that the bug was found on a machine that runs /bin/sh as dash but this bug MAY or MAY NOT BE related to dash.
To reproduce this issue you may want to set CFLAGS="${CFLAGS} -fno-common" or compile it with gcc-10 that enables -fno-common by default.
Comment 1 Agostino Sarubbo gentoo-dev 2023-01-04 14:30:24 UTC
Created attachment 847196 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-01-04 14:30:26 UTC
Error(s) that match a know pattern:


/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: src/flowgrindd-debug.o:(.bss+0x0): multiple definition of `debug_level'; src/flowgrindd-daemon.o:(.bss+0x248): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: src/flowgrindd-destination.o:(.bss+0x0): multiple definition of `debug_level'; src/flowgrindd-daemon.o:(.bss+0x248): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: src/flowgrindd-fg_math.o:(.bss+0x0): multiple definition of `debug_level'; src/flowgrindd-daemon.o:(.bss+0x248): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: src/flowgrindd-fg_rpc_server.o:(.bss+0x0): multiple definition of `debug_level'; src/flowgrindd-daemon.o:(.bss+0x248): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: src/flowgrindd-fg_socket.o:(.bss+0x0): multiple definition of `debug_level'; src/flowgrindd-daemon.o:(.bss+0x248): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: src/flowgrindd-flowgrindd.o:(.bss+0x0): multiple definition of `debug_level'; src/flowgrindd-daemon.o:(.bss+0x248): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: src/flowgrindd-source.o:(.bss+0x0): multiple definition of `debug_level'; src/flowgrindd-daemon.o:(.bss+0x248): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: src/flowgrindd-trafgen.o:(.bss+0x0): multiple definition of `debug_level'; src/flowgrindd-daemon.o:(.bss+0x248): first defined here
collect2: error: ld returned 1 exit status
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-19 06:25:36 UTC
It's linking against debug.o repeatedly.
Comment 4 Larry the Git Cow gentoo-dev 2023-04-19 06:26:36 UTC
The bug has been closed via the following commit(s):

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

commit 37f98117374c2cfe356e9045965f69162b7f7cc2
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-04-19 06:25:45 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-04-19 06:26:23 +0000

    net-analyzer/flowgrind: drop broken USE=debug
    
    Closes: https://bugs.gentoo.org/889698
    Signed-off-by: Sam James <sam@gentoo.org>

 net-analyzer/flowgrind/flowgrind-0.8.2.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)