
Applying ./patches/001-large_files.patch using plaintext: 
patching file CPP/7zip/Compress/LZMA_Alone/makefile.gcc

Applying ./patches/002-lzmp.patch using plaintext: 
patching file CPP/7zip/Compress/LZMA_Alone/lzmp.cpp
patching file CPP/7zip/Compress/LZMA_Alone/Exception.h
patching file CPP/7zip/Compress/LZMA_Alone/makefile.gcc
patching file CPP/7zip/Compress/LZMA_Alone/lzma_version.h
patching file CPP/Common/C_FileIO.h

Applying ./patches/003-compile_fixes.patch using plaintext: 
patching file CPP/7zip/Common/FileStreams.h
patching file CPP/Common/MyWindows.h

Applying ./patches/100-static_library.patch using plaintext: 
patching file C/LzmaUtil/makefile.gcc

Applying ./patches/101-move-copyright-to-usage-info.patch using plaintext: 
patching file CPP/7zip/Compress/LZMA_Alone/LzmaAlone.cpp
make[4]: Entering directory '/home/bastian/ledebot/source/build_dir/host/lzma-4.65/C/LzmaUtil'
gcc -c -O2 -Wall LzmaUtil.c
LzmaUtil.c: In function 'Decode2':
LzmaUtil.c:95:39: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
       if (res != SZ_OK || thereIsSize && unpackSize == 0)
                                       ^
LzmaUtil.c: In function 'main':
LzmaUtil.c:252:10: warning: format not a string literal and no format arguments [-Wformat-security]
   printf(rs);
          ^
gcc -c -O2 -Wall ../Alloc.c
gcc -c -O2 -Wall ../LzFind.c
gcc -c -O2 -Wall ../LzmaDec.c
gcc -c -O2 -Wall ../LzmaEnc.c
../LzmaEnc.c: In function 'LzmaEnc_Alloc':
../LzmaEnc.c:1922:8: warning: variable 'btMode' set but not used [-Wunused-but-set-variable]
   Bool btMode;
        ^
gcc -c -O2 -Wall ../LzmaLib.c
gcc -c -O2 -Wall ../7zFile.c
gcc -c -O2 -Wall ../7zStream.c
rm -f liblzma.a
ar rcu liblzma.a Alloc.o LzFind.o LzmaDec.o LzmaEnc.o LzmaLib.o 7zFile.o 7zStream.o 
ar: `u' modifier ignored since `D' is the default (see `U')
ranlib liblzma.a
gcc -o lzma  LzmaUtil.o liblzma.a
make[4]: Leaving directory '/home/bastian/ledebot/source/build_dir/host/lzma-4.65/C/LzmaUtil'
make[4]: Entering directory '/home/bastian/ledebot/source/build_dir/host/lzma-4.65/CPP/7zip/Compress/LZMA_Alone'
g++ -O2 -Wall -c -I ../../../ -D_FILE_OFFSET_BITS=64 -DPACKAGE_VERSION="\"4.32.0beta3\"" LzmaAlone.cpp
LzmaAlone.cpp: In function 'int main2(int, const char**)':
LzmaAlone.cpp:467:36: warning: format not a string literal and no format arguments [-Wformat-security]
         fprintf(stderr, kWriteError);
                                    ^
LzmaAlone.cpp:492:33: warning: format not a string literal and no format arguments [-Wformat-security]
       fprintf(stderr, kReadError);
                                 ^
g++ -O2 -Wall -c -I ../../../ -D_FILE_OFFSET_BITS=64 -DPACKAGE_VERSION="\"4.32.0beta3\"" LzmaBench.cpp
g++ -O2 -Wall -c -I ../../../ -D_FILE_OFFSET_BITS=64 -DPACKAGE_VERSION="\"4.32.0beta3\"" LzmaBenchCon.cpp
LzmaBenchCon.cpp: In member function 'virtual LONG CBenchCallback::SetDecodeResult(const CBenchInfo&, bool)':
LzmaBenchCon.cpp:145:20: warning: format not a string literal and no format arguments [-Wformat-security]
     fprintf(f, kSep);
                    ^
LzmaBenchCon.cpp: In function 'LONG LzmaBenchCon(FILE*, UInt32, UInt32, UInt32)':
LzmaBenchCon.cpp:204:22: warning: format not a string literal and no format arguments [-Wformat-security]
       fprintf(f, kSep);
                      ^
LzmaBenchCon.cpp:211:22: warning: format not a string literal and no format arguments [-Wformat-security]
       fprintf(f, kSep);
                      ^
g++ -O2 -Wall -c -I ../../../ -D_FILE_OFFSET_BITS=64 -DPACKAGE_VERSION="\"4.32.0beta3\"" ../LzmaDecoder.cpp
g++ -O2 -Wall -c -I ../../../ -D_FILE_OFFSET_BITS=64 -DPACKAGE_VERSION="\"4.32.0beta3\"" ../LzmaEncoder.cpp
g++ -O2 -Wall -c -I ../../../ -D_FILE_OFFSET_BITS=64 -DPACKAGE_VERSION="\"4.32.0beta3\"" ../../Common/InBuffer.cpp
g++ -O2 -Wall -c -I ../../../ -D_FILE_OFFSET_BITS=64 -DPACKAGE_VERSION="\"4.32.0beta3\"" ../../Common/OutBuffer.cpp
g++ -O2 -Wall -c -I ../../../ -D_FILE_OFFSET_BITS=64 -DPACKAGE_VERSION="\"4.32.0beta3\"" ../../Common/FileStreams.cpp
g++ -O2 -Wall -c -I ../../../ -D_FILE_OFFSET_BITS=64 -DPACKAGE_VERSION="\"4.32.0beta3\"" ../../Common/StreamUtils.cpp
g++ -O2 -Wall -c -I ../../../ -D_FILE_OFFSET_BITS=64 -DPACKAGE_VERSION="\"4.32.0beta3\"" ../../../Common/C_FileIO.cpp
g++ -O2 -Wall -c -I ../../../ -D_FILE_OFFSET_BITS=64 -DPACKAGE_VERSION="\"4.32.0beta3\"" ../../../Common/CommandLineParser.cpp
g++ -O2 -Wall -c -I ../../../ -D_FILE_OFFSET_BITS=64 -DPACKAGE_VERSION="\"4.32.0beta3\"" ../../../Common/CRC.cpp
g++ -O2 -Wall -c -I ../../../ -D_FILE_OFFSET_BITS=64 -DPACKAGE_VERSION="\"4.32.0beta3\"" ../../../Common/IntToString.cpp
g++ -O2 -Wall -c -I ../../../ -D_FILE_OFFSET_BITS=64 -DPACKAGE_VERSION="\"4.32.0beta3\"" ../../../Common/MyString.cpp
g++ -O2 -Wall -c -I ../../../ -D_FILE_OFFSET_BITS=64 -DPACKAGE_VERSION="\"4.32.0beta3\"" ../../../Common/StringConvert.cpp
g++ -O2 -Wall -c -I ../../../ -D_FILE_OFFSET_BITS=64 -DPACKAGE_VERSION="\"4.32.0beta3\"" ../../../Common/StringToInt.cpp
g++ -O2 -Wall -c -I ../../../ -D_FILE_OFFSET_BITS=64 -DPACKAGE_VERSION="\"4.32.0beta3\"" ../../../Common/MyVector.cpp
gcc -O2 -Wall -c -I ../../../ -D_FILE_OFFSET_BITS=64 -DPACKAGE_VERSION="\"4.32.0beta3\"" ../../../../C/7zCrc.c
gcc -O2 -Wall -c -I ../../../ -D_FILE_OFFSET_BITS=64 -DPACKAGE_VERSION="\"4.32.0beta3\"" ../../../../C/Alloc.c
gcc -O2 -Wall -c -I ../../../ -D_FILE_OFFSET_BITS=64 -DPACKAGE_VERSION="\"4.32.0beta3\"" ../../../../C/Bra86.c
gcc -O2 -Wall -c -I ../../../ -D_FILE_OFFSET_BITS=64 -DPACKAGE_VERSION="\"4.32.0beta3\"" ../../../../C/LzFind.c
gcc -O2 -Wall -c -I ../../../ -D_FILE_OFFSET_BITS=64 -DPACKAGE_VERSION="\"4.32.0beta3\"" ../../../../C/LzmaDec.c
gcc -O2 -Wall -c -I ../../../ -D_FILE_OFFSET_BITS=64 -DPACKAGE_VERSION="\"4.32.0beta3\"" ../../../../C/LzmaEnc.c
../../../../C/LzmaEnc.c: In function 'LzmaEnc_Alloc':
../../../../C/LzmaEnc.c:1922:8: warning: variable 'btMode' set but not used [-Wunused-but-set-variable]
   Bool btMode;
        ^
gcc -O2 -Wall -c -I ../../../ -D_FILE_OFFSET_BITS=64 -DPACKAGE_VERSION="\"4.32.0beta3\"" ../../../../C/LzmaUtil/Lzma86Dec.c
gcc -O2 -Wall -c -I ../../../ -D_FILE_OFFSET_BITS=64 -DPACKAGE_VERSION="\"4.32.0beta3\"" ../../../../C/LzmaUtil/Lzma86Enc.c
g++ -O2 -Wall -o lzma_alone  LzmaAlone.o LzmaBench.o LzmaBenchCon.o LzmaDecoder.o LzmaEncoder.o InBuffer.o OutBuffer.o FileStreams.o StreamUtils.o C_FileIO.o CommandLineParser.o CRC.o IntToString.o MyString.o StringConvert.o StringToInt.o MyVector.o 7zCrc.o Alloc.o Bra86.o LzFind.o LzmaDec.o LzmaEnc.o Lzma86Dec.o Lzma86Enc.o  -lm 
g++ -O2 -Wall -c -I ../../../ -D_FILE_OFFSET_BITS=64 -DPACKAGE_VERSION="\"4.32.0beta3\"" lzmp.cpp
lzmp.cpp:112:1: warning: deprecated conversion from string constant to 'wchar_t*' [-Wwrite-strings]
 };
 ^
lzmp.cpp:112:1: warning: deprecated conversion from string constant to 'wchar_t*' [-Wwrite-strings]
lzmp.cpp:112:1: warning: deprecated conversion from string constant to 'wchar_t*' [-Wwrite-strings]
lzmp.cpp:112:1: warning: deprecated conversion from string constant to 'wchar_t*' [-Wwrite-strings]
lzmp.cpp:112:1: warning: deprecated conversion from string constant to 'wchar_t*' [-Wwrite-strings]
lzmp.cpp:112:1: warning: deprecated conversion from string constant to 'wchar_t*' [-Wwrite-strings]
lzmp.cpp:112:1: warning: deprecated conversion from string constant to 'wchar_t*' [-Wwrite-strings]
lzmp.cpp:112:1: warning: deprecated conversion from string constant to 'wchar_t*' [-Wwrite-strings]
lzmp.cpp:112:1: warning: deprecated conversion from string constant to 'wchar_t*' [-Wwrite-strings]
lzmp.cpp:123:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
 };
 ^
lzmp.cpp:123:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
lzmp.cpp:123:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
lzmp.cpp:123:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
lzmp.cpp: In function 'short int lzma::str2int(const char*, const int&, const int&)':
lzmp.cpp:236:51: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   throw ArgumentException("Invalid integer option");
                                                   ^
lzmp.cpp:239:51: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   throw ArgumentException("Invalid integer option");
                                                   ^
lzmp.cpp: In function 'void lzma::parse_options(int, char**, stringVector&)':
lzmp.cpp:352:31: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
     throw ArgumentException("");
                               ^
lzmp.cpp: In function 'void lzma::set_encoder_properties(NCompress::NLzma::CEncoder*, lzma::lzma_option&)':
lzmp.cpp:399:47: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   throw Exception("SetCoderProperties() error");
                                               ^
lzmp.cpp: In function 'void lzma::encode(NCompress::NLzma::CEncoder*, CMyComPtr<ISequentialInStream>, CMyComPtr<ISequentialOutStream>, lzma::lzma_option, UInt64)':
lzmp.cpp:416:48: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    throw Exception("Write error while encoding");
                                                ^
lzmp.cpp:422:43: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   throw Exception("Cannot allocate memory");
                                           ^
lzmp.cpp: In function 'void lzma::decode(NCompress::NLzma::CDecoder*, CMyComPtr<ISequentialInStream>, CMyComPtr<ISequentialOutStream>)':
lzmp.cpp:440:31: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   throw Exception("Read error");
                               ^
lzmp.cpp:442:31: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   throw Exception("Read error");
                               ^
lzmp.cpp:444:49: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   throw Exception("SetDecoderProperties() error");
                                                 ^
lzmp.cpp:451:32: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    throw Exception("Read error");
                                ^
lzmp.cpp:453:32: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    throw Exception("Read error");
                                ^
lzmp.cpp:459:34: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   throw Exception("Decoder error");
                                  ^
lzmp.cpp: In function 'std::__cxx11::string lzma::replace_extension(std::__cxx11::string)':
lzmp.cpp:543:7: warning: variable 'found_replacement' set but not used [-Wunused-but-set-variable]
  bool found_replacement = false;
       ^
lzmp.cpp: In function 'int main(int, char**)':
lzmp.cpp:665:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i = 0; i < filenames.size(); i++) {
                    ^
lzmp.cpp:841:8: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
    int ret = 0;
        ^
In file included from lzmp.cpp:70:0:
lzma_version.h: At global scope:
lzma_version.h:13:20: warning: 'LZMA_SDK_COPYRIGHT_INFO' defined but not used [-Wunused-variable]
 static const char *LZMA_SDK_COPYRIGHT_INFO =
                    ^
lzma_version.h:19:20: warning: 'LZMA_UTILS_VERSION_STRING' defined but not used [-Wunused-variable]
 static const char *LZMA_UTILS_VERSION_STRING = PACKAGE_VERSION;
                    ^
lzma_version.h:21:20: warning: 'LZMA_UTILS_COPYRIGHT_STRING' defined but not used [-Wunused-variable]
 static const char *LZMA_UTILS_COPYRIGHT_STRING =
                    ^
lzma_version.h:24:20: warning: 'LZMA_UTILS_COPYRIGHT_INFO' defined but not used [-Wunused-variable]
 static const char *LZMA_UTILS_COPYRIGHT_INFO =
                    ^
g++ -O2 -Wall -o lzma  C_FileIO.o CRC.o Alloc.o FileStreams.o StreamUtils.o InBuffer.o OutBuffer.o LzmaDecoder.o StringConvert.o StringToInt.o LzmaEncoder.o LzmaDec.o LzmaEnc.o LzFind.o 7zCrc.o lzmp.o -lm
make[4]: Leaving directory '/home/bastian/ledebot/source/build_dir/host/lzma-4.65/CPP/7zip/Compress/LZMA_Alone'
