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: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
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: ---


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

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 libwacom.so.2.6.1 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 libwacom.la -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,libwacom.so.2 -o .libs/libwacom.so.2.6.1
/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: libwacom.la] 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
2.
3.
Comment 1 Bernd 2019-09-13 13:44:47 UTC
Created attachment 589764 [details]
libwacom-1.0:20190913-133457.log

complete build log
Comment 2 Bernd 2019-09-13 13:45:59 UTC
Created attachment 589766 [details]
emerge-info-libwacom-1.0.txt

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):

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

commit 7d75ea5a2c39d0cc8b2779f6112c7b56c8eeab32
Author:     David Heidelberg <david@ixit.cz>
AuthorDate: 2019-10-27 15:42:04 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2020-02-02 02:35:52 +0000

    dev-libs/libwacom: 1.0, avoid using GOLD linker
    
    Upstream bug: https://github.com/linuxwacom/libwacom/issues/170
    Closes: https://bugs.gentoo.org/694290
    
    Signed-off-by: David Heidelberg <david@ixit.cz>
    Closes: https://github.com/gentoo/gentoo/pull/13468
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

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