Comments (6)
I see the same test failure even with libsndfile 1.1.0
.
from libsndfile.
Hi @mtelka . Strange seek fail, can you make clean and test again?
@arthurt , any ideas?
from libsndfile.
Hi @mtelka . Strange seek fail, can you make clean and test again?
That does not help.
It looks like the problem is with 32-bit build (when I build without -m32
all tests pass). Here are full repro steps:
$ rm -rf /tmp/libsndfile
$ mkdir /tmp/libsndfile
$ cd /tmp/libsndfile
$ wget https://github.com/libsndfile/libsndfile/releases/download/1.2.2/libsndfile-1.2.2.tar.xz
$ tar xf libsndfile-1.2.2.tar.xz
$ cd libsndfile-1.2.2/
$ env - PATH=/usr/gcc/10/bin/:/usr/gnu/bin:/usr/bin:/usr/sbin:/sbin CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" ./configure
$ env - PATH=/usr/gcc/10/bin/:/usr/gnu/bin:/usr/bin:/usr/sbin:/sbin CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" gmake check
$
from libsndfile.
I suspect the problem is related to these warnings (there are six such warnings there):
CC src/ALAC/ag_dec.lo
In file included from ./src/sfconfig.h:36,
from ./src/sfendian.h:22,
from src/ALAC/ALACAudioTypes.h:46,
from src/ALAC/ag_dec.c:36:
./src/config.h:374: warning: "_FILE_OFFSET_BITS" redefined
374 | #define _FILE_OFFSET_BITS 64
|
In file included from /usr/include/iso/math_iso.h:32,
from /usr/include/math.h:35,
from src/ALAC/ag_dec.c:29:
/usr/include/sys/feature_tests.h:250: note: this is the location of the previous definition
250 | #define _FILE_OFFSET_BITS 32
|
CC src/ALAC/ag_enc.lo
from libsndfile.
To get rid of warnings I simply defined _FILE_OFFSET_BITS
to 64
on command line, like these:
$ env - PATH=/usr/gcc/10/bin/:/usr/gnu/bin:/usr/bin:/usr/sbin:/sbin CFLAGS="-m32 -D_FILE_OFFSET_BITS=64" CXXFLAGS="-m32 -D_FILE_OFFSET_BITS=64" LDFLAGS="-m32" ./configure
$ env - PATH=/usr/gcc/10/bin/:/usr/gnu/bin:/usr/bin:/usr/sbin:/sbin CFLAGS="-m32 -D_FILE_OFFSET_BITS=64" CXXFLAGS="-m32 -D_FILE_OFFSET_BITS=64" LDFLAGS="-m32" gmake check
This is the supported method how to allow 32-bit apps to access large files for illumos (see the man page).
Now warnings are solved, but test still fails. :-(
from libsndfile.
The problem was caused by mpg123
: OpenIndiana/oi-userland#13868
from libsndfile.
Related Issues (20)
- Libsndfile OGG Page Issue? HOT 3
- libsndfile SF_INFO struct frames field contains wrong value for mp3 file HOT 1
- libsndfile links libmp3lame using an absolute path on macOS HOT 5
- Broken AUTOGEN_SCRIPT path HOT 1
- Segmentation fault at sf_open when using SndfileHandle HOT 1
- sndfile-convert always normalizes files that exceed the `-1..+1` range HOT 1
- Are there any side effects of setting FLAC__stream_encoder_set_streamable_subset to false? HOT 2
- 32-bit FLAC support
- Potential security issues with ALAC code
- sf_set_string() supports a very limited set of strings HOT 1
- Library fail to open some .mp3 file. HOT 1
- Cmake lint error sndfile-info.dir/all] Error 2
- Shared Library build HOT 3
- Reading an Ogg file without EOS reports length as 6.6 million years
- AIFF file from lamedecoder (multichannel MPEG decoder) not decodeable? HOT 1
- What dependencies are required to use libsndfile? HOT 4
- Can't add cue points to existing audio file
- Why not use symbol versioning to link with libc ? HOT 2
- Mac osx 10.13 - cannot build libsndfile HOT 2
- make incomplete, cast discards 'const' qualifier from pointer target type
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libsndfile.