/var/tmp/portage/net-mail/dovecot-2.3.14/work/dovecot-2.3.14/src/lib-index/mail-index-util.c:9: multiple definition of `mail_index_uint32_to_offset'; .libs/libindex.a(mail-index-util.o):/var/tmp/portage/net-mail/dovecot-2.3.14/work/dovecot-2.3.14/src/lib-index/mail-index-util.c:9: first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/mail-index-util.o: in function `mail_index_offset_to_uint32': /var/tmp/portage/net-mail/dovecot-2.3.14/work/dovecot-2.3.14/src/lib-index/mail-index-util.c:23: multiple definition of `mail_index_offset_to_uint32'; .libs/libindex.a(mail-index-util.o):/var/tmp/portage/net-mail/dovecot-2.3.14/work/dovecot-2.3.14/src/lib-index/mail-index-util.c:23: first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/mail-index-util.o: in function `mail_index_pack_num': ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_desktop_gnome_systemd-20210408-231233 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-10.3.0 * clang version 11.1.0 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/11/bin /usr/lib/llvm/11 11.1.0 Python 3.8.9 Available Rust versions: [1] rust-1.51.0 * The following VMs are available for generation-2: *) AdoptOpenJDK 8.282_p08 [openjdk-bin-8] Available Java Virtual Machines: [1] openjdk-bin-8 system-vm The Glorious Glasgow Haskell Compilation System, version 8.10.4 timestamp(s) of HEAD at this tinderbox image: /var/db/repos/gentoo Tue Apr 13 00:35:11 UTC 2021 emerge -qpvO net-mail/dovecot [ebuild N ] net-mail/dovecot-2.3.14 USE="bzip2 ipv6 lz4 mysql pam tcpd zlib -argon2 -caps -doc -kerberos -ldap (-libressl) -lua -lucene -lzma -managesieve -postgres -rpc (-selinux) -sieve -solr -sqlite -static-libs -suid -textcat -unwind -zstd" LUA_SINGLE_TARGET="lua5-1 -lua5-2 -lua5-3"
Created attachment 699588 [details] emerge-info.txt
Created attachment 699591 [details] emerge-history.txt
Created attachment 699594 [details] environment
Created attachment 699597 [details] etc.portage.tar.bz2
Created attachment 699600 [details] logs.tar.bz2
Created attachment 699603 [details] net-mail:dovecot-2.3.14:20210413-021725.log.bz2
Created attachment 699606 [details] temp.tar.bz2
mail-index-util.c:97: multiple definition of `mail_index_seq_array_alloc'; .libs/libindex.a(mail-index-util.o):/var/tmp/portage/net-mail/dovecot-2.3.14/work/dovecot-2.3.14/src/lib-index/mail-index-util.c:97: first defined here fails even with -fcommon, this is the slibtool static archive issue
Upstream PR: https://github.com/dovecot/core/pull/183 This is what happens when a build explicitly links with libtool archives (.la) and the libtool objects (.lo) that are already inside of the .la files. GNU libtool does some magic to silently hide the issue while slibtool does as its told...
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f99f8ddfc8bf06b6b3cc4c3e590e8b70482b8111 commit f99f8ddfc8bf06b6b3cc4c3e590e8b70482b8111 Author: orbea <orbea@riseup.net> AuthorDate: 2022-08-22 15:41:21 +0000 Commit: Eray Aslan <eras@gentoo.org> CommitDate: 2022-08-22 20:20:37 +0000 net-mail/dovecot: Fix linking with slibtool Closes: https://bugs.gentoo.org/782631 Upstream-Commit: https://github.com/dovecot/core/commit/d5f5cd32bafc18a28a7edbe1dbe559f8abe55323 Signed-off-by: orbea <orbea@riseup.net> Signed-off-by: Eray Aslan <eras@gentoo.org> net-mail/dovecot/dovecot-2.3.19.1-r2.ebuild | 304 +++++++++++++++++++++ .../dovecot/files/dovecot-2.3.19.1-slibtool.patch | 65 +++++ 2 files changed, 369 insertions(+)