• Bug#1104651: dovecot-fts-flatcurve: FTBFS: fts-flatcurve-plugin.c:39:9:

    From Santiago Vila@21:1/5 to All on Sun May 4 01:40:02 2025
    Package: src:dovecot-fts-flatcurve
    Version: 1.0.3-1
    Severity: serious
    Tags: ftbfs trixie sid

    Dear maintainer:

    During a rebuild of all packages in unstable, your package failed to build:

    --------------------------------------------------------------------------------
    [...]
    libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/inclu [too-long-redacted] o .libs/doveadm-fts-flatcurve.o
    libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/inclu [too-long-redacted] -o .libs/fts-flatcurve-plugin.o
    fts-flatcurve-plugin.c: In function 'fts_flatcurve_mail_user_deinit': fts-flatcurve-plugin.c:39:9: error: implicit declaration of function 'fts_mail_user_deinit'; did you mean 'fts_mail_user_init'? [-Wimplicit-function-declaration]
    39 | fts_mail_user_deinit(user);
    | ^~~~~~~~~~~~~~~~~~~~
    | fts_mail_user_init
    fts-flatcurve-plugin.c: In function 'fts_flatcurve_plugin_init_settings': fts-flatcurve-plugin.c:50:13: error: implicit declaration of function 'mail_user_plugin_getenv'; did you mean 'mail_user_is_plugin_loaded'? [-Wimplicit-function-declaration]
    50 | if (mail_user_plugin_getenv(user, "fts_flatcurve") != NULL)
    | ^~~~~~~~~~~~~~~~~~~~~~~
    | mail_user_is_plugin_loaded
    fts-flatcurve-plugin.c:50:60: warning: comparison between pointer and integer
    50 | if (mail_user_plugin_getenv(user, "fts_flatcurve") != NULL)
    | ^~ fts-flatcurve-plugin.c:54:14: error: assignment to 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    54 | pset = mail_user_plugin_getenv(user, FTS_FLATCURVE_PLUGIN_COMMIT_LIMIT);
    | ^
    fts-flatcurve-plugin.c:67:14: error: assignment to 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    67 | pset = mail_user_plugin_getenv(user,
    | ^
    fts-flatcurve-plugin.c:81:14: error: assignment to 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    81 | pset = mail_user_plugin_getenv(user,
    | ^
    fts-flatcurve-plugin.c:95:14: error: assignment to 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    95 | pset = mail_user_plugin_getenv(user, FTS_FLATCURVE_PLUGIN_ROTATE_SIZE);
    | ^
    fts-flatcurve-plugin.c:108:14: error: assignment to 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    108 | pset = mail_user_plugin_getenv(user, FTS_FLATCURVE_PLUGIN_ROTATE_TIME);
    | ^
    fts-flatcurve-plugin.c:121:33: error: implicit declaration of function 'mail_user_plugin_getenv_bool' [-Wimplicit-function-declaration]
    121 | set->substring_search = mail_user_plugin_getenv_bool(user,
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ fts-flatcurve-plugin.c: In function 'fts_flatcurve_mail_user_created': fts-flatcurve-plugin.c:142:38: error: passing argument 2 of 'fts_mail_user_init' from incompatible pointer type [-Wincompatible-pointer-types]
    142 | if (fts_mail_user_init(user, &error) < 0) {
    | ^~~~~~
    | |
    | const char **
    In file included from fts-flatcurve-plugin.c:6: /usr/include/dovecot/fts-user.h:10:62: note: expected 'struct event *' but argument is of type 'const char **'
    10 | int fts_mail_user_init(struct mail_user *user, struct event *event,
    | ~~~~~~~~~~~~~~^~~~~ fts-flatcurve-plugin.c:142:13: error: too few arguments to function 'fts_mail_user_init'
    142 | if (fts_mail_user_init(user, &error) < 0) {
    | ^~~~~~~~~~~~~~~~~~
    /usr/include/dovecot/fts-user.h:10:5: note: declared here
    10 | int fts_mail_user_init(struct mail_user *user, struct event *event,
    | ^~~~~~~~~~~~~~~~~~
    doveadm-fts-flatcurve.c: In function 'cmd_fts_flatcurve_mailbox_alloc': doveadm-fts-flatcurve.c:288:25: error: assignment to 'void (*)(struct doveadm_mail_cmd_context *)' from incompatible pointer type 'void (*)(struct doveadm_mail_cmd_context *, const char * const*)' [-Wincompatible-pointer-types]
    288 | ctx->ctx.v.init = cmd_fts_flatcurve_mailbox_init;
    | ^
    doveadm-fts-flatcurve.c: In function 'cmd_fts_flatcurve_dump_alloc': doveadm-fts-flatcurve.c:326:13: error: 'struct doveadm_mail_cmd_context' has no member named 'getopt_args'
    326 | _ctx->getopt_args = "h";
    | ^~
    doveadm-fts-flatcurve.c:327:16: error: 'struct doveadm_mail_cmd_vfuncs' has no member named 'parse_arg'
    327 | _ctx->v.parse_arg = cmd_fts_flatcurve_dump_parse_arg;
    | ^
    make[3]: *** [Makefile:629: fts-flatcurve-plugin.lo] Error 1
    make[3]: *** Waiting for unfinished jobs....
    make[3]: *** [Makefile:629: doveadm-fts-flatcurve.lo] Error 1
    make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
    make[2]: *** [Makefile:547: all-recursive] Error 1
    make[2]: Leaving directory '/<<PKGBUILDDIR>>'
    make[1]: *** [Makefile:448: all] Error 2
    make[1]: Leaving directory '/<<PKGBUILDDIR>>'
    dh_auto_build: error: make -j2 returned exit code 2
    make: *** [debian/rules:13: binary] Error 25
    dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 --------------------------------------------------------------------------------

    The above is just how the build ends and not necessarily the most relevant part.
    If required, the full build log is available here:

    https://people.debian.org/~sanvila/build-logs/202505/

    About the archive rebuild: The build was made on virtual machines from AWS, using sbuild and a reduced chroot with only build-essential packages.

    If you could not reproduce the bug please contact me privately, as I
    am willing to provide ssh access to a virtual machine where the bug is
    fully reproducible.

    If this is really a bug in one of the build-depends, please use
    reassign and add an affects on src:dovecot-fts-flatcurve, so that this is still visible in the BTS web page for this package.

    Thanks.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Tue May 6 10:40:02 2025
    This is a multi-part message in MIME format...

    Your message dated Tue, 06 May 2025 08:36:23 +0000
    with message-id <E1uCDmp-007nSu-2Q@fasolo.debian.org>
    and subject line Bug#1104747: Removed package(s) from unstable
    has caused the Debian Bug report #1104651,
    regarding dovecot-fts-flatcurve: FTBFS: fts-flatcurve-plugin.c:39:9: error: implicit declaration of function 'fts_mail_user_deinit'
    to be marked as done.

    This means that you claim that the problem has been dealt with.
    If this is not the case it is now your responsibility to reopen the
    Bug report if necessary, and/or fix the problem forthwith.

    (NB: If you are a system administrator and have no idea what this
    message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org
    immediately.)


    --
    1104651: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1104651
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    Received: (at submit) by bugs.debian.org; 3 May 2025 23:29:19 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-121.6 required=4.0 tests=ALL_TRUSTED,BAYES_00,
    BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,
    DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,FROMDEVELOPER,HAS_PACKAGE,
    SPF_HELO_PASS,SPF_NONE,USER_IN_DKIM_WELCOMELIST,USER_IN_DKIM_WHITELIST,
    X_DEBBUGS_CC autolearn=ham autolearn_force=no
    version=3.4.6-bugs.debian.org_2005_01_02
    X-Spam-Bayes: score:0.0000 Tokens: new, 41; hammy, 150; neutral, 133; spammy,
    0. spammytokens: hammytokens:0.000-+--trixie, 0.000-+--pkgbuilddir,
    0.000-+--PKGBUILDDIR, 0.000-+--H*F:U*sanvila, 0.000-+--H*rp:U*sanvila Return-path: <sanvila@debian.org>
    Received: from mailly.debian.org ([2001:41b8:202:deb:6564:a6