Created attachment 542540 [details] build.log imap/cyr_sphinxmgr.c: In function ‘indexd_start’: imap/cyr_sphinxmgr.c:752:5: warning: implicit declaration of function ‘assert’; did you mean ‘qsort’? [-Wimplicit-function-declaration] assert(id->state == STOPPED); ^~~~~~ qsort imap/cyr_sphinxmgr.c: In function ‘sphinx_paths_from_mboxname’: imap/cyr_sphinxmgr.c:808:27: error: storage size of ‘parts’ isn’t known struct mboxname_parts parts; ^~~~~ imap/cyr_sphinxmgr.c:813:5: warning: implicit declaration of function ‘mboxname_init_parts’; did you mean ‘mboxname_metapath’? [-Wimplicit-function-declaration] mboxname_init_parts(&parts); ^~~~~~~~~~~~~~~~~~~ mboxname_metapath imap/cyr_sphinxmgr.c:829:9: warning: implicit declaration of function ‘mboxname_to_parts’; did you mean ‘mboxname_lockpath’? [-Wimplicit-function-declaration] r = mboxname_to_parts(mboxname, &parts); ^~~~~~~~~~~~~~~~~ mboxname_lockpath imap/cyr_sphinxmgr.c:876:5: warning: implicit declaration of function ‘mboxname_free_parts’; did you mean ‘mboxname_make_parent’? [-Wimplicit-function-declaration] mboxname_free_parts(&parts); ^~~~~~~~~~~~~~~~~~~ mboxname_make_parent imap/cyr_sphinxmgr.c: In function ‘create_server_socket’: imap/cyr_sphinxmgr.c:1078:45: error: ‘IMAPOPT_SPHINXMGR_SOCKET’ undeclared (first use in this function); did you mean ‘IMAPOPT_SPHINX_SOCKET’? const char *sockname = config_getstring(IMAPOPT_SPHINXMGR_SOCKET); ^~~~~~~~~~~~~~~~~~~~~~~~ IMAPOPT_SPHINX_SOCKET imap/cyr_sphinxmgr.c:1078:45: note: each undeclared identifier is reported only once for each function it appears in imap/cyr_sphinxmgr.c: In function ‘main’: imap/cyr_sphinxmgr.c:1306:36: error: ‘IMAPOPT_SPHINXMGR_TIMEOUT’ undeclared (first use in this function); did you mean ‘IMAPOPT_SYNC_TIMEOUT’? sphinx_timeout = config_getint(IMAPOPT_SPHINXMGR_TIMEOUT); ^~~~~~~~~~~~~~~~~~~~~~~~~ IMAPOPT_SYNC_TIMEOUT imap/cyr_sphinxmgr.c:1307:34: error: ‘IMAPOPT_SPHINXMGR_MAX_CHILDREN’ undeclared (first use in this function); did you mean ‘IMAPOPT_SPHINXMGR_TIMEOUT’? max_children = config_getint(IMAPOPT_SPHINXMGR_MAX_CHILDREN); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ IMAPOPT_SPHINXMGR_TIMEOUT make[2]: *** [Makefile:4557: imap/cyr_sphinxmgr.o] Error 1
Created attachment 542542 [details] emerge --info
Happens on cyrus-imapd-3.0.4, -3.0.5, -3.0.6, -3.0.8.
Is that fixed in 3.0.9?
Created attachment 571580 [details] build.log (3.0.9, ppc) No, still around in 3.0.9. [...] imap/search_sphinx.c: In function ‘generate_query’: imap/search_sphinx.c:432:9: warning: implicit declaration of function ‘assert’ [-Wimplicit-function-declaration] assert(on->children == NULL); ^~~~~~ imap/search_sphinx.c:432:9: note: ‘assert’ is defined in header ‘<assert.h>’; did you forget to ‘#include <assert.h>’? imap/search_sphinx.c:75:1: +#include <assert.h> imap/search_sphinx.c:432:9: assert(on->children == NULL); ^~~~~~ imap/search_sphinx.c: In function ‘sphinx_basedir’: imap/search_sphinx.c:783:27: error: storage size of ‘parts’ isn’t known struct mboxname_parts parts; [...]
Created attachment 571582 [details] emerge --info
Was this reported to upstream? I don't think they will fix it otherwise https://github.com/cyrusimap/cyrus-imapd/issues Thanks
Took it upstream for ppc64, which is also affcted: https://github.com/cyrusimap/cyrus-imapd/issues/2748
Upstream says [+sphinx] is depreciated: "Cyrus's support for the Sphinx search engine is unmaintained (and has already been removed from the master branch), and I don't think any of the current maintainers know much about it... If you're able to reproduce this in a bisect and identify the commit where it stopped building, I might be able to produce a patch that will make it build. But, I have no idea if it even works when it does build... I'd recommend using the Xapian search engine instead, if for no other reason than it's being actively maintained!"
(In reply to ernsteiswuerfel from comment #8) > Upstream says [+sphinx] is depreciated: > I'd recommend using the Xapian search engine instead, if for no other reason > than it's being actively maintained!" cyrusd+xapian has cjk issues[1] - but i don't know if this affects gentoo (the is no cjk USE flag for net-mail/cyrus-imapd) [1] https://cyrusimap.org/imap/developer/install-xapian.html
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6d75bdfc33d380556d045c5610e402b8799065e commit f6d75bdfc33d380556d045c5610e402b8799065e Author: Pacho Ramos <pacho@gentoo.org> AuthorDate: 2019-06-09 11:38:22 +0000 Commit: Pacho Ramos <pacho@gentoo.org> CommitDate: 2019-06-09 11:39:57 +0000 net-mail/cyrus-imapd: sphinx support is unmaintained and broken Closes: https://bugs.gentoo.org/662944 Closes: https://bugs.gentoo.org/426044 Package-Manager: Portage-2.3.67, Repoman-2.3.13 Signed-off-by: Pacho Ramos <pacho@gentoo.org> net-mail/cyrus-imapd/cyrus-imapd-3.0.10-r1.ebuild | 224 ++++++++++++++++++++++ 1 file changed, 224 insertions(+)