Great, thanks

So, from your build log in your earlier email, it looks like the missing 
symbols are from xapian_wrap.cpp, which should be built into libcyrus_imap.so.  
libcyrus_imap.so was being linked, so I guess it had been somehow built without 
that file.   It's conditional on USE_XAPIAN, so let's see whether Xapian was 
detected correctly...

Looking through config.log, and at a first pass, I'm not seeing anything 
especially weird in there...

> configure:17516: WARNING: Your platform's time_t is less than 64 bits

This might be a red flag -- you'll have problems with calendaring, especially 
in the future, due to the Year 2038 problem.  But I don't think it'll break 
Xapian in any way, so let's move on...

> configure:20581: checking for xapian-config-1.5
configure:20599: found /usr/local/cyruslibs/bin/xapian-config-1.5
configure:20611: result: /usr/local/cyruslibs/bin/xapian-config-1.5
configure:20625: checking /usr/local/cyruslibs/bin/xapian-config-1.5 works
-L/usr/local/cyruslibs/lib -lxapian-1.5
-I/usr/local/cyruslibs/include/xapian-1.5
configure:20629: result: yes
configure:20642: checking whether g++ supports C++11 features by default
configure:20702: g++ -c -g -O2 -I/usr/include/mysql   conftest.cpp >&5
configure:20702: $? = 0
configure:20709: result: yes
configure:20858: checking for Xapian cjk word tokenization
configure:20871: g++ -o conftest -g -O2 
-I/usr/local/cyruslibs/include/xapian-1.5 -I/usr/include/mysql   
-Wl,-rpath,/usr/local/cyruslibs/lib 
-Wl,-rpath,/usr/local/cyruslibs/lib/x86_64-linux-gnu -L/usr/local/cyruslibs/lib 
-lxapian-1.5 conftest.cpp   -L/usr/lib  -lmysqlclient -lpthread -lz -lm -ldl 
-lssl -lcrypto >&5
configure:20871: $? = 0
configure:20878: result: yes

Okay, we found Xapian correctly, and it supports CJK word tokenisation so it's 
a pretty new one.  Great.

> XAPIAN_CONFIG='/usr/local/cyruslibs/bin/xapian-config-1.5'
XAPIAN_CXXFLAGS='-I/usr/local/cyruslibs/include/xapian-1.5'
XAPIAN_LIBS='-L/usr/local/cyruslibs/lib -lxapian-1.5'
XAPIAN_VERSION='1.5.0'

This all looks fine...

> #define USE_XAPIAN /**/
#define USE_XAPIAN_CJK_WORDS /**/
#define XAPIAN_CJK_TOKENS "words"

As does this...

So, from the config.log, it looks like Xapian's being correctly detected.

I wonder if it's linking against the "wrong" libcyrus_imap.so...

Do you have files lying around from a previous build attempt, maybe one without 
--enable-xapian?  If you "make distclean", and then configure and make again 
like previously, does it now work?  It would be useful to see the full make 
output as well.

Do you have an existing Cyrus installation on this machine?  I wonder if it's 
trying to link against an installed libcyrus_imap.so rather than the one it 
just built... which would be weird, but since everything seems fine so far, 
weird is what we're looking for!

I wonder if the built libcyrus_imap.so is linked against Xapian properly?  Can 
you provide the output of "libtool --mode=execute ldd 
imap/.libs/libcyrus_imap.so" please?

Hopefully some of this will point us in the right direction :)

Cheers,

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

Reply via email to