aboutsummaryrefslogtreecommitdiff
path: root/README.COMPILATION.PROBLEMS
diff options
context:
space:
mode:
authorJulian Seward <jseward@acm.org>2006-12-20 22:13:13 +0100
committerJulian Seward <jseward@acm.org>2006-12-20 22:13:13 +0100
commitf10a33538e9bab6deb61779b3d8aae168824ef48 (patch)
treeecd1c2ed553ced58a090e0d8b7b7a20bb7c95c80 /README.COMPILATION.PROBLEMS
parent4d540bfc95a4b0eefc1d1f388ec33534aaeb3a2f (diff)
downloadbzip2-1.0.4.tar.gz
bzip2-1.0.4.tar.bz2
bzip2-1.0.4.zip
bzip2-1.0.4bzip2-1.0.4
Diffstat (limited to 'README.COMPILATION.PROBLEMS')
-rw-r--r--README.COMPILATION.PROBLEMS37
1 files changed, 28 insertions, 9 deletions
diff --git a/README.COMPILATION.PROBLEMS b/README.COMPILATION.PROBLEMS
index f1bc396..64ab586 100644
--- a/README.COMPILATION.PROBLEMS
+++ b/README.COMPILATION.PROBLEMS
@@ -1,32 +1,47 @@
1------------------------------------------------------------------
2This file is part of bzip2/libbzip2, a program and library for
3lossless, block-sorting data compression.
1 4
2bzip2-1.0.3 should compile without problems on the vast majority of 5bzip2/libbzip2 version 1.0.4 of 20 December 2006
6Copyright (C) 1996-2006 Julian Seward <jseward@bzip.org>
7
8Please read the WARNING, DISCLAIMER and PATENTS sections in the
9README file.
10
11This program is released under the terms of the license contained
12in the file LICENSE.
13------------------------------------------------------------------
14
15bzip2-1.0.4 should compile without problems on the vast majority of
3platforms. Using the supplied Makefile, I've built and tested it 16platforms. Using the supplied Makefile, I've built and tested it
4myself for x86-linux and x86_64-linux. With makefile.msc, Visual C++ 17myself for x86-linux and amd64-linux. With makefile.msc, Visual C++
56.0 and nmake, you can build a native Win32 version too. Large file 186.0 and nmake, you can build a native Win32 version too. Large file
6support seems to work correctly on at least alpha-tru64unix and 19support seems to work correctly on at least on amd64-linux.
7x86-cygwin32 (on Windows 2000).
8 20
9When I say "large file" I mean a file of size 2,147,483,648 (2^31) 21When I say "large file" I mean a file of size 2,147,483,648 (2^31)
10bytes or above. Many older OSs can't handle files above this size, 22bytes or above. Many older OSs can't handle files above this size,
11but many newer ones can. Large files are pretty huge -- most files 23but many newer ones can. Large files are pretty huge -- most files
12you'll encounter are not Large Files. 24you'll encounter are not Large Files.
13 25
14Earlier versions of bzip2 (0.1, 0.9.0, 0.9.5) compiled on a wide 26Early versions of bzip2 (0.1, 0.9.0, 0.9.5) compiled on a wide variety
15variety of platforms without difficulty, and I hope this version will 27of platforms without difficulty, and I hope this version will continue
16continue in that tradition. However, in order to support large files, 28in that tradition. However, in order to support large files, I've had
17I've had to include the define -D_FILE_OFFSET_BITS=64 in the Makefile. 29to include the define -D_FILE_OFFSET_BITS=64 in the Makefile. This
18This can cause problems. 30can cause problems.
19 31
20The technique of adding -D_FILE_OFFSET_BITS=64 to get large file 32The technique of adding -D_FILE_OFFSET_BITS=64 to get large file
21support is, as far as I know, the Recommended Way to get correct large 33support is, as far as I know, the Recommended Way to get correct large
22file support. For more details, see the Large File Support 34file support. For more details, see the Large File Support
23Specification, published by the Large File Summit, at 35Specification, published by the Large File Summit, at
36
24 http://ftp.sas.com/standards/large.file 37 http://ftp.sas.com/standards/large.file
25 38
26As a general comment, if you get compilation errors which you think 39As a general comment, if you get compilation errors which you think
27are related to large file support, try removing the above define from 40are related to large file support, try removing the above define from
28the Makefile, ie, delete the line 41the Makefile, ie, delete the line
42
29 BIGFILES=-D_FILE_OFFSET_BITS=64 43 BIGFILES=-D_FILE_OFFSET_BITS=64
44
30from the Makefile, and do 'make clean ; make'. This will give you a 45from the Makefile, and do 'make clean ; make'. This will give you a
31version of bzip2 without large file support, which, for most 46version of bzip2 without large file support, which, for most
32applications, is probably not a problem. 47applications, is probably not a problem.
@@ -37,3 +52,7 @@ You can use the spewG.c program to generate huge files to test bzip2's
37large file support, if you are feeling paranoid. Be aware though that 52large file support, if you are feeling paranoid. Be aware though that
38any compilation problems which affect bzip2 will also affect spewG.c, 53any compilation problems which affect bzip2 will also affect spewG.c,
39alas. 54alas.
55
56AIX: I have reports that for large file support, you need to specify
57-D_LARGE_FILES rather than -D_FILE_OFFSET_BITS=64. I have not tested
58this myself.