Menu

#333 Link of libdefaultmodule fails on OS X because of missing archive members

1.29.x
closed-fixed
nobody
None
5
2022-06-26
2022-03-09
Mykola P
No

Got this error when tried to build mpg123 from source with dummy audio module:

/bin/sh ./libtool  --tag=CC   --mode=link gcc  -O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math  -g -O2   -o src/libout123/modules/libdefaultmodule.la    
libtool: link: ar cr src/libout123/modules/.libs/libdefaultmodule.a 
ar: no archive members specified
usage:  ar -d [-TLsv] archive file ...
    ar -m [-TLsv] archive file ...
    ar -m [-abiTLsv] position archive file ...
    ar -p [-TLsv] archive [file ...]
    ar -q [-cTLsv] archive file ...
    ar -r [-cuTLsv] archive file ...
    ar -r [-abciuTLsv] position archive file ...
    ar -t [-TLsv] archive [file ...]
    ar -x [-ouTLsv] archive [file ...]
make: *** [src/libout123/modules/libdefaultmodule.la] Error 1

This scenario is used by the Conan packet manager recipe for mpg123-1.26.4. So I tried previous versions till the 1.27.0 and they are affected (

Steps to reproduce:
./configure --disable-modules --with-audio=dummy && make

Discussion

  • Thomas Orgis

    Thomas Orgis - 2022-03-09

    I confirm that

    Steps to reproduce:
    ./configure --disable-modules --with-audio=dummy && make

    is not trying to link any sources to libdefaultmodule and also fails on
    Linux, in a slightly different way. It is an unusual build, but not
    totally unreasonable, if you just want a plain decoder without actual
    live audio.

    I'll fix it, but not tonight.

     
    👍
    1
  • Thomas Orgis

    Thomas Orgis - 2022-03-10

    OK, fix in trunk is incoming. The workaround is this:

    ./configure --disable-modules --with-audio=dummy --with-default-audio=dummy && make
    

    The dummy output is excluded from the list of outputs to try by default for a usual module build, to give the user an error if no working output is found. Silent dummy would be a surprise, usually.

     
    👍
    1
  • Mykola P

    Mykola P - 2022-03-10

    Thanks a lot, Thomas!

     
  • Thomas Orgis

    Thomas Orgis - 2022-03-10

    Can you motivate the conan receipe to use this form? I don't know when we'll do the next release around here, still pondering a replacement of the HTTP access that enables HTTPS streams.

     
  • Mykola P

    Mykola P - 2022-03-11

    For now Conan repository contains only recipe for version 1.26.4 (which is not affected). So, there is no hurry in creating the recipe for a newer version.

     
  • Thomas Orgis

    Thomas Orgis - 2022-03-11

    Well, it would be better to be explicit withe default module, anyway;-) But of course, please check if the current https://mpg123.org/snapshot works as-is.

     
  • Thomas Orgis

    Thomas Orgis - 2022-06-26
    • status: open --> closed-fixed
     

Log in to post a comment.