Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 706654 - x11-wm/wmfs-99999999 - ld: src/config.o:.../work/wmfs-99999999/src/wmfs.h:447: multiple definition of `W'; src/barwin.o:.../work/wmfs-99999999/src/wmfs.h:447: first defined here
Summary: x11-wm/wmfs-99999999 - ld: src/config.o:.../work/wmfs-99999999/src/wmfs.h:447...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jeroen Roovers
URL:
Whiteboard:
Keywords:
: 722010 (view as bug list)
Depends on:
Blocks: -fno-common
  Show dependency tree
 
Reported: 2020-01-27 17:10 UTC by Jeroen Roovers
Modified: 2020-05-17 13:41 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers gentoo-dev 2020-01-27 17:10:06 UTC
cc -o wmfs src/barwin.o src/config.o src/client.o src/event.o src/ewmh.o src/infobar.o src/layout.o src/launcher.o src/parse_api.o src/parse.o src/screen.o src
/tag.o src/util.o src/status.o src/systray.o src/mouse.o src/log.o src/wmfs.o -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -lX11 -lXinerama -lImlib2 -lXft -lfr
eetype
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/config.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/wmfs.
h:447: multiple definition of `W'; src/barwin.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/wmfs.h:447: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/client.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/wmfs.
h:447: multiple definition of `W'; src/barwin.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/wmfs.h:447: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/event.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/wmfs.h
:447: multiple definition of `W'; src/barwin.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/wmfs.h:447: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/event.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/event.
h:20: multiple definition of `event_handle'; src/client.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/event.h:20: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/ewmh.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/wmfs.h:
447: multiple definition of `W'; src/barwin.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/wmfs.h:447: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/infobar.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/wmfs
.h:447: multiple definition of `W'; src/barwin.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/wmfs.h:447: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/layout.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/wmfs.h:447: multiple definition of `W'; src/barwin.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/wmfs.h:447: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/layout.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/event.h:20: multiple definition of `event_handle'; src/client.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/event.h:20: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/launcher.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/wmfs.h:447: multiple definition of `W'; src/barwin.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/wmfs.h:447: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/launcher.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/event.h:20: multiple definition of `event_handle'; src/client.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/event.h:20: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/parse_api.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/wmfs.h:447: multiple definition of `W'; src/barwin.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/wmfs.h:447: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/parse.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/wmfs.h:447: multiple definition of `W'; src/barwin.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/wmfs.h:447: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/screen.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/wmfs.h:447: multiple definition of `W'; src/barwin.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/wmfs.h:447: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/tag.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/wmfs.h:447: multiple definition of `W'; src/barwin.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/wmfs.h:447: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/util.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/wmfs.h:447: multiple definition of `W'; src/barwin.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/wmfs.h:447: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/status.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/wmfs.h:447: multiple definition of `W'; src/barwin.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/wmfs.h:447: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/systray.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/wmfs.h:447: multiple definition of `W'; src/barwin.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/wmfs.h:447: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/mouse.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/wmfs.h:447: multiple definition of `W'; src/barwin.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/wmfs.h:447: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/log.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/wmfs.h:447: multiple definition of `W'; src/barwin.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/wmfs.h:447: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/wmfs.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/wmfs.h:447: multiple definition of `W'; src/barwin.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/wmfs.h:447: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/wmfs.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/event.h:20: multiple definition of `event_handle'; src/client.o:/home/jer/portage/x11-wm/wmfs-99999999/work/wmfs-99999999/src/event.h:20: first defined here
collect2: error: ld returned 1 exit status
Comment 1 Larry the Git Cow gentoo-dev 2020-01-27 18:40:45 UTC
The bug has been closed via the following commit(s):

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

commit 76fd4de2a8574b255cb8c84fd769a2eabc8b3aca
Author:     Jeroen Roovers <jer@gentoo.org>
AuthorDate: 2020-01-27 18:02:11 +0000
Commit:     Jeroen Roovers <jer@gentoo.org>
CommitDate: 2020-01-27 18:40:41 +0000

    x11-wm/wmfs: Fix CFLAGS=-fno-common
    
    - EAPI=7
    - Convert sed script to patch
    - Fix W and event_handle for CFLAGS=-fno-common
    - Respect CC
    - Apply one lingering upstream patch
    
    Package-Manager: Portage-2.3.85, Repoman-2.3.20
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=706654
    Signed-off-by: Jeroen Roovers <jer@gentoo.org>

 x11-wm/wmfs/files/wmfs-99999999-Debian.patch     | 11 +++
 x11-wm/wmfs/files/wmfs-99999999-fno-common.patch | 92 ++++++++++++++++++++++++
 x11-wm/wmfs/files/wmfs-99999999-strncat.patch    | 20 ++++++
 x11-wm/wmfs/wmfs-99999999.ebuild                 | 19 +++--
 4 files changed, 132 insertions(+), 10 deletions(-)
Comment 2 Jeroen Roovers gentoo-dev 2020-05-17 13:40:22 UTC
*** Bug 722010 has been marked as a duplicate of this bug. ***
Comment 3 Larry the Git Cow gentoo-dev 2020-05-17 13:41:53 UTC
The bug has been referenced in the following commit(s):

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

commit 49b49044d1390ca4f3bdf1558917aa775a12581b
Author:     Jeroen Roovers <jer@gentoo.org>
AuthorDate: 2020-05-17 13:38:49 +0000
Commit:     Jeroen Roovers <jer@gentoo.org>
CommitDate: 2020-05-17 13:41:49 +0000

    x11-wm/wmfs: Respect CFLAGS/LDFLAGS, fix man page
    
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Bug: https://bugs.gentoo.org/706654
    Signed-off-by: Jeroen Roovers <jer@gentoo.org>

 x11-wm/wmfs/wmfs-201003.ebuild | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)