mpg123 does not build on Mac OS 10.6 (Snow Leopard)
Brought to you by:
sobukus
It was reported at in the MacPorts Bugtracker (http://trac.macports.org/ticket/20964) that mpg123 does not build on Snow Leopard.
The build log can be found at http://trac.macports.org/attachment/ticket/20964/mpg123.log.
I can not debug or test this since my dear (but old) iBook G4 is not supported by Snow Leopard. (PPC is not supported any more.)
This works. I had to pass "-with-cpu=i386_fpu" to configure as otherwise there was a problem with an MMX lib:
ld: absolute addressing (perhaps -mdynamic-no-pic) used in _dct64_MMX from .libs/dct64_mmx.o not allowed in slidable image. Use '-read_only_relocs suppress' to enable text relocs
collect2: ld returned 1 exit status
My guess is that I should be passing different args to configure. I could not figure out how to tell configure to not use MMX without saying "-with-cpu=i386_fpu".
Email me if you want me to test anything, dan@roscigno.com
$ tar xjf mpg123-1.9.0.tar.bz2
$ export CFLAGS="-arch i386 -m32"
$ ./configure --with-cpu=i386_fpu
$ make
$ sudo make install
This works without specifying the CPU. I think it all boils down to adding a stanza to specify the location of the Xcode install and forcing 32 bit.
Edit configure:
19637a19638,19641
> i386-apple-darwin10*)
> ADD_CFLAGS="$ADD_CFLAGS -mmacosx-version-min=10.5 -isysroot /Developer/SDKs/MacOSX10.5.sdk"
> ADD_LDFLAGS="$ADD_LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -Wl,-read_only_relocs,suppress"
> ;;
export CFLAGS="-arch i386 -m32"
./configure
make
Hm, we had some macos fixing... could you report if the 1.10.0 version works for you?
I assume we got that settled now.