grosjo / fts-xapian

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

Failed to compile on CentOS 7 #134

Closed iredmail closed 9 months ago

iredmail commented 1 year ago

Dependent packages:

# autoupdate

# autoreconf -vi
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I m4
configure.ac:21: warning: gl_UNKNOWN_WARNINGS_ARE_ERRORS is m4_require'd but not m4_defun'd
m4/dovecot.m4:125: AC_CC_PIE is expanded from...
m4/dovecot.m4:272: DC_DOVECOT_HARDENING is expanded from...
m4/dovecot.m4:288: DC_DOVECOT is expanded from...
configure.ac:21: the top level
configure.ac:21: warning: gl_UNKNOWN_WARNINGS_ARE_ERRORS is m4_require'd but not m4_defun'd
m4/dovecot.m4:170: AC_CC_F_STACK_PROTECTOR is expanded from...
m4/dovecot.m4:272: DC_DOVECOT_HARDENING is expanded from...
m4/dovecot.m4:288: DC_DOVECOT is expanded from...
configure.ac:21: the top level
configure.ac:21: warning: gl_UNKNOWN_WARNINGS_ARE_ERRORS is m4_require'd but not m4_defun'd
m4/dovecot.m4:15: AC_CC_D_FORTIFY_SOURCE is expanded from...
m4/dovecot.m4:272: DC_DOVECOT_HARDENING is expanded from...
m4/dovecot.m4:288: DC_DOVECOT is expanded from...
configure.ac:21: the top level
configure.ac:21: warning: gl_UNKNOWN_WARNINGS_ARE_ERRORS is m4_require'd but not m4_defun'd
m4/dovecot.m4:162: AC_CC_RETPOLINE is expanded from...
m4/dovecot.m4:272: DC_DOVECOT_HARDENING is expanded from...
m4/dovecot.m4:288: DC_DOVECOT is expanded from...
configure.ac:21: the top level
configure.ac:21: warning: gl_UNKNOWN_WARNINGS_ARE_ERRORS is m4_require'd but not m4_defun'd
m4/dovecot.m4:125: AC_CC_PIE is expanded from...
m4/dovecot.m4:272: DC_DOVECOT_HARDENING is expanded from...
m4/dovecot.m4:288: DC_DOVECOT is expanded from...
configure.ac:21: the top level
configure.ac:21: warning: gl_UNKNOWN_WARNINGS_ARE_ERRORS is m4_require'd but not m4_defun'd
m4/dovecot.m4:170: AC_CC_F_STACK_PROTECTOR is expanded from...
m4/dovecot.m4:272: DC_DOVECOT_HARDENING is expanded from...
m4/dovecot.m4:288: DC_DOVECOT is expanded from...
configure.ac:21: the top level
configure.ac:21: warning: gl_UNKNOWN_WARNINGS_ARE_ERRORS is m4_require'd but not m4_defun'd
m4/dovecot.m4:15: AC_CC_D_FORTIFY_SOURCE is expanded from...
m4/dovecot.m4:272: DC_DOVECOT_HARDENING is expanded from...
m4/dovecot.m4:288: DC_DOVECOT is expanded from...
configure.ac:21: the top level
configure.ac:21: warning: gl_UNKNOWN_WARNINGS_ARE_ERRORS is m4_require'd but not m4_defun'd
m4/dovecot.m4:162: AC_CC_RETPOLINE is expanded from...
m4/dovecot.m4:272: DC_DOVECOT_HARDENING is expanded from...
m4/dovecot.m4:288: DC_DOVECOT is expanded from...
configure.ac:21: the top level
autoreconf: configure.ac: tracing
configure.ac:21: warning: gl_UNKNOWN_WARNINGS_ARE_ERRORS is m4_require'd but not m4_defun'd
m4/dovecot.m4:125: AC_CC_PIE is expanded from...
m4/dovecot.m4:272: DC_DOVECOT_HARDENING is expanded from...
m4/dovecot.m4:288: DC_DOVECOT is expanded from...
configure.ac:21: the top level
configure.ac:21: warning: gl_UNKNOWN_WARNINGS_ARE_ERRORS is m4_require'd but not m4_defun'd
m4/dovecot.m4:170: AC_CC_F_STACK_PROTECTOR is expanded from...
m4/dovecot.m4:272: DC_DOVECOT_HARDENING is expanded from...
m4/dovecot.m4:288: DC_DOVECOT is expanded from...
configure.ac:21: the top level
configure.ac:21: warning: gl_UNKNOWN_WARNINGS_ARE_ERRORS is m4_require'd but not m4_defun'd
m4/dovecot.m4:15: AC_CC_D_FORTIFY_SOURCE is expanded from...
m4/dovecot.m4:272: DC_DOVECOT_HARDENING is expanded from...
m4/dovecot.m4:288: DC_DOVECOT is expanded from...
configure.ac:21: the top level
configure.ac:21: warning: gl_UNKNOWN_WARNINGS_ARE_ERRORS is m4_require'd but not m4_defun'd
m4/dovecot.m4:162: AC_CC_RETPOLINE is expanded from...
m4/dovecot.m4:272: DC_DOVECOT_HARDENING is expanded from...
m4/dovecot.m4:288: DC_DOVECOT is expanded from...
configure.ac:21: the top level
autoreconf: running: libtoolize --copy
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
configure.ac:21: warning: gl_UNKNOWN_WARNINGS_ARE_ERRORS is m4_require'd but not m4_defun'd
m4/dovecot.m4:125: AC_CC_PIE is expanded from...
m4/dovecot.m4:272: DC_DOVECOT_HARDENING is expanded from...
m4/dovecot.m4:288: DC_DOVECOT is expanded from...
configure.ac:21: the top level
configure.ac:21: warning: gl_UNKNOWN_WARNINGS_ARE_ERRORS is m4_require'd but not m4_defun'd
m4/dovecot.m4:170: AC_CC_F_STACK_PROTECTOR is expanded from...
m4/dovecot.m4:272: DC_DOVECOT_HARDENING is expanded from...
m4/dovecot.m4:288: DC_DOVECOT is expanded from...
configure.ac:21: the top level
configure.ac:21: warning: gl_UNKNOWN_WARNINGS_ARE_ERRORS is m4_require'd but not m4_defun'd
m4/dovecot.m4:15: AC_CC_D_FORTIFY_SOURCE is expanded from...
m4/dovecot.m4:272: DC_DOVECOT_HARDENING is expanded from...
m4/dovecot.m4:288: DC_DOVECOT is expanded from...
configure.ac:21: the top level
configure.ac:21: warning: gl_UNKNOWN_WARNINGS_ARE_ERRORS is m4_require'd but not m4_defun'd
m4/dovecot.m4:162: AC_CC_RETPOLINE is expanded from...
m4/dovecot.m4:272: DC_DOVECOT_HARDENING is expanded from...
m4/dovecot.m4:288: DC_DOVECOT is expanded from...
configure.ac:21: the top level
configure.ac:21: warning: gl_UNKNOWN_WARNINGS_ARE_ERRORS is m4_require'd but not m4_defun'd
m4/dovecot.m4:125: AC_CC_PIE is expanded from...
m4/dovecot.m4:272: DC_DOVECOT_HARDENING is expanded from...
m4/dovecot.m4:288: DC_DOVECOT is expanded from...
configure.ac:21: the top level
configure.ac:21: warning: gl_UNKNOWN_WARNINGS_ARE_ERRORS is m4_require'd but not m4_defun'd
m4/dovecot.m4:170: AC_CC_F_STACK_PROTECTOR is expanded from...
m4/dovecot.m4:272: DC_DOVECOT_HARDENING is expanded from...
m4/dovecot.m4:288: DC_DOVECOT is expanded from...
configure.ac:21: the top level
configure.ac:21: warning: gl_UNKNOWN_WARNINGS_ARE_ERRORS is m4_require'd but not m4_defun'd
m4/dovecot.m4:15: AC_CC_D_FORTIFY_SOURCE is expanded from...
m4/dovecot.m4:272: DC_DOVECOT_HARDENING is expanded from...
m4/dovecot.m4:288: DC_DOVECOT is expanded from...
configure.ac:21: the top level
configure.ac:21: warning: gl_UNKNOWN_WARNINGS_ARE_ERRORS is m4_require'd but not m4_defun'd
m4/dovecot.m4:162: AC_CC_RETPOLINE is expanded from...
m4/dovecot.m4:272: DC_DOVECOT_HARDENING is expanded from...
m4/dovecot.m4:288: DC_DOVECOT is expanded from...
configure.ac:21: the top level
autoreconf: running: /usr/bin/autoconf
configure.ac:21: warning: gl_UNKNOWN_WARNINGS_ARE_ERRORS is m4_require'd but not m4_defun'd
m4/dovecot.m4:125: AC_CC_PIE is expanded from...
m4/dovecot.m4:272: DC_DOVECOT_HARDENING is expanded from...
m4/dovecot.m4:288: DC_DOVECOT is expanded from...
configure.ac:21: the top level
configure.ac:21: warning: gl_UNKNOWN_WARNINGS_ARE_ERRORS is m4_require'd but not m4_defun'd
m4/dovecot.m4:170: AC_CC_F_STACK_PROTECTOR is expanded from...
m4/dovecot.m4:272: DC_DOVECOT_HARDENING is expanded from...
m4/dovecot.m4:288: DC_DOVECOT is expanded from...
configure.ac:21: the top level
configure.ac:21: warning: gl_UNKNOWN_WARNINGS_ARE_ERRORS is m4_require'd but not m4_defun'd
m4/dovecot.m4:15: AC_CC_D_FORTIFY_SOURCE is expanded from...
m4/dovecot.m4:272: DC_DOVECOT_HARDENING is expanded from...
m4/dovecot.m4:288: DC_DOVECOT is expanded from...
configure.ac:21: the top level
configure.ac:21: warning: gl_UNKNOWN_WARNINGS_ARE_ERRORS is m4_require'd but not m4_defun'd
m4/dovecot.m4:162: AC_CC_RETPOLINE is expanded from...
m4/dovecot.m4:272: DC_DOVECOT_HARDENING is expanded from...
m4/dovecot.m4:288: DC_DOVECOT is expanded from...
configure.ac:21: the top level
autoreconf: running: /usr/bin/autoheader
configure.ac:21: warning: gl_UNKNOWN_WARNINGS_ARE_ERRORS is m4_require'd but not m4_defun'd
m4/dovecot.m4:125: AC_CC_PIE is expanded from...
m4/dovecot.m4:272: DC_DOVECOT_HARDENING is expanded from...
m4/dovecot.m4:288: DC_DOVECOT is expanded from...
configure.ac:21: the top level
configure.ac:21: warning: gl_UNKNOWN_WARNINGS_ARE_ERRORS is m4_require'd but not m4_defun'd
m4/dovecot.m4:170: AC_CC_F_STACK_PROTECTOR is expanded from...
m4/dovecot.m4:272: DC_DOVECOT_HARDENING is expanded from...
m4/dovecot.m4:288: DC_DOVECOT is expanded from...
configure.ac:21: the top level
configure.ac:21: warning: gl_UNKNOWN_WARNINGS_ARE_ERRORS is m4_require'd but not m4_defun'd
m4/dovecot.m4:15: AC_CC_D_FORTIFY_SOURCE is expanded from...
m4/dovecot.m4:272: DC_DOVECOT_HARDENING is expanded from...
m4/dovecot.m4:288: DC_DOVECOT is expanded from...
configure.ac:21: the top level
configure.ac:21: warning: gl_UNKNOWN_WARNINGS_ARE_ERRORS is m4_require'd but not m4_defun'd
m4/dovecot.m4:162: AC_CC_RETPOLINE is expanded from...
m4/dovecot.m4:272: DC_DOVECOT_HARDENING is expanded from...
m4/dovecot.m4:288: DC_DOVECOT is expanded from...
configure.ac:21: the top level
autoreconf: running: automake --add-missing --copy --no-force
configure.ac:21: warning: gl_UNKNOWN_WARNINGS_ARE_ERRORS is m4_require'd but not m4_defun'd
m4/dovecot.m4:125: AC_CC_PIE is expanded from...
m4/dovecot.m4:272: DC_DOVECOT_HARDENING is expanded from...
m4/dovecot.m4:288: DC_DOVECOT is expanded from...
configure.ac:21: the top level
configure.ac:21: warning: gl_UNKNOWN_WARNINGS_ARE_ERRORS is m4_require'd but not m4_defun'd
m4/dovecot.m4:170: AC_CC_F_STACK_PROTECTOR is expanded from...
m4/dovecot.m4:272: DC_DOVECOT_HARDENING is expanded from...
m4/dovecot.m4:288: DC_DOVECOT is expanded from...
configure.ac:21: the top level
configure.ac:21: warning: gl_UNKNOWN_WARNINGS_ARE_ERRORS is m4_require'd but not m4_defun'd
m4/dovecot.m4:15: AC_CC_D_FORTIFY_SOURCE is expanded from...
m4/dovecot.m4:272: DC_DOVECOT_HARDENING is expanded from...
m4/dovecot.m4:288: DC_DOVECOT is expanded from...
configure.ac:21: the top level
configure.ac:21: warning: gl_UNKNOWN_WARNINGS_ARE_ERRORS is m4_require'd but not m4_defun'd
m4/dovecot.m4:162: AC_CC_RETPOLINE is expanded from...
m4/dovecot.m4:272: DC_DOVECOT_HARDENING is expanded from...
m4/dovecot.m4:288: DC_DOVECOT is expanded from...
configure.ac:21: the top level
configure.ac:17: installing './config.guess'
configure.ac:17: installing './config.sub'
configure.ac:12: installing './install-sh'
configure.ac:12: installing './missing'
src/Makefile.am: installing './depcomp'
autoreconf: Leaving directory `.'

# ./configure --with-dovecot=/usr/lib64/dovecot/
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '0' is supported by ustar format... yes
checking whether GID '0' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
./configure: line 15359: gl_UNKNOWN_WARNINGS_ARE_ERRORS: command not found
./configure: line 15360: gl_UNKNOWN_WARNINGS_ARE_ERRORS: command not found
./configure: line 15361: gl_UNKNOWN_WARNINGS_ARE_ERRORS: command not found
./configure: line 15362: gl_UNKNOWN_WARNINGS_ARE_ERRORS: command not found
checking for "/usr/lib64/dovecot//dovecot-config"... /usr/lib64/dovecot//dovecot-config
checking whether gcc is clang 3.3+... no
checking Whether to enable hardening... yes
checking whether C compiler handles -pie... yes
checking whether C compiler handles -fstack-protector-strong... yes
checking whether C compiler handles -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2... yes
checking for how to force completely read-only GOT table... -Wl,-z -Wl,relro -Wl,-z -Wl,now
checking whether OS supports plugin dependencies... yes
checking for valgrind... no
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for ICU_UC... yes
checking for ICU_I18N... yes
checking for fts_mail_user_init... yes
checking whether fts_mail_user_init has 3 args... no
checking for fts_mail_user_init... yes
checking whether fts_mail_user_init has 3 args... no
checking for SQLITE... yes
checking for xapian-config... xapian-config
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating stamp.h
config.status: creating dummy-config.h
config.status: creating fts-xapian-config.h
config.status: executing depfiles commands
config.status: executing libtool commands

# make
make  all-recursive
make[1]: Entering directory `/root/rpmbuild/SOURCES/fts-xapian-1.5.5'
Making all in src
make[2]: Entering directory `/root/rpmbuild/SOURCES/fts-xapian-1.5.5/src'
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -O2 -I/usr/include/dovecot           -g -O2 -std=gnu99 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2   -O2 -MT fts-xapian-plugin.lo -MD -MP -MF .deps/fts-xapian-plugin.Tpo -c -o fts-xapian-plugin.lo fts-xapian-plugin.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -O2 -I/usr/include/dovecot -g -O2 -std=gnu99 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -O2 -MT fts-xapian-plugin.lo -MD -MP -MF .deps/fts-xapian-plugin.Tpo -c fts-xapian-plugin.c  -fPIC -DPIC -o .libs/fts-xapian-plugin.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -O2 -I/usr/include/dovecot -g -O2 -std=gnu99 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -O2 -MT fts-xapian-plugin.lo -MD -MP -MF .deps/fts-xapian-plugin.Tpo -c fts-xapian-plugin.c -o fts-xapian-plugin.o >/dev/null 2>&1
mv -f .deps/fts-xapian-plugin.Tpo .deps/fts-xapian-plugin.Plo
/bin/sh ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..  -O2 -I/usr/include/dovecot          -std=gnu++11  -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 -std=gnu++11 -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
In file included from fts-backend-xapian.cpp:56:0:
fts-backend-xapian-functions.cpp: In function 'bool fts_backend_xapian_open_readonly(xapian_fts_backend*, Xapian::Database**)':
fts-backend-xapian-functions.cpp:559:61: error: 'DB_NO_SYNC' is not a member of 'Xapian'
   *dbr = new Xapian::Database(backend->db,Xapian::DB_OPEN | Xapian::DB_NO_SYNC);
                                                             ^
fts-backend-xapian-functions.cpp: In function 'bool fts_backend_xapian_check_access(xapian_fts_backend*)':
fts-backend-xapian-functions.cpp:584:87: error: 'DB_RETRY_LOCK' is not a member of 'Xapian'
   backend->dbw = new Xapian::WritableDatabase(backend->db,Xapian::DB_CREATE_OR_OPEN | Xapian::DB_RETRY_LOCK | Xapian::DB_BACKEND_GLASS | Xapian::DB_NO_SYNC);
                                                                                       ^
fts-backend-xapian-functions.cpp:584:111: error: 'DB_BACKEND_GLASS' is not a member of 'Xapian'
   backend->dbw = new Xapian::WritableDatabase(backend->db,Xapian::DB_CREATE_OR_OPEN | Xapian::DB_RETRY_LOCK | Xapian::DB_BACKEND_GLASS | Xapian::DB_NO_SYNC);
                                                                                                               ^
fts-backend-xapian-functions.cpp:584:138: error: 'DB_NO_SYNC' is not a member of 'Xapian'
   backend->dbw = new Xapian::WritableDatabase(backend->db,Xapian::DB_CREATE_OR_OPEN | Xapian::DB_RETRY_LOCK | Xapian::DB_BACKEND_GLASS | Xapian::DB_NO_SYNC);
                                                                                                                                          ^
fts-backend-xapian-functions.cpp: In function 'void fts_backend_xapian_release(xapian_fts_backend*, const char*, long int)':
fts-backend-xapian-functions.cpp:655:110: error: 'DB_RETRY_LOCK' is not a member of 'Xapian'
    Xapian::WritableDatabase * db = new Xapian::WritableDatabase(backend->db,Xapian::DB_CREATE_OR_OVERWRITE | Xapian::DB_RETRY_LOCK | Xapian::DB_BACKEND_GLASS | Xapian::DB_NO_SYNC);
                                                                                                              ^
fts-backend-xapian-functions.cpp:655:134: error: 'DB_BACKEND_GLASS' is not a member of 'Xapian'
    Xapian::WritableDatabase * db = new Xapian::WritableDatabase(backend->db,Xapian::DB_CREATE_OR_OVERWRITE | Xapian::DB_RETRY_LOCK | Xapian::DB_BACKEND_GLASS | Xapian::DB_NO_SYNC);
                                                                                                                                      ^
fts-backend-xapian-functions.cpp:655:161: error: 'DB_NO_SYNC' is not a member of 'Xapian'
    Xapian::WritableDatabase * db = new Xapian::WritableDatabase(backend->db,Xapian::DB_CREATE_OR_OVERWRITE | Xapian::DB_RETRY_LOCK | Xapian::DB_BACKEND_GLASS | Xapian::DB_NO_SYNC);
                                                                                                                                                                 ^
fts-backend-xapian-functions.cpp: In function 'int fts_backend_xapian_set_box(xapian_fts_backend*, mailbox*)':
fts-backend-xapian-functions.cpp:819:110: error: 'DB_RETRY_LOCK' is not a member of 'Xapian'
    Xapian::WritableDatabase * db = new Xapian::WritableDatabase(backend->db,Xapian::DB_CREATE_OR_OVERWRITE | Xapian::DB_RETRY_LOCK | Xapian::DB_BACKEND_GLASS);
                                                                                                              ^
fts-backend-xapian-functions.cpp:819:134: error: 'DB_BACKEND_GLASS' is not a member of 'Xapian'
    Xapian::WritableDatabase * db = new Xapian::WritableDatabase(backend->db,Xapian::DB_CREATE_OR_OVERWRITE | Xapian::DB_RETRY_LOCK | Xapian::DB_BACKEND_GLASS);
                                                                                                                                      ^
fts-backend-xapian.cpp: In function 'int fts_backend_xapian_optimize(fts_backend*)':
fts-backend-xapian.cpp:549:70: error: 'DB_RETRY_LOCK' is not a member of 'Xapian'
      db = new Xapian::WritableDatabase(s,Xapian::DB_CREATE_OR_OPEN | Xapian::DB_RETRY_LOCK | Xapian::DB_BACKEND_GLASS | Xapian::DB_NO_SYNC);
                                                                      ^
fts-backend-xapian.cpp:549:94: error: 'DB_BACKEND_GLASS' is not a member of 'Xapian'
      db = new Xapian::WritableDatabase(s,Xapian::DB_CREATE_OR_OPEN | Xapian::DB_RETRY_LOCK | Xapian::DB_BACKEND_GLASS | Xapian::DB_NO_SYNC);
                                                                                              ^
fts-backend-xapian.cpp:549:121: error: 'DB_NO_SYNC' is not a member of 'Xapian'
      db = new Xapian::WritableDatabase(s,Xapian::DB_CREATE_OR_OPEN | Xapian::DB_RETRY_LOCK | Xapian::DB_BACKEND_GLASS | Xapian::DB_NO_SYNC);
                                                                                                                         ^
make[2]: *** [fts-backend-xapian.lo] Error 1
make[2]: Leaving directory `/root/rpmbuild/SOURCES/fts-xapian-1.5.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/rpmbuild/SOURCES/fts-xapian-1.5.5'
make: *** [all] Error 2
ronenb75 commented 1 year ago

Same exact error.

Oracle Linux Server release 7.9

dovecot.x86_64 2:2.3.17-3
dovecot-devel.x86_64 2:2.3.17-3
dovecot-lua.x86_64 2:2.3.17-3
xapian-core.x86_64 1.2.22-1.el7
xapian-core-devel.x86_64 1.2.22-1.el7
xapian-core-libs.x86_64 1.2.22-1.el7
sqlite.x86_64 3.7.17-8.el7_7.1
sqlite-devel.x86_64 3.7.17-8.el7_7.1
gcc.x86_64 4.8.5-44.0.3.el7
gcc-c++.x86_64 4.8.5-44.0.3.el7
# c++ -v
Using built-in specs.
COLLECT_GCC=c++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.5 20150623 (Red Hat 4.8.5-44.0.3) (GCC)
grosjo commented 9 months ago

Xapian is at version 1.4.x You need to update your systems