Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#271 asm optimizations fail on OS X

1.3.0
closed-fixed
Josh Coalson
6
2013-08-20
2007-05-01
Anonymous
No

This is Mac OS X 10.4.9 on an Intel Core Duo

I downloaded 1.1.14, did a configure;make and the resulting binary fails with the following message:

dyld: Symbol not found: _FLAC__lpc_restore_signal_asm_ia32
Referenced from: /Users/.../src/libFLAC/.libs/libFLAC.8.dylib
Expected in: flat namespace

I built by disabling asm optimizations.

Discussion

  • Josh Coalson
    Josh Coalson
    2007-05-04

    • priority: 5 --> 6
    • assigned_to: nobody --> jcoalson
    • status: open --> open-accepted
     
  • Logged In: NO

    as of 1.2.1 I get the following 10.4.10 with ./configure;make

    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/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 -lm -install_name /usr/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

    built without asm optimizations

     
  • Ralph Giles
    Ralph Giles
    2013-08-20

    • status: open-accepted --> closed-fixed
    • Group: --> 1.3.0
     
  • Ralph Giles
    Ralph Giles
    2013-08-20

    I believe this is fixed in 1.3.0. Follow up on the flac-dev list if you still have problems with the new release.