Homebrew / legacy-homebrew

💀 The former home of Homebrew/homebrew (deprecated)
https://brew.sh
26.96k stars 11.34k forks source link

Wall of compilation errors when installing ffmpeg #2267

Closed asbjornu closed 14 years ago

asbjornu commented 14 years ago

Trying to install ffmpeg yields the following wall of compilation errors:

libswscale/swscale.o -c -o libswscale/swscale.o libswscale/swscale.c
libswscale/swscale.c:135: error: conflicting type qualifiers for ‘ff_dither4’
libswscale/swscale_internal.h:447: error: previous declaration of ‘ff_dither4’ was here
libswscale/swscale.c:135: error: expected ‘,’ or ‘;’ before ‘[’ token
libswscale/swscale.c:139: error: conflicting type qualifiers for ‘ff_dither8’
libswscale/swscale_internal.h:448: error: previous declaration of ‘ff_dither8’ was here
libswscale/swscale.c:139: error: expected ‘,’ or ‘;’ before ‘[’ token
libswscale/swscale.c:173: error: expected ‘,’ or ‘;’ before ‘[’ token
libswscale/swscale.c:182: error: expected ‘,’ or ‘;’ before ‘[’ token
libswscale/swscale.c:187: error: expected ‘,’ or ‘;’ before ‘[’ token
libswscale/swscale.c:192: error: expected ‘,’ or ‘;’ before ‘[’ token
libswscale/swscale.c:199: error: expected ‘,’ or ‘;’ before ‘[’ token
libswscale/swscale.c:210: error: expected ‘,’ or ‘;’ before ‘[’ token
libswscale/swscale.c:222: error: expected ‘,’ or ‘;’ before ‘[’ token
libswscale/swscale.c: In function ‘yuv2packedXinC’:
libswscale/swscale.c:895: error: subscripted value is neither array nor pointer
libswscale/swscale.c:895: error: subscripted value is neither array nor pointer
libswscale/swscale.c:895: error: subscripted value is neither array nor pointer
libswscale/swscale.c:895: error: subscripted value is neither array nor pointer
libswscale/swscale.c:895: error: subscripted value is neither array nor pointer
libswscale/swscale.c:895: error: subscripted value is neither array nor pointer
libswscale/swscale.c:895: error: subscripted value is neither array nor pointer
libswscale/swscale.c:895: error: subscripted value is neither array nor pointer
.... snip thousands of lines ....
libswscale/swscale.c:1481: error: ‘PIX_FMT_BGR444LE’ undeclared (first use in this function)
libswscale/swscale.c:1482: error: ‘PIX_FMT_RGB444BE’ undeclared (first use in this function)
libswscale/swscale.c:1482: error: ‘PIX_FMT_RGB444LE’ undeclared (first use in this function)
libswscale/swscale.c: In function ‘ff_get_unscaled_swscale’:
libswscale/swscale.c:1709: error: ‘PIX_FMT_RGB444BE’ undeclared (first use in this function)
libswscale/swscale.c:1709: error: ‘PIX_FMT_RGB444LE’ undeclared (first use in this function)
libswscale/swscale.c:1709: error: ‘PIX_FMT_BGR444BE’ undeclared (first use in this function)
libswscale/swscale.c:1709: error: ‘PIX_FMT_BGR444LE’ undeclared (first use in this function)
make: *** [libswscale/swscale.o] Error 1
make: *** Waiting for unfinished jobs....
http://github.com/mxcl/homebrew/blob/master/Library/Formula/ffmpeg.rb#L16
==> Environment
HOMEBREW_VERSION: 0.5
HEAD: 44a7327425267f957cbc401c827b6ddd4b2d1699
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_CACHE: /Users/asbjorn/Library/Caches/Homebrew
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew
Hardware: dual-core 64-bit penryn
OS X: 10.6.4
Kernel Architecture: i386
Ruby: 1.8.7-174
GCC-4.2: build 5664
LLVM: build 2326
MacPorts or Fink? false
Exit status: 2
adamv commented 14 years ago

Please update to Homebrew 0.7 (latest) first.

asbjornu commented 14 years ago

I'd love to, but issue #2266 is kind of blocking my way. I'll report back here as soon as Homebrew is upgraded successfully.