-
Notifications
You must be signed in to change notification settings - Fork 23
Closed
Description
Getting some errors when attempting to build 1.9 against dovecot 2.4.0...
Making all in src
make[2]: Entering directory '/builddir/build/BUILD/fts-xapian-1.9/src'
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -O2 -I/usr/include/dovecot -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu99 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -O2 -c -o fts-xapian-plugin.lo fts-xapian-plugin.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -O2 -I/usr/include/dovecot -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu99 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -O2 -c fts-xapian-plugin.c -fPIC -DPIC -o .libs/fts-xapian-plugin.o
make[2]: Leaving directory '/builddir/build/BUILD/fts-xapian-1.9/src'
fts-xapian-plugin.c: In function 'fts_xapian_mail_user_deinit':
fts-xapian-plugin.c:18:9: error: implicit declaration of function 'fts_mail_user_deinit'; did you mean 'fts_mail_user_init'? [-Wimplicit-function-declaration]
18 | fts_mail_user_deinit(user);
| ^~~~~~~~~~~~~~~~~~~~
| fts_mail_user_init
fts-xapian-plugin.c: In function 'fts_xapian_mail_user_created':
fts-xapian-plugin.c:36:28: error: implicit declaration of function 'mail_user_plugin_getenv'; did you mean 'mail_user_is_plugin_loaded'? [-Wimplicit-function-declaration]
36 | const char * env = mail_user_plugin_getenv(user, "fts_xapian");
| ^~~~~~~~~~~~~~~~~~~~~~~
| mail_user_is_plugin_loaded
fts-xapian-plugin.c:36:28: error: initialization of 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
fts-xapian-plugin.c:95:38: error: passing argument 2 of 'fts_mail_user_init' from incompatible pointer type [-Wincompatible-pointer-types]
95 | if (fts_mail_user_init(user, &error) < 0)
| ^~~~~~
| |
| const char **
In file included from fts-xapian-plugin.h:11,
from fts-xapian-plugin.c:4:
/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-xapian-plugin.c:95:13: error: too few arguments to function 'fts_mail_user_init'
95 | 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,
| ^~~~~~~~~~~~~~~~~~
Metadata
Metadata
Assignees
Labels
No labels