Stream   Blog   Code   Pictures   Videos   Contact  
January 4, 2008
15:26
This won't concern all users, but it does apply to all those that have spiffy x86_64 based systems. Bongo has issues with CLucene on 64bit machines, this isn't a direct result of Bongo's code but more of CLucene's.

A bug has been filed upstream, but unfortunately very little has happened with it :-(. You have two choices if running Bongo from source and wish to utilise the extra capabilities of your hardware:

1. Use the bundled Clucene under /import in the tarball
2. Apply the following patch to your system CLucene:

Index: import/clucene/src/CLucene/config/compiler.h
===================================================================
--- import/clucene/src/CLucene/config/compiler.h (.../trunk/import/clucene) (revision 150)
+++ import/clucene/src/CLucene/config/compiler.h (.../branches/remove-mdb/import/clucene) (revision 559)
@@ -146,7 +146,7 @@
#define CL_MAX_NAME CL_MAX_PATH
//todo: this is a temporary fix for a potential buffer overflow...
//should never use this
-#define CL_MAX_DIR CL_MAX_PATH*32
+#define CL_MAX_DIR CL_MAX_PATH*2

#ifdef _LARGE_FILES
#define LUCENE_MAX_FILELENGTH LUCENE_INT64_MAX_SHOULDBE


I have taken option number 2 and applied the patch to CLucene which you can get from my OBS repo. This means that you can truly run Bongo on 64bit machines running openSUSE/SLE and Fedora. I believe the patch has been submitted to Debian (but I'm not 100% on that one).

If people have any issues, please let us know - irc, mailing lists, forums or file a bug.
Author: Old Blog 
blog comments powered by Disqus