grosjo / fts-xapian

Dovecot FTS plugin based on Xapian
GNU Lesser General Public License v2.1
91 stars 19 forks source link

Compilation fails with dovecot 2.3.18 #116

Closed smtalk closed 2 years ago

smtalk commented 2 years ago

We've got a report that module compilation fails with dovecot 2.3.18:

make[1]: Entering directory `/usr/local/directadmin/custombuild/fts-xapian-1.5.2'
Making all in src
make[2]: Entering directory `/usr/local/directadmin/custombuild/fts-xapian-1.5.2/src'
/bin/sh ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..  -O2 -I/usr/include/dovecot      -DFTS_MAIL_USER_INIT_THREE_ARGS=1 -I/usr/local/icu/include    -std=gnu++11 -O2 -O2 -I/usr/include/dovecot      -DFTS_MAIL_USER_INIT_THREE_ARGS=1 -I/usr/local/icu/include   -L/usr/local/lib -lxapian -L/usr/local/icu/lib -licuio -licui18n -licuuc -licudata   -Wl,-rpath=/usr/local/icu/lib   -g -O2 -MT fts-backend-xapian.lo -MD -MP -MF .deps/fts-backend-xapian.Tpo -c -o fts-backend-xapian.lo fts-backend-xapian.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -O2 -I/usr/include/dovecot -DFTS_MAIL_USER_INIT_THREE_ARGS=1 -I/usr/local/icu/include -std=gnu++11 -O2 -O2 -I/usr/include/dovecot -DFTS_MAIL_USER_INIT_THREE_ARGS=1 -I/usr/local/icu/include -L/usr/local/lib -lxapian -L/usr/local/icu/lib -licuio -licui18n -licuuc -licudata -Wl,-rpath=/usr/local/icu/lib -g -O2 -MT fts-backend-xapian.lo -MD -MP -MF .deps/fts-backend-xapian.Tpo -c fts-backend-xapian.cpp  -fPIC -DPIC -o .libs/fts-backend-xapian.o
fts-backend-xapian.cpp:710:1: sorry, unimplemented: non-trivial designated initializers not supported
 };
 ^
grosjo commented 2 years ago

@smtalk are you using latest version or git ? I can not repeat the error with 2.3.18

smtalk commented 2 years ago

It's been reported with 1.5.2 and CentOS7. I was able to reproduce it there too. Latest git build is affected as well.

# gcc --version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
grosjo commented 2 years ago

Kindly test with latest git

smtalk commented 2 years ago

It works fine with latest git!