n Sat, Nov 18, 2006 at 05:43:33PM -0600, Kelly F. Hickel wrote:

> mtn: error: error accessing file /space/kfh/mtn_repo/master.mtn: Value too
> large for defined data type

There are 2 solutions that I've found to this:

    1) use a 64 bit system. All of the file op calls are large file safe.

    2) recompile boost and monotone with -D_FILE_OFFSET_BITS=64

I created a pretty minor patch against 0.26 to do this, and it might even still
work. Failing that, it'll show you what you need to do..

Cheers,

--Jack

--
Jack (John) Cummings                           http://mudshark.org/
PGP fingerprint: F18B 13A3 6D06 D48A 598D  42EA 3D53 BDC8 7917 F802
============================================================
--- src/INSTALL dbcbecd1cc7f1a0092200291c3d25f5a7bd7eab6
+++ src/INSTALL 025a241ba88aaddc4a173c32ccd568b05c8f7a9d
@@ -55,7 +55,7 @@
     cd boost_1_32_0
     (cd tools/build/jam_src && ./build.sh)
     BJAM=`find tools/build/jam_src/ -name bjam -a -type f`
-    $BJAM "-sBUILD=release <threading>single <optimization>speed 
<runtime-link>static"
+    $BJAM "-sBUILD=release <threading>single <optimization>speed 
<runtime-link>static <define>_FILE_OFFSET_BITS=64"
     for i in `find bin -type d -a -name \*.a`; 
       do for j in `find $i -type f -a -name \*.a`; 
         do mv $j libs/`basename $i`; 
@@ -63,6 +63,13 @@
     done
     ranlib libs/*.a
 
+  boost, by default, does not have large file support on 32 bit platforms.
+  Adding the '<define>_FILE_OFFSET_BITS=64' to the build flags will add LFS
+  support. If your operating system requires slightly different options, then
+  this is where to put them. If you don't want large file support, then you can
+  remove this stanza, but monotone will not be able to open databases larger 
+  than 2GiB. 
+
   if this completes successfully, you will have a selection of boost
   libraries in boost_1_32_0/libs and boost headers in
   boost_1_32_0/boost. you can then either copy the .a files to your
============================================================
--- src/configure.ac    9a0e730650f554caa768ae612c5583b69bc10330
+++ src/configure.ac    13880d50b9193daf2b510aaa8081565d54c8ac10
@@ -346,6 +346,8 @@
 
 if test "x$enable_large_file" = "xno"; then
    SQLITE_CPPFLAGS="$SQLITE_CPPFLAGS -DSQLITE_DISABLE_LFS"
+else
+   AC_SYS_LARGEFILE
 fi
 AC_SUBST(SQLITE_CPPFLAGS)
 
============================================================
--- src/unix/fs.cc      e353582dd31c2d083e95fba1aa3c7321761a3843
+++ src/unix/fs.cc      ba1fa4549176a43a0627c88a4bb294bf02790126
@@ -1,8 +1,9 @@
 // copyright (C) 2005 nathaniel smith <[EMAIL PROTECTED]>
 // all rights reserved.
 // licensed to the public under the terms of the GNU GPL (>= 2)
 // see the file COPYING for details
 
+#include "config.h"
 #include <unistd.h>
 #include <errno.h>
 #include <stdlib.h>
============================================================
--- src/unix/inodeprint.cc      97d9fd62fa12374cde1be2c31269793730532084
+++ src/unix/inodeprint.cc      7c31e34ce6ef19035338cd7c72ed74a4ad655ef8
@@ -1,8 +1,9 @@
 // copyright (C) 2005 nathaniel smith <[EMAIL PROTECTED]>
 // all rights reserved.
 // licensed to the public under the terms of the GNU GPL (>= 2)
 // see the file COPYING for details
 
+#include "config.h"
 #include <sys/stat.h>
 
 #include "botan/botan.h"
============================================================
--- src/unix/process.cc 3a10d73ce7457e22b104777f87d29f8d5fdd2ea8
+++ src/unix/process.cc a1a4aabe0ab1188fb6e13b015d497cc186aa3f06
@@ -1,8 +1,9 @@
 // copyright (C) 2005 Jon Bright <[EMAIL PROTECTED]>
 // all rights reserved.
 // licensed to the public under the terms of the GNU GPL (>= 2)
 // see the file COPYING for details
 
+#include "config.h"
 #include <sys/types.h>
 #include <sys/wait.h>
 #include <sys/stat.h>

Attachment: pgpox764YGo6B.pgp
Description: PGP signature

_______________________________________________
Monotone-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/monotone-devel

Reply via email to