Did  you run configure with the "--enable-xapian" option?

On Thu, Mar 4, 2021, at 11:35 AM, funjuliet...@jcook.la wrote:
> I am trying to compile Cyrus 3.2.5. I got the 1.5 xapian build from git and 
> compiled it.
> 
> I'm getting the following errors. Can someone help me figure out how to 
> compile this?
> 
> gcc -DHAVE_CONFIG_H -I.  -I/home/halogen/cyrus-imapd-3.2.5/com_err/et -I. 
> -I./lib -I. -I./lib -DLIBEXEC_DIR=\"/usr/local/libexec\" 
> -DSBIN_DIR=\"/usr/local/sbin\" -DSYSCONF_DIR=\"/etc\" -DHAVE_CONFIG_H      
> -I/usr/include/libxml2      -I/usr/local/include   -I/usr/local/include 
> -D_FORTIFY_SOURCE=2 -mtune=i686 -O2 -pipe -g -fvisibility=hidden 
> -I/usr/include/chardet   -I/usr/include/mysql   -fPIC  -g -O2 -MT 
> imap/lmtp_err.o -MD -MP -MF $depbase.Tpo -c -o imap/lmtp_err.o 
> imap/lmtp_err.c &&\
> mv -f $depbase.Tpo $depbase.Po
> /bin/sh ./libtool  --tag=CC   --mode=link gcc -fPIC  -g -O2  -licui18n 
> -licuuc -licudata -lxml2  -lical -licalss -licalvcal  -ljansson -lnghttp2 
> -L/usr/local/lib -lwslay -lbrotlienc -lzstd -L/usr/local/lib -lshp -lm 
> -lchardet -ljansson -Wl,-rpath,/usr/local/cyruslibs/lib 
> -Wl,-rpath,/usr/local/cyruslibs/lib/x86_64-linux-gnu -o imap/lmtpd 
> imap/lmtpd.o imap/lmtpengine.o imap/mutex_fake.o imap/proxy.o imap/spool.o 
> master/service.o imap/autocreate.o imap/lmtp_sieve.o imap/smtpclient.o 
> imap/jmap_util.o imap/jmap_mail_query.o imap/lmtp_err.o imap/lmtpstats.o 
> sieve/libcyrus_sieve.la lib/libcyrus.la lib/libcyrus_min.la -ljansson  
> -lresolv -lsrs2   -L/usr/lib  -lmysqlclient -lpthread -lz -lm -ldl -lssl 
> -lcrypto -lpcre -lpcreposix -lsrs2 -lz -lxml2 -lical -licalss -licalvcal  
> -lsqlite3 -lsasl2 -lssl -lcrypto -lssl -lcrypto   imap/libcyrus_imap.la 
> lib/libcyrus.la lib/libcyrus_min.la -ljansson  -lresolv -lsrs2   -L/usr/lib  
> -lmysqlclient -lpthread -lz -lm -ldl -lssl -lcrypto -lpcre -lpcreposix -lsrs2 
> -lz -lxml2 -lical -licalss -licalvcal  -lsqlite3 -lsasl2 -lssl -lcrypto -lssl 
> -lcrypto   com_err/et/libcyrus_com_err.la  -lchardet -ljansson -ljansson  
> -lresolv -lsrs2   -L/usr/lib  -lmysqlclient -lpthread -lz -lm -ldl -lssl 
> -lcrypto -lpcre -lpcreposix -lsrs2 -lz -lxml2 -lical -licalss -licalvcal  
> -lsqlite3
> libtool: link: gcc -fPIC -g -O2 -Wl,-rpath -Wl,/usr/local/cyruslibs/lib 
> -Wl,-rpath -Wl,/usr/local/cyruslibs/lib/x86_64-linux-gnu -o imap/.libs/lmtpd 
> imap/lmtpd.o imap/lmtpengine.o imap/mutex_fake.o imap/proxy.o imap/spool.o 
> master/service.o imap/autocreate.o imap/lmtp_sieve.o imap/smtpclient.o 
> imap/jmap_util.o imap/jmap_mail_query.o imap/lmtp_err.o imap/lmtpstats.o  
> -licui18n -licuuc -licudata -lnghttp2 -L/usr/local/lib 
> /usr/local/lib/libwslay.so -lbrotlienc -lzstd /usr/local/lib/libshp.so 
> sieve/.libs/libcyrus_sieve.so -L/usr/lib imap/.libs/libcyrus_imap.so 
> lib/.libs/libcyrus.so lib/.libs/libcyrus_min.so -lsasl2 
> com_err/et/.libs/libcyrus_com_err.so -lchardet -ljansson -lresolv 
> -lmysqlclient -lpthread -lm -ldl -lssl -lcrypto -lpcre -lpcreposix 
> /usr/local/lib/libsrs2.so -lz -lxml2 -lical -licalss -licalvcal -lsqlite3
> /usr/bin/ld: imap/jmap_mail_query.o: in function `_matchmime_tr_end_message':
> /home/halogen/cyrus-imapd-3.2.5/imap/jmap_mail_query.c:585: undefined 
> reference to `xapian_dbw_end_doc'
> /usr/bin/ld: imap/jmap_mail_query.o: in function `_matchmime_tr_end_part':
> /home/halogen/cyrus-imapd-3.2.5/imap/jmap_mail_query.c:578: undefined 
> reference to `xapian_dbw_doc_part'
> /usr/bin/ld: imap/jmap_mail_query.o: in function 
> `_matchmime_tr_begin_message':
> /home/halogen/cyrus-imapd-3.2.5/imap/jmap_mail_query.c:559: undefined 
> reference to `xapian_dbw_begin_doc'
> /usr/bin/ld: imap/jmap_mail_query.o: in function 
> `_email_matchmime_contactgroup':
> /home/halogen/cyrus-imapd-3.2.5/imap/jmap_mail_query.c:634: undefined 
> reference to `xapian_query_new_match'
> /usr/bin/ld: /home/halogen/cyrus-imapd-3.2.5/imap/jmap_mail_query.c:638: 
> undefined reference to `xapian_query_new_compound'
> /usr/bin/ld: imap/jmap_mail_query.o: in function `_email_matchmime_evaluate':
> /home/halogen/cyrus-imapd-3.2.5/imap/jmap_mail_query.c:706: undefined 
> reference to `xapian_query_new_match'
> /usr/bin/ld: /home/halogen/cyrus-imapd-3.2.5/imap/jmap_mail_query.c:709: 
> undefined reference to `xapian_query_new_compound'
> /usr/bin/ld: /home/halogen/cyrus-imapd-3.2.5/imap/jmap_mail_query.c:716: 
> undefined reference to `xapian_query_new_match'
> /usr/bin/ld: /home/halogen/cyrus-imapd-3.2.5/imap/jmap_mail_query.c:720: 
> undefined reference to `xapian_query_new_match'
> /usr/bin/ld: /home/halogen/cyrus-imapd-3.2.5/imap/jmap_mail_query.c:724: 
> undefined reference to `xapian_query_new_match'
> /usr/bin/ld: /home/halogen/cyrus-imapd-3.2.5/imap/jmap_mail_query.c:728: 
> undefined reference to `xapian_query_new_match'
> /usr/bin/ld: /home/halogen/cyrus-imapd-3.2.5/imap/jmap_mail_query.c:732: 
> undefined reference to `xapian_query_new_match'
> /usr/bin/ld: 
> imap/jmap_mail_query.o:/home/halogen/cyrus-imapd-3.2.5/imap/jmap_mail_query.c:736:
>  more undefined references to `xapian_query_new_match' follow
> /usr/bin/ld: imap/jmap_mail_query.o: in function `_email_matchmime_evaluate':
> /home/halogen/cyrus-imapd-3.2.5/imap/jmap_mail_query.c:774: undefined 
> reference to `xapian_query_new_compound'
> /usr/bin/ld: /home/halogen/cyrus-imapd-3.2.5/imap/jmap_mail_query.c:776: 
> undefined reference to `xapian_query_run'
> /usr/bin/ld: /home/halogen/cyrus-imapd-3.2.5/imap/jmap_mail_query.c:777: 
> undefined reference to `xapian_query_free'
> /usr/bin/ld: imap/jmap_mail_query.o: in function `jmap_email_matchmime':
> /home/halogen/cyrus-imapd-3.2.5/imap/jmap_mail_query.c:990: undefined 
> reference to `xapian_dbw_close'
> /usr/bin/ld: /home/halogen/cyrus-imapd-3.2.5/imap/jmap_mail_query.c:938: 
> undefined reference to `xapian_dbw_openmem'
> /usr/bin/ld: /home/halogen/cyrus-imapd-3.2.5/imap/jmap_mail_query.c:975: 
> undefined reference to `xapian_db_opendbw'
> /usr/bin/ld: /home/halogen/cyrus-imapd-3.2.5/imap/jmap_mail_query.c:983: 
> undefined reference to `xapian_db_close'
> collect2: error: ld returned 1 exit status
> 
> *Cyrus <https://cyrus.topicbox.com/latest>* / Devel / see discussions 
> <https://cyrus.topicbox.com/groups/devel> + participants 
> <https://cyrus.topicbox.com/groups/devel/members> + delivery options 
> <https://cyrus.topicbox.com/groups/devel/subscription> Permalink 
> <https://cyrus.topicbox.com/groups/devel/Tf544987d7d6a54fd-M64b7419c76035feff7fb6a22>

------------------------------------------
Cyrus: Devel
Permalink: 
https://cyrus.topicbox.com/groups/devel/Tf544987d7d6a54fd-Mf17ec9cd81dc3b6534b9191d
Delivery options: https://cyrus.topicbox.com/groups/devel/subscription

Reply via email to