Skip to content

Instantly share code, notes, and snippets.

@2bits
Created March 4, 2012 06:58
Show Gist options
  • Save 2bits/1971078 to your computer and use it in GitHub Desktop.
Save 2bits/1971078 to your computer and use it in GitHub Desktop.
adm-2.6 r7745 missing symbols link error with clang on osx due to 'inline' and stricter C99
Linking CXX shared library libADM_ae_twolame.dylib
cd /tmp/homebrew-avidemux3-2.6-Srs6/buildPlugCor/ADM_audioEncoders/twolame && /usr/local/Cellar/cmake/2.8.7/bin/cmake -E cmake_link_script CMakeFiles/ADM_ae_twolame.dir/link.txt --verbose=1
/usr/bin/clang++ -pipe -march=native -Xclang -target-feature -Xclang -aes -Qunused-arguments -O3 -shared -L/usr/local/Cellar/gettext/0.18.1.1/lib -o libADM_ae_twolame.dylib -install_name /tmp/homebrew-avidemux3-2.6-Srs6/buildPlugCor/ADM_audioEncoders/twolame/libADM_ae_twolame.dylib CMakeFiles/ADM_ae_twolame.dir/audioencoder_twolame.cpp.o -L/usr/local/Cellar/avidemux3/2.6/lib ADM_libtwolame/libADM_libtwolame.a -lADM_core6 -lADM_coreUI6 -lADM_coreAudio6 -lADM_coreAudioEncoder6 -lADM_coreUtils6
Undefined symbols for architecture x86_64:
"_buffer_putbits", referenced from:
_encode_frame in libADM_libtwolame.a(twolame.c.o)
_write_header in libADM_libtwolame.a(encode.c.o)
_write_bit_alloc in libADM_libtwolame.a(encode.c.o)
_write_scalefactors in libADM_libtwolame.a(encode.c.o)
_write_samples in libADM_libtwolame.a(encode.c.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [ADM_audioEncoders/twolame/libADM_ae_twolame.dylib] Error 1
make[1]: *** [ADM_audioEncoders/twolame/CMakeFiles/ADM_ae_twolame.dir/all] Error 2
@nieder
Copy link

nieder commented Sep 6, 2012

Hello,

Were you ever able to find a fix for this error? I'm trying to build avidemux for Fink and I'm stuck on this same failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment