Andrew Stribblehill wrote:
Quoting Bas van der Vlies <[EMAIL PROTECTED]> (2005-02-25 10:55:41 GMT):

Package: cfengine2
Version: 2.1.11-1
Severity: important


In our environment we tidy up directories after the completion of an
job. This fails because we have files greater then 2GB. We get these
error message:
can't stat 8gr8_add.prededisp (/scratch/bws-data/200404792/8gr8/124/125/8gr8_add.prededisp)


This can be solved by recompiling cfengine with LARGE_FILE_SUPPORT:
        -D_FILE_OFFSET_BITS=64

Can this be fixed?


Sure. Can you send me a patch, just to show me precisely where to
apply this -D flag?

Thanks.


Here it is: Using 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.


And here s an link to the documentation:
        http://www.suse.de/~aj/linux_lfs.html


-- -- ******************************************************************** * * * Bas van der Vlies e-mail: [EMAIL PROTECTED] * * SARA - Academic Computing Services phone: +31 20 592 8012 * * Kruislaan 415 fax: +31 20 6683167 * * 1098 SJ Amsterdam * * * ********************************************************************


-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Reply via email to