mxcl/homebrew — Issue #10551: OS X 10.7.3 upgrade ffmpeg 0.10 error
Author: ZoomQuiet
Created: 2012-02-28 02:58:50+00:00
State: open

$ brew upgrade ffmpeg
fail as::
...
Undefined symbols for architecture x86_64:
"_MM_FIX_0_707106781", referenced from:
_filter in vf_fspp.o
"_MM_FIX_0_541196100", referenced from:
_filter in vf_fspp.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [libavfilter/libavfilter.2.dylib] Error 1
make: *** Waiting for unfinished jobs....
==> Exit Status: 2
http://github.com/mxcl/homebrew/blob/master/Library/Formula/ffmpeg.rb#L79
==> Environment
HOMEBREW_VERSION: 0.8.1
HEAD: e088818a13be14f7652b1347485fcf24b7525866
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
Hardware: 8-core 64-bit sandybridge
OS X: 10.7.3
Kernel Architecture: x86_64
...

==> Build Flags
CC: /usr/bin/llvm-gcc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CXX: /usr/bin/llvm-g++ => /usr/llvm-gcc-4.2/bin/llvm-g++-4.2
LD: /usr/bin/llvm-gcc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CFLAGS: -Os -w -pipe -march=core2 -msse4
CXXFLAGS: -Os -w -pipe -march=core2 -msse4
CPPFLAGS: -I/usr/X11/include
LDFLAGS: -L/usr/X11/lib
MAKEFLAGS: -j8

Error: Failed executing: make install

so i try as:
$ brew install --use-clang ffmpeg
Warning: ffmpeg already installed
==> Downloading http://ffmpeg.org/releases/ffmpeg-0.10.tar.bz2
File already downloaded in /Users/zoomq/Library/Caches/Homebrew
==> ./configure --prefix=/usr/local/Cellar/ffmpeg/0.10 --enable-shared --enable-gpl --enable-version3 --enable-no
==> make install
Error: The linking step did not complete successfully
The formula built, but is not symlinked into /usr/local
You can try again using `brew link ffmpeg'
Warning: Could not fix install names for /usr/local/Cellar/ffmpeg/0.10/lib/libavcodec.53.60.100.dylib
Warning: Could not fix install names for /usr/local/Cellar/ffmpeg/0.10/lib/libavdevice.53.4.100.dylib
Warning: Could not fix install names for /usr/local/Cellar/ffmpeg/0.10/lib/libavfilter.2.60.100.dylib
Warning: Could not fix install names for /usr/local/Cellar/ffmpeg/0.10/lib/libavformat.53.31.100.dylib
Warning: Could not fix install names for /usr/local/Cellar/ffmpeg/0.10/lib/libavutil.51.34.101.dylib
Warning: Could not fix install names for /usr/local/Cellar/ffmpeg/0.10/lib/libpostproc.52.0.100.dylib
Warning: Could not fix install names for /usr/local/Cellar/ffmpeg/0.10/lib/libswresample.0.6.100.dylib
Warning: Could not fix install names for /usr/local/Cellar/ffmpeg/0.10/lib/libswscale.2.1.100.dylib
==> Summary
/usr/local/Cellar/ffmpeg/0.10: 99 files, 58M, built in 101 seconds

look like installed:
$ ffmpeg --version
ffmpeg version 0.9, Copyright (c) 2000-2011 the FFmpeg developers
built on Jan 7 2012 23:29:16 with clang 2.1 (tags/Apple/clang-163.7.1)
configuration: --prefix=/usr/local/Cellar/ffmpeg/0.9 --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-libfreetype --cc=/usr/bin/clang --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid --disable-ffplay
libavutil 51. 32. 0 / 51. 32. 0
libavcodec 53. 42. 0 / 53. 42. 0
libavformat 53. 24. 0 / 53. 24. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 53. 0 / 2. 53. 0
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0

...

meanning,,, --use-clang need appended into Formula?