Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 782631 - net-mail/dovecot-2.3.14 - /.../mail-index-util.c:9: multiple definition of mail_index_uint32_to_offset; .libs/.../mail-index-util.
Summary: net-mail/dovecot-2.3.14 - /.../mail-index-util.c:9: multiple definition of ma...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Eray Aslan
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: slibtool
  Show dependency tree
 
Reported: 2021-04-13 08:07 UTC by Toralf Förster
Modified: 2022-08-22 20:20 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.67 KB, text/plain)
2021-04-13 08:07 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,114.44 KB, text/plain)
2021-04-13 08:07 UTC, Toralf Förster
Details
environment (environment,100.13 KB, text/plain)
2021-04-13 08:07 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,12.81 KB, application/x-bzip)
2021-04-13 08:07 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,25.30 KB, application/x-bzip)
2021-04-13 08:07 UTC, Toralf Förster
Details
net-mail:dovecot-2.3.14:20210413-021725.log.bz2 (net-mail:dovecot-2.3.14:20210413-021725.log.bz2,28.26 KB, application/x-bzip)
2021-04-13 08:07 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,53.64 KB, application/x-bzip)
2021-04-13 08:07 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-04-13 08:07:46 UTC
/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"
Comment 1 Toralf Förster gentoo-dev 2021-04-13 08:07:47 UTC
Created attachment 699588 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-04-13 08:07:48 UTC
Created attachment 699591 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-04-13 08:07:50 UTC
Created attachment 699594 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-04-13 08:07:51 UTC
Created attachment 699597 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-04-13 08:07:52 UTC
Created attachment 699600 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-04-13 08:07:53 UTC
Created attachment 699603 [details]
net-mail:dovecot-2.3.14:20210413-021725.log.bz2
Comment 7 Toralf Förster gentoo-dev 2021-04-13 08:07:55 UTC
Created attachment 699606 [details]
temp.tar.bz2
Comment 8 Ionen Wolkens gentoo-dev 2021-04-16 02:12:11 UTC
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
Comment 9 orbea 2022-05-15 03:47:25 UTC
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...
Comment 10 Larry the Git Cow gentoo-dev 2022-08-22 20:20:58 UTC
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(+)