lzip-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Lzip-bug] building lzip-1.7 with mingw32 fails, with cygwin pass


From: Wolfgang Buechel
Subject: [Lzip-bug] building lzip-1.7 with mingw32 fails, with cygwin pass
Date: Wed, 12 Aug 2009 16:23:35 +0200

Building lzip-1.7 with mingw (gcc-4.4.0) fails with the error message 
at bottom. Building with cygwin (mingw-mode, gcc-4.4.0) passes.

======================================================
Output from mingw:

$ ../source/configure

creating config.status
creating Makefile
VPATH = ../source
prefix = /usr/local
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
datadir = $(prefix)/share
infodir = $(datadir)/info
mandir = $(datadir)/man
sysconfdir = $(prefix)/etc
CC = cc
CXX = c++
CPPFLAGS =
CFLAGS = -Wall -W -O2
CXXFLAGS = -Wall -W -O2
LDFLAGS =
OK. Now you can run make.

$make
c++  -Wall -W -O2 -c -o arg_parser.o ../source/arg_parser.cc
c++  -Wall -W -O2 -c -o decoder.o ../source/decoder.cc
../source/decoder.cc: In member function 'bool 
LZ_decoder::verify_trailer(const Pretty_print&) const
':
../source/decoder.cc:101: warning: unknown conversion type character 
'l' in format
../source/decoder.cc:101: warning: unknown conversion type character 
'l' in format
../source/decoder.cc:101: warning: too many arguments for format
../source/decoder.cc:113: warning: unknown conversion type character 
'l' in format
../source/decoder.cc:113: warning: unknown conversion type character 
'l' in format
../source/decoder.cc:113: warning: too many arguments for format
../source/decoder.cc:119: warning: unknown conversion type character 
'l' in format
../source/decoder.cc:119: warning: unknown conversion type character 
'l' in format
../source/decoder.cc:119: warning: too many arguments for format
c++  -Wall -W -O2 -c -o encoder.o ../source/encoder.cc
c++  -Wall -W -O2 -DPROGVERSION=\"1.7\" -c -o main.o 
../source/main.cc
../source/main.cc: In function 'const char*<unnamed>::format_num(long 
long int, long long int, int)'
:
../source/main.cc:143: warning: unknown conversion type character 'l' 
in format
../source/main.cc:143: warning: format '%s' expects type 'char*', but 
argument 4 has type 'long long
 int'
../source/main.cc:143: warning: too many arguments for format
../source/main.cc: In function 'int<unnamed>::open_instream(const 
std::string&, stat*, <unnamed>::Mo
de, int, bool, bool)':
../source/main.cc:255: error: 'S_ISSOCK' was not declared in this 
scope
../source/main.cc: In function 'bool<unnamed>::open_outstream(bool)':
../source/main.cc:302: error: 'S_IRGRP' was not declared in this 
scope
../source/main.cc:302: error: 'S_IROTH' was not declared in this 
scope
../source/main.cc:304: error: 'S_IRGRP' was not declared in this 
scope
../source/main.cc:304: error: 'S_IROTH' was not declared in this 
scope
../source/main.cc: In function 
'void<unnamed>::close_and_set_permissions(const stat*, int*)':
../source/main.cc:360: error: 'fchmod' was not declared in this scope
../source/main.cc:361: error: 'fchown' was not declared in this scope
../source/main.cc: In function 'int<unnamed>::compress(long long int, 
long long int, <unnamed>::lzma
_options, int, const Pretty_print&, const stat*, int*)':
../source/main.cc:453: warning: unknown conversion type character 'l' 
in format
../source/main.cc:453: warning: unknown conversion type character 'l' 
in format
../source/main.cc:453: warning: too many arguments for format
../source/main.cc: In function 'int<unnamed>::decompress(int, const 
Pretty_print&, bool)':
../source/main.cc:522: warning: unknown conversion type character 'l' 
in format
../source/main.cc:522: warning: too many arguments for format
../source/main.cc:525: warning: unknown conversion type character 'l' 
in format
../source/main.cc:525: warning: too many arguments for format
../source/main.cc: In function 'void<unnamed>::set_signals()':
../source/main.cc:554: error: 'SIGHUP' was not declared in this scope
make: *** [main.o] Error 1

=================================

output from cygwin:

$ ../source/configure

creating config.status
creating Makefile
VPATH = ../source
prefix = /usr/local
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
datadir = $(prefix)/share
infodir = $(datadir)/info
mandir = $(datadir)/man
sysconfdir = $(prefix)/etc
CC = gcc
CXX = g++
CPPFLAGS =
CFLAGS = -Wall -W -O2
CXXFLAGS = -Wall -W -O2
LDFLAGS =
OK. Now you can run make.

$ make
g++  -Wall -W -O2 -c -o arg_parser.o ../source/arg_parser.cc
g++  -Wall -W -O2 -c -o decoder.o ../source/decoder.cc
../source/decoder.cc: In member function `bool 
LZ_decoder::verify_trailer(const
../source/decoder.cc:90: warning: unsigned int format, uint32_t arg 
(arg 3)
../source/decoder.cc:90: warning: unsigned int format, uint32_t arg 
(arg 4)
../source/decoder.cc:119: warning: unsigned int format, uint32_t arg 
(arg 3)
g++  -Wall -W -O2 -c -o encoder.o ../source/encoder.cc
g++  -Wall -W -O2 -DPROGVERSION=\"1.7\" -c -o main.o 
../source/main.cc
g++  -o lzip arg_parser.o decoder.o encoder.o main.o
g++  -Wall -W -O2 -DPROGVERSION=\"1.7\" -c -o lziprecover.o 
../source/lziprecove
g++  -o lziprecover arg_parser.o lziprecover.o

$ make check
testing lzip..........................................
tests completed successfully.

$ make install
if test ! -d /usr/local/share/info ; then install -d 
/usr/local/share/info ; fi
install -p -m 644 ../source/doc/lzip.info 
/usr/local/share/info/lzip.info
install-info --info-dir=/usr/local/share/info 
/usr/local/share/info/lzip.info
if test ! -d /usr/local/share/man/man1 ; then install -d 
/usr/local/share/man/ma
install -p -m 644 ../source/doc/lzdiff.1 
/usr/local/share/man/man1/lzdiff.1
install -p -m 644 ../source/doc/lzgrep.1 
/usr/local/share/man/man1/lzgrep.1
install -p -m 644 ../source/doc/lzip.1 
/usr/local/share/man/man1/lzip.1
install -p -m 644 ../source/doc/lziprecover.1 
/usr/local/share/man/man1/lzipreco
if test ! -d /usr/local/bin ; then install -d /usr/local/bin ; fi
install -p -m 755 ../source/lzdiff /usr/local/bin/lzdiff
install -p -m 755 ../source/lzgrep /usr/local/bin/lzgrep
install -p -m 755 ./lzip /usr/local/bin/lzip
install -p -m 755 ./lziprecover /usr/local/bin/lziprecover

$ lzip --help
Lzip - A data compressor based on the LZMA algorithm.

Usage: lzip [options] [files]

Options:
  -h, --help                 display this help and exit
  -V, --version              output version information and exit
  -b, --member-size=<n>      set member size limit in bytes
  -c, --stdout               send output to standard output
  -d, --decompress           decompress
  -f, --force                overwrite existing output files
  -k, --keep                 keep (don't delete) input files
  -m, --match-length=<n>     set match length limit in bytes [80]
  -o, --output=<file>        if reading stdin, place the output into 
<file>
  -q, --quiet                suppress all messages
  -s, --dictionary-size=<n>  set dictionary size limit in bytes 
[8MiB]
  -S, --volume-size=<n>      set volume size limit in bytes
  -t, --test                 test compressed file integrity
  -v, --verbose              be verbose (a 2nd -v gives more)
  -1 .. -9                   set compression level [default 6]
      --fast                 alias for -1
      --best                 alias for -9
If no file names are given, lzip compresses or decompresses
from standard input to standard output.
Numbers may be followed by a multiplier: k = kB = 10^3 = 1000,
Ki = KiB = 2^10 = 1024, M = 10^6, Mi = 2^20, G = 10^9, Gi = 2^30, 
etc...

Report bugs to address@hidden
Lzip home page: http://www.nongnu.org/lzip/lzip.html


---------------
Wolfgang Buechel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]