Can't install flac
Ryan Schmidt
ryandesign at macports.org
Wed Oct 10 01:47:17 PDT 2007
On Oct 10, 2007, at 03:23, William Davis wrote:
> On Oct 10, 2007, at 4:03 AM, Hans Mogren wrote:
>
>> I'm having problems installing flac on my MacBook (Intel) running
>> OS X
>> 10.4.10. The output is below.
>>
>> I also tried to manually build flac from source and found out that I
>> needed to include the switch "--disable-asm-optimizations", i.e. "
>> ./configure --disable-asm-optimizations". Has this anything to
>> with my
>> problem installing flac through MacPorts? Or is it something else I'm
>> doing wrong?
>>
>> --8<-----------------------------------------------------------
>>
>> $ sudo port install flac
[snip]
>> gcc -dynamiclib ${wl}-flat_namespace ${wl}-undefined ${wl}suppress -o
>> .libs/libFLAC.8.2.0.dylib .libs/bitmath.o .libs/bitreader.o
>> .libs/bitwriter.o .libs/cpu.o .libs/crc.o .libs/fixed.o .libs/float.o
>> .libs/format.o .libs/lpc.o .libs/md5.o .libs/memory.o
>> .libs/metadata_iterators.o .libs/metadata_object.o .libs/
>> stream_decoder.o
>> .libs/stream_encoder.o .libs/stream_encoder_framing.o .libs/window.o
>> .libs/ogg_decoder_aspect.o .libs/ogg_encoder_aspect.o .libs/
>> ogg_helper.o
>> .libs/ogg_mapping.o .libs/libFLAC.lax/libFLAC-asm.a/bitreader_asm.o
>> .libs/libFLAC.lax/libFLAC-asm.a/cpu_asm.o
>> .libs/libFLAC.lax/libFLAC-asm.a/fixed_asm.o
>> .libs/libFLAC.lax/libFLAC-asm.a/lpc_asm.o
>> .libs/libFLAC.lax/libFLAC-asm.a/stream_encoder_asm.o -L/opt/
>> local/lib
>> -lm /opt/local/lib/libogg.dylib -install_name
>> /opt/local/lib/libFLAC.8.dylib -Wl,-compatibility_version -Wl,11
>> -Wl,-current_version -Wl,11.0
>> ld: .libs/libFLAC.lax/libFLAC-asm.a/bitreader_asm.o has external
>> relocation entries in non-writable section (__TEXT,__text) for
>> symbols:
>> _FLAC__crc16_table
>> _bitreader_read_from_client_
>> /usr/bin/libtool: internal link edit command failed
>> make[4]: *** [libFLAC.la] Error 1
>> make[3]: *** [all-recursive] Error 1
>> make[2]: *** [all-recursive] Error 1
>> make[1]: *** [all-recursive] Error 1
>> make: *** [all] Error 2
>>
>> Error: Status 1 encountered during processing.
>
> I used sudo port edit flac and added your suggestion "--disable-asm-
> optimizations" to the config args.
> it both built and ran. (you may need to deactivate an older
> version before activating 1.2.1.
>
> You should modify the portfile yourself and submited a copy in the
> trac system.
>
> good show! :)
According to
http://wincent.com/knowledge-base/Installing_PAC_
(Perl_Audio_Converter)_on_Mac_OS_X
it is only necessary to disable the assembly optimizations on Intel
Macs, at least in flac 1.1.2. Now I just installed flac 1.1.4_0
successfully on a MacBook Pro. Looks like yves just updated the port
to 1.2.1 yesterday and I hadn't synced. So I synced and tried to
update to 1.2.1_0 and now I got the error reported. Looks like flac
has regressed between 1.1.4 and 1.2.1!
I think I've fixed it for now in r29798, so wait 30 minutes or so,
selfupdate, and then you should be able to install flac on Intel Macs.
More information about the macports-users
mailing list