Code Monkey home page Code Monkey logo

Comments (6)

mtelka avatar mtelka commented on June 19, 2024

I see the same test failure even with libsndfile 1.1.0.

from libsndfile.

evpobr avatar evpobr commented on June 19, 2024

Hi @mtelka . Strange seek fail, can you make clean and test again?

@arthurt , any ideas?

from libsndfile.

mtelka avatar mtelka commented on June 19, 2024

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.

mtelka avatar mtelka commented on June 19, 2024

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.

mtelka avatar mtelka commented on June 19, 2024

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.

mtelka avatar mtelka commented on June 19, 2024

The problem was caused by mpg123: OpenIndiana/oi-userland#13868

from libsndfile.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.