I think your Dovecot install must be somehow broken, I only have enum setting_type {
in one file.
$ grep "enum setting_type {" /dovecot/include/dovecot/* /dovecot/include/dovecot/settings-parser.h:enum setting_type {
Aki
On 15/02/2025 17:25 EET Joan Moreau via dovecot <dovecot@dovecot.org> wrote:
Now, I get
In file included from fts-xapian-plugin.h:22, from fts-xapian-plugin.c:3: /usr/include/dovecot/settings.h:14:6: error: redeclaration of 'enum setting_type' 14 | enum setting_type { | ^~~~~~~~~~~~ In file included from fts-xapian-plugin.h:21: /usr/include/dovecot/settings-parser.h:20:6: note: originally defined here 20 | enum setting_type {
There are actually 3 similar files
settings.h
fts-settings.h
settings-parser.h
Which one is the right one ?
Thank you
On 2025-02-15 23:22, Joan Moreau wrote:
ouch...
Why this complexity to change all the org and now, to redefine the standard C/C++ formats ?
On 2025-02-15 23:21, Aki Tuomi wrote: Yes, well, UINT means unsigned int.
Aki
On 15/02/2025 17:10 EET Joan Moreau via dovecot <dovecot@dovecot.org> wrote:
Not sure I understand
verbose is an int
On 2025-02-15 23:05, Aki Tuomi wrote:
/home/cmouse/dovecot/include/dovecot/macros.h:173:21: error: size of unnamed array is negative 173 | (sizeof(char[1 - 2 * ((condition) ? 1 : 0)]) > 0 ? FALSE : FALSE) | ^ /home/cmouse/dovecot/include/dovecot/macros.h:182:9: note: in expansion of macro 'COMPILE_ERROR_IF_TRUE' 182 | COMPILE_ERROR_IF_TRUE(
| ^~~~~~~~~~~~~~~~~~~~~ /home/cmouse/dovecot/include/dovecot/settings-parser.h:80:34: note: in expansion of macro 'COMPILE_ERROR_IF_TYPES_NOT_COMPATIBLE' 80 | { .type = (_enum_type) + COMPILE_ERROR_IF_TYPES_NOT_COMPATIBLE(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/cmouse/dovecot/include/dovecot/settings-parser.h:90:9: note: in expansion of macro 'SETTING_DEFINE_STRUCT_TYPE' 90 | SETTING_DEFINE_STRUCT_TYPE(SET_UINT, 0, unsigned int, key, name, struct_name) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ fts-xapian-plugin.c:31:9: note: in expansion of macro 'SETTING_DEFINE_STRUCT_UINT' 31 | SETTING_DEFINE_STRUCT_##type("fts_xapian_"#name, name, struct fts_xapian_settings) | ^~~~~~~~~~~~~~~~~~~~~~ fts-xapian-plugin.c:37:9: note: in expansion of macro 'DEF' 37 | DEF(UINT, verbose),is the root cause, verbose is not compatible with SET_UINT.
Aki
On 15/02/2025 16:55 EET Joan Moreau via dovecot <dovecot@dovecot.org> wrote:
Yes
https://github.com/grosjo/fts-xapian/commit/e183253be394cad07f17885600d9a652...
On 2025-02-15 22:47, Aki Tuomi wrote:
Do you have the code somewhere pushed?
Aki _______________________________________________ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org