[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Lzip-bug] Can't Compile Lzip
From: |
Antonio Diaz Diaz |
Subject: |
Re: [Lzip-bug] Can't Compile Lzip |
Date: |
Thu, 06 Aug 2015 17:17:23 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.8.1.4) Gecko/20070601 SeaMonkey/1.1.2 |
Hello Bryan,
Bryan Ilaga wrote:
Hello! I'm trying to compile Lzip using MSYS with MinGW 4.8.1. I followed the
instructions carefully but I can't really compile it. I always get an error.
What should I do?
Thanks for reporting this. Your system seems to have two problems:
warning: unknown conversion type character 'l' in format [-Wformat=]
The compiler supports the 'long long int' type, but does not recognize
the 'll' modifier in the printf function, which is somewhat
contradictory. What version of GCC are you using?
Yoy may try something like this with the compiled lzip
lzip -cv file | wc -c
and
lzip -cdvvvv file.lz | wc -c
to verify that printf shows the right sizes.
testing lzip-1.17.........out msg differ: char 50, line 1
-out msg differ: char 55, line 1
-................
tests failed.
make: *** [check] Error 1
This is the Windows 'text mode bug'. Lzip checks that it reports the
message "Bad magic number (file not in lzip format).\n" when commanded
to decompress a file not in lzip format. The problem is that Windows
changes the "\n" to a "\r\n", making the test to fail.
I'll try to find a fix for this, but the rest of the test passed fine.
You should have no problem using lzip-1.17, except maybe because of the
printf problem above.
(Please, next time use a mail program that respects line breaks. Your
message was automatically deleted from the list because it looked like
spam, and I had to edit it to make any sense out of it).
Best regards,
Antonio.