Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 687864 - net-mail/cyrus-imapd-3.0.10-r1[xapian]: /usr/include/unicode/ucnv.h:585:1: error: conflicting declaration of C function ‘void icu::swap(icu::LocalUConverterPointer&, icu::LocalUConverterPointer&)’
Summary: net-mail/cyrus-imapd-3.0.10-r1[xapian]: /usr/include/unicode/ucnv.h:585:1: er...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2019-06-11 15:03 UTC by Thomas Beutin
Modified: 2024-02-06 08:29 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,607.66 KB, text/plain)
2019-06-11 15:04 UTC, Thomas Beutin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Beutin 2019-06-11 15:03:47 UTC
When trying to install cyrus-imapd with xapian supoort i get the following warning and errors:

[...]
configure: Your Xapian does not support the Cyrus extensions for Xapian. Consider installing cyruslibs Xapian
[...]
In file included from /usr/include/unicode/localpointer.h:45,
                 from /usr/include/unicode/uenum.h:23,
                 from /usr/include/unicode/ucnv.h:53,
                 from ./lib/charset.h:61,
                 from imap/xapian_wrap.cpp:17:
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include/g++-v8/memory:135:1: error: template with C linkage
 template <typename _Tp>
 ^~~~~~~~
imap/xapian_wrap.cpp:11:1: note: ‘extern "C"’ linkage started here
 extern "C" {
 ^~~~~~~~~~
In file included from /usr/include/unicode/uenum.h:23,
                 from /usr/include/unicode/ucnv.h:53,
                 from ./lib/charset.h:61,
                 from imap/xapian_wrap.cpp:17:
/usr/include/unicode/localpointer.h:67:1: error: template with C linkage
 template<typename T>
 ^~~~~~~~
imap/xapian_wrap.cpp:11:1: note: ‘extern "C"’ linkage started here
 extern "C" {
 ^~~~~~~~~~
In file included from /usr/include/unicode/uenum.h:23,
                 from /usr/include/unicode/ucnv.h:53,
                 from ./lib/charset.h:61,
                 from imap/xapian_wrap.cpp:17:
/usr/include/unicode/localpointer.h:190:1: error: template with C linkage
 template<typename T>
 ^~~~~~~~
imap/xapian_wrap.cpp:11:1: note: ‘extern "C"’ linkage started here
 extern "C" {
 ^~~~~~~~~~
In file included from /usr/include/unicode/uenum.h:23,
                 from /usr/include/unicode/ucnv.h:53,
                 from ./lib/charset.h:61,
                 from imap/xapian_wrap.cpp:17:
/usr/include/unicode/localpointer.h:371:1: error: template with C linkage
 template<typename T>
 ^~~~~~~~
imap/xapian_wrap.cpp:11:1: note: ‘extern "C"’ linkage started here
 extern "C" {
 ^~~~~~~~~~
In file included from /usr/include/unicode/uenum.h:23,
                 from /usr/include/unicode/ucnv.h:53,
                 from ./lib/charset.h:61,
                 from imap/xapian_wrap.cpp:17:
/usr/include/unicode/ucnv.h:585:1: error: conflicting declaration of C function ‘void icu::swap(icu::LocalUConverterPointer&, icu::LocalUConverterPointer&)’
 U_DEFINE_LOCAL_OPEN_POINTER(LocalUConverterPointer, UConverter, ucnv_close);
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/unicode/uenum.h:68:1: note: previous declaration ‘void icu::swap(icu::LocalUEnumerationPointer&, icu::LocalUEnumerationPointer&)’
 U_DEFINE_LOCAL_OPEN_POINTER(LocalUEnumerationPointer, UEnumeration, uenum_close);
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:6124: imap/libcyrus_imap_la-xapian_wrap.lo] Error 1
make[2]: Leaving directory '/var/tmp/portage/net-mail/cyrus-imapd-3.0.10-r1/work/cyrus-imapd-3.0.10'
make[1]: *** [Makefile:6458: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/net-mail/cyrus-imapd-3.0.10-r1/work/cyrus-imapd-3.0.10'
make: *** [Makefile:2973: all] Error 2
Comment 1 Thomas Beutin 2019-06-11 15:04:45 UTC
Created attachment 579536 [details]
build.log
Comment 2 Ruediger Hahn 2019-06-16 20:53:48 UTC
I am having the same problem. For the moment as a workaround I masked the ICU lib dev-libs/icu-64.2

This results in downgrading to dev-libs/icu-63.1-r1 and a successful compilation of cyrus-imapd.
Comment 3 Larry the Git Cow gentoo-dev 2021-05-06 23:26:40 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9724a2bd22bcf58dbd83e2f1580d4507ad9fa6bc

commit 9724a2bd22bcf58dbd83e2f1580d4507ad9fa6bc
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-05-06 23:14:00 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-05-06 23:26:18 +0000

    net-mail/cyrus-imapd: add 3.4.0 (masked)
    
    Changes:
    * lmdb support dropped upstream
    * sieve is, for now, unconditionally built due to upstream changes
    
    Masked for testing in a follow-up commit.
    
    Bug: https://bugs.gentoo.org/731266
    Bug: https://bugs.gentoo.org/738280
    Bug: https://bugs.gentoo.org/740188
    Bug: https://bugs.gentoo.org/738278
    Bug: https://bugs.gentoo.org/738276
    Bug: https://bugs.gentoo.org/356341
    Bug: https://bugs.gentoo.org/688242
    Bug: https://bugs.gentoo.org/662896
    Bug: https://bugs.gentoo.org/687864
    Signed-off-by: Sam James <sam@gentoo.org>

 net-mail/cyrus-imapd/Manifest                 |   1 +
 net-mail/cyrus-imapd/cyrus-imapd-3.4.0.ebuild | 234 ++++++++++++++++++++++++++
 2 files changed, 235 insertions(+)

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

commit f2b08a02bdc724992071e52b60e356ee9fcd0759
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-05-06 22:44:21 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-05-06 23:26:17 +0000

    net-mail/cyrus-imapd: add 3.0.15
    
    Bug: https://bugs.gentoo.org/738280
    Bug: https://bugs.gentoo.org/740188
    Bug: https://bugs.gentoo.org/738278
    Bug: https://bugs.gentoo.org/738276
    Bug: https://bugs.gentoo.org/356341
    Bug: https://bugs.gentoo.org/688242
    Bug: https://bugs.gentoo.org/721466
    Bug: https://bugs.gentoo.org/662896
    Bug: https://bugs.gentoo.org/687864
    Signed-off-by: Sam James <sam@gentoo.org>

 net-mail/cyrus-imapd/Manifest                  |   1 +
 net-mail/cyrus-imapd/cyrus-imapd-3.0.15.ebuild | 229 +++++++++++++++++++++++++
 2 files changed, 230 insertions(+)
Comment 4 J. Roeleveld 2024-02-06 08:29:32 UTC
Portage tree only contains version "3.4.5-r1"
I think this can be closed?