Bug#666340: Compiling wvunpack for large files on 32-bit systems

Frank Lübeck frank.luebeck at math.rwth-aachen.de
Fri Mar 30 08:56:45 UTC 2012


Package: wavpack                         
Version: 4.60.1-1

This is relevant for various Debian/Ubuntu releases.

I noticed that on 32-bit (i386/i686) systems the executable
  wvunpack
only handles .wv files of size about 2 GB. 
I'm using wavpack for compressing 96/32 wav-files of typical audio CD
length. The resulting .wv files sometimes exceed the 2GB limit. 

Using the source package I could recompile wvunpack such that the problem is
resolved for me. But I suggest to change the debian build script such
that wvunpack can deal with large file by default.

Unfortunately, I'm not so familiar with the Debian build details to just
send a patch for the debian/rules file. But here is what I did. 

# on some Ubuntu i686 version
apt-get source wavpack
cd wavpack-*
./configure --enable-mmx CC="gcc -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
make

# and to get a portable binary for various Debian/Ubuntu systems
cd cli
rm wvunpack
make # (to get an idea for the following line)
gcc -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I../include -mmmx -g -O2 -o .libs/wvunpack wvunpack-wvunpack.o wvunpack-utils.o wvunpack-md5.o  ../src/.libs/libwavpack.a -lm -static







More information about the pkg-multimedia-maintainers mailing list