Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 694290 - =dev-libs/libwacom-1.0 : ld: error: .libs/libwacom_la-libwacom-deprecated.o: multiple definition of 'libwacom_match_new'
Summary: =dev-libs/libwacom-1.0 : ld: error: .libs/libwacom_la-libwacom-deprecated.o: ...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
Keywords: PullRequest
: 698658 (view as bug list)
Depends on:
Blocks: systemwide-gold
  Show dependency tree
Reported: 2019-09-13 13:44 UTC by Bernd
Modified: 2020-02-02 02:41 UTC (History)
3 users (show)

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

libwacom-1.0:20190913-133457.log (libwacom-1.0:20190913-133457.log,15.38 KB, text/plain)
2019-09-13 13:44 UTC, Bernd
emerge-info-libwacom-1.0.txt (emerge-info-libwacom-1.0.txt,13.34 KB, text/plain)
2019-09-13 13:45 UTC, Bernd

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd 2019-09-13 13:44:02 UTC
libwacom-1.0 fails to link with this error:

/bin/sh ../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc -DDATADIR="\"/usr/share/libwacom\"" -DG_LOG_DOMAIN="\"libwacom\"" -I../include -fvisibility=hidden -I/usr/include/gudev-1.0 -I/usr/lib64/libffi-3.2.1/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -O2 -pipe -march=bdver2 -fstack-protector-strong -fstack-check -version-info 8:1:6 -Wl,--version-script="./libwacom.sym"  -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -o -rpath /usr/lib64 libwacom_la-libwacom.lo libwacom_la-libwacom-error.lo libwacom_la-libwacom-database.lo libwacom_la-libwacom-deprecated.lo -lgudev-1.0 -lgobject-2.0 -lglib-2.0 -ldl 
libtool: link: x86_64-pc-linux-gnu-gcc -shared  -fPIC -DPIC  .libs/libwacom_la-libwacom.o .libs/libwacom_la-libwacom-error.o .libs/libwacom_la-libwacom-database.o .libs/libwacom_la-libwacom-deprecated.o   -Wl,--as-needed -lgudev-1.0 -lgobject-2.0 -lglib-2.0 -ldl  -O2 -march=bdver2 -fstack-protector-strong -Wl,--version-script=./libwacom.sym -Wl,-O1 -Wl,--defsym=__gentoo_check_ldflags__=0   -Wl,-soname -Wl, -o .libs/
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: error: .libs/libwacom_la-libwacom-deprecated.o: multiple definition of 'libwacom_match_new'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/libwacom_la-libwacom.o: previous definition here
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: error: .libs/libwacom_la-libwacom-deprecated.o: multiple definition of 'libwacom_error_set'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/libwacom_la-libwacom-error.o: previous definition here
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:440:] Error 1
make[2]: Leaving directory '/var/tmp/portage/dev-libs/libwacom-1.0/work/libwacom-1.0/libwacom'
make[1]: *** [Makefile:462: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/dev-libs/libwacom-1.0/work/libwacom-1.0'
make: *** [Makefile:371: all] Error 2
 * ERROR: dev-libs/libwacom-1.0::gentoo failed (compile phase):
 *   emake failed

Reproducible: Always

Steps to Reproduce:
1. emerge =libwacom-1.0
Comment 1 Bernd 2019-09-13 13:44:47 UTC
Created attachment 589764 [details]

complete build log
Comment 2 Bernd 2019-09-13 13:45:59 UTC
Created attachment 589766 [details]

output of emerge --info =libwacom-1.0
Comment 3 Paul Preney 2019-10-11 16:10:15 UTC
FYI: I get the same multiple definition error with libwacom-1.0. (For now, I have masked it.)
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2019-10-27 17:00:05 UTC
*** Bug 698658 has been marked as a duplicate of this bug. ***
Comment 5 Larry the Git Cow gentoo-dev 2020-02-02 02:41:14 UTC
The bug has been closed via the following commit(s):

commit 7d75ea5a2c39d0cc8b2779f6112c7b56c8eeab32
Author:     David Heidelberg <>
AuthorDate: 2019-10-27 15:42:04 +0000
Commit:     Matt Turner <>
CommitDate: 2020-02-02 02:35:52 +0000

    dev-libs/libwacom: 1.0, avoid using GOLD linker
    Upstream bug:
    Signed-off-by: David Heidelberg <>
    Signed-off-by: Matt Turner <>

 dev-libs/libwacom/libwacom-1.0.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)