minix/external/bsd/bzip2/dist/README.COMPILATION.PROBLEMS

59 lines
2.5 KiB
Text
Raw Normal View History

2011-08-17 21:48:49 +02:00
------------------------------------------------------------------
This file is part of bzip2/libbzip2, a program and library for
lossless, block-sorting data compression.
2005-08-02 10:57:26 +02:00
bzip2/libbzip2 version 1.0.6 of 6 September 2010
Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org>
2011-08-17 21:48:49 +02:00
Please read the WARNING, DISCLAIMER and PATENTS sections in the
README file.
This program is released under the terms of the license contained
in the file LICENSE.
------------------------------------------------------------------
bzip2-1.0.6 should compile without problems on the vast majority of
2005-08-02 10:57:26 +02:00
platforms. Using the supplied Makefile, I've built and tested it
2011-08-17 21:48:49 +02:00
myself for x86-linux and amd64-linux. With makefile.msc, Visual C++
2005-08-02 10:57:26 +02:00
6.0 and nmake, you can build a native Win32 version too. Large file
2011-08-17 21:48:49 +02:00
support seems to work correctly on at least on amd64-linux.
2005-08-02 10:57:26 +02:00
When I say "large file" I mean a file of size 2,147,483,648 (2^31)
bytes or above. Many older OSs can't handle files above this size,
but many newer ones can. Large files are pretty huge -- most files
you'll encounter are not Large Files.
2011-08-17 21:48:49 +02:00
Early versions of bzip2 (0.1, 0.9.0, 0.9.5) compiled on a wide variety
of platforms without difficulty, and I hope this version will continue
in that tradition. However, in order to support large files, I've had
to include the define -D_FILE_OFFSET_BITS=64 in the Makefile. This
can cause problems.
2005-08-02 10:57:26 +02:00
The technique of adding -D_FILE_OFFSET_BITS=64 to get large file
support is, as far as I know, the Recommended Way to get correct large
file support. For more details, see the Large File Support
Specification, published by the Large File Summit, at
2011-08-17 21:48:49 +02:00
2005-08-02 10:57:26 +02:00
http://ftp.sas.com/standards/large.file
As a general comment, if you get compilation errors which you think
are related to large file support, try removing the above define from
the Makefile, ie, delete the line
2011-08-17 21:48:49 +02:00
2005-08-02 10:57:26 +02:00
BIGFILES=-D_FILE_OFFSET_BITS=64
2011-08-17 21:48:49 +02:00
2005-08-02 10:57:26 +02:00
from the Makefile, and do 'make clean ; make'. This will give you a
version of bzip2 without large file support, which, for most
applications, is probably not a problem.
Alternatively, try some of the platform-specific hints listed below.
You can use the spewG.c program to generate huge files to test bzip2's
large file support, if you are feeling paranoid. Be aware though that
any compilation problems which affect bzip2 will also affect spewG.c,
alas.
2011-08-17 21:48:49 +02:00
AIX: I have reports that for large file support, you need to specify
-D_LARGE_FILES rather than -D_FILE_OFFSET_BITS=64. I have not tested
this myself.