Hello!

I have got folowing error while running htdig:

DB2 problem...: /home/httpd/htdig/db/db.docdb: file size not a multiple of the
pagesize



I know the reason already for this (read through the mailinglist):
My database-file reached the 2Gig-maximum of my filesystem...


The solutions from the mailinglist were to decrease the size of the database
by either decreasing mac_doc_size or max_head_length.

Now I googled around and found out, that it would also be possible to increase
the file-size of the filesystem with LFS(Large File Support).

What I found was a little HowTO how to enable this in linux at
http://www.suse.de/~aj/linux_lfs.html

There is written, that you need to compile your programs in the following way
to let them use LFS:


--------------------------------------------------------------------
For using LFS in user programs, the programs have to use the LFS API. This
involves recompilation and changes of programs. The API is documented in the
glibc manual (the libc info pages) which can be read with e.g. "info libc".

In a nutshell for using LFS you can choose either of the following:

* Compile your programs with "gcc -D_FILE_OFFSET_BITS=64". This forces   
  all file access calls to use the 64 bit variants. Several types 
  change also, e.g. off_t becomes off64_t. It's therefore important to 
  always use the correct types and to not use e.g. int instead of  
  off_t. For portability with other platforms you should use getconf   
  LFS_CFLAGS which will return -D_FILE_OFFSET_BITS=64 on Linux 
  platforms but might return something else on e.g. Solaris. For   
  linking, you should use the link flags that are reported via getconf 
  LFS_LDFLAGS. On Linux systems, you do not need special link flags.

* Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE. With these defines 
  you can use the LFS functions like open64 directly.
  
* Use the O_LARGEFILE flag with open to operate on large files.
-----------------------------------------------------------------

my question: I am more a newbie to linux, so could you answer me, if it would
be possible to enable LFS for htdig with recompiling it with the flags
mentioned above?












-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
ht://Dig general mailing list: <[EMAIL PROTECTED]>
ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-general

Reply via email to