[flac-dev] flac 1.3.0pre1 prelease

Erik de Castro Lopo mle+la at mega-nerd.com
Mon Mar 4 02:06:26 PST 2013


Ralph Giles wrote:

> On 13-03-02 3:22 PM, Erik de Castro Lopo wrote:
> 
> >     http://downloads.xiph.org/releases/flac/beta/
> 
> On Mac 10.7.5 Apple clang 4.2, 'make check' fails because BSD and GNU
> coreutils have incompatible format options for 'stat'.
> 
> If I change test/test_compression.sh to use:
> 
>   size=`stat -f "%z" ${fname}`
> 
> The self tests complete without error. Of course that won't work on a
> GNU system. Stack overflow suggests 'wc -c' as a portable version:
> 
>   size=`wc -c <${fname}`
> 
> Which does work on the Mac.

Thanks Ralph, I'll switch to wc.

Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/


More information about the flac-dev mailing list