Homebrew / homebrew-core

🍻 Default formulae for the missing package manager for macOS (or Linux)
https://brew.sh
BSD 2-Clause "Simplified" License
13.74k stars 12.43k forks source link

Lib tiff formula is broken #4661

Closed stephane-lb closed 8 years ago

stephane-lb commented 8 years ago

Hi,

Sorry to re-open this one but I did that :

cd $(brew --prefix) && git fetch && git reset --hard origin/master && cd $(brew --prefix)/Library/Taps/homebrew/homebrew-core && git fetch && git reset --hard origin/master && brew update 

and i just got this error :

Stephane-lb@Arcadia /usr/local                                                                                                                                            [18:49:48] 
> $ brew install openimageio                                                                                                                                        [±master ✓]
==> Installing openimageio from homebrew/science
==> Installing dependencies for homebrew/science/openimageio: libtiff, little-cms2, opencolorio, openjpeg, webp, opencv
==> Installing homebrew/science/openimageio dependency: libtiff
==> Using the sandbox
==> Downloading http://download.osgeo.org/libtiff/tiff-4.0.6.tar.gz
######################################################################## 100.0%
==> Downloading https://mirrors.ocf.berkeley.edu/debian/pool/main/t/tiff/tiff_4.0.6-2.debian.tar.xz
######################################################################## 100.0%
==> Patching
==> Applying patches/01-CVE-2015-8665_and_CVE-2015-8683.patch
patching file ChangeLog
patching file libtiff/tif_getimage.c
==> Applying patches/02-fix_potential_out-of-bound_writes_in_decode_functions.patch
patching file ChangeLog
patching file libtiff/tif_luv.c
==> Applying patches/03-fix_potential_out-of-bound_write_in_NeXTDecode.patch
patching file ChangeLog
patching file libtiff/tif_next.c
==> Applying patches/04-CVE-2016-5314_CVE-2016-5316_CVE-2016-5320_CVE-2016-5875.patch
patching file ChangeLog
patching file libtiff/tif_pixarlog.c
==> Applying patches/05-CVE-2016-6223.patch
patching file ChangeLog
patching file libtiff/tif_read.c
==> Applying patches/06-CVE-2016-5321.patch
patching file ChangeLog
patching file tools/tiffcrop.c
==> Applying patches/07-CVE-2016-5323.patch
patching file ChangeLog
patching file tools/tiffcrop.c
==> ./configure --prefix=/usr/local/Cellar/libtiff/4.0.6_2 --without-x --with-jpeg-include-dir=/usr/local/opt/jpeg/include --with-jpeg-lib-dir=/usr/local/opt/jpeg/lib --disable
==> make install
Last 15 lines from /Users/Stephane-lb/Library/Logs/Homebrew/libtiff/02.make:
      ___clang_call_terminate in tif_stream.o
      std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::__put_character_sequence<char, std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char const*, unsigned long) in tif_stream.o
  "___cxa_end_catch", referenced from:
      std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::__put_character_sequence<char, std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char const*, unsigned long) in tif_stream.o
  "___gxx_personality_v0", referenced from:
      TIFFStreamOpen(char const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) in tif_stream.o
      _tiffosSeekProc(void*, unsigned long, int) in tif_stream.o
      _tiffosSizeProc(void*) in tif_stream.o
      std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::__put_character_sequence<char, std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char const*, unsigned long) in tif_stream.o
      std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> > std::__1::__pad_and_output<char, std::__1::char_traits<char> >(std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> >, char const*, char const*, char const*, std::__1::ios_base&, char) in tif_stream.o
      Dwarf Exception Unwind Info (__eh_frame) in tif_stream.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [libtiffxx.la] Error 1
make: *** [install-recursive] Error 1

Do you have any idea of what it could be ?

For more information that's the gist : https://gist.github.com/stephane-lb/9218177f94b1897e6837467cef301d85

Thanks for your precious help,

Stephane-lb

stephane-lb commented 8 years ago

Thanks @DomT4, the answer was :