Homebrew / legacy-homebrew

šŸ’€ The former home of Homebrew/homebrew (deprecated)
https://brew.sh
26.96k stars 11.35k forks source link

error installing mkvtoolnix #3301

Closed rawsyntax closed 13 years ago

rawsyntax commented 13 years ago

installing on 10.6.4 mid 2009 macbook pro

here's the commandline output āžœ ~ brew install mkvtoolnix ==> Downloading http://www.bunkus.org/videotools/mkvtoolnix/sources/mkvtoolnix-4.3.0.tar.bz2 File already downloaded and cached to /Users/eric/Library/Caches/Homebrew ==> Downloading patches

100.0%

==> Patching patching file build-config.in ==> ./configure --disable-debug --prefix=/usr/local/Cellar/mkvtoolnix/4.3.0 --with-boost-libdir=/usr/local/lib --with-boost-regex=boost_re ==> ./drake -j2 (in /private/tmp/homebrew-mkvtoolnix-4.3.0-KgDO/mkvtoolnix-4.3.0) CXX src/common/common.h GREP doc/guide/en/mkvmerge-gui.hhc GREP doc/guide/zh_CN/mkvmerge-gui.hhc CXX src/merge/cluster_helper.cpp CXX src/merge/debugging.cpp CXX src/merge/libmatroska_extensions.cpp CXX src/merge/mkvmerge.cpp CXX src/merge/output_control.cpp CXX src/merge/pr_generic.cpp CXX src/merge/timecode_factory.cpp CXX src/merge/webm.cpp CXX src/input/flac_common.cpp CXX src/input/r_aac.cpp CXX src/input/r_ac3.cpp CXX src/input/r_asf.cpp CXX src/input/r_avc.cpp CXX src/input/r_avi.cpp CXX src/input/r_cdxa.cpp CXX src/input/r_corepicture.cpp CXX src/input/r_dirac.cpp CXX src/input/r_dts.cpp CXX src/input/r_flac.cpp CXX src/input/r_flv.cpp CXX src/input/r_ivf.cpp CXX src/input/r_matroska.cpp CXX src/input/r_mp3.cpp CXX src/input/r_mpeg_es.cpp CXX src/input/r_mpeg_ps.cpp CXX src/input/r_mpeg_ts.cpp CXX src/input/r_ogm.cpp CXX src/input/r_ogm_flac.cpp CXX src/input/r_pgssup.cpp CXX src/input/r_qtmp4.cpp CXX src/input/r_real.cpp CXX src/input/r_srt.cpp CXX src/input/r_ssa.cpp CXX src/input/r_truehd.cpp CXX src/input/r_tta.cpp CXX src/input/r_usf.cpp CXX src/input/r_vc1.cpp CXX src/input/r_vobbtn.cpp CXX src/input/r_vobsub.cpp CXX src/input/r_wav.cpp CXX src/input/r_wavpack.cpp CXX src/input/subtitles.cpp CXX src/output/p_aac.cpp CXX src/output/p_ac3.cpp CXX src/output/p_avc.cpp CXX src/output/p_dirac.cpp AR src/input/libmtxinput.a CXX src/output/p_dts.cpp RANLIB src/input/libmtxinput.a CXX src/output/p_flac.cpp CXX src/output/p_kate.cpp CXX src/output/p_mp3.cpp CXX src/output/p_mpeg1_2.cpp CXX src/output/p_mpeg4_p10.cpp CXX src/output/p_mpeg4_p2.cpp CXX src/output/p_passthrough.cpp CXX src/output/p_pcm.cpp CXX src/output/p_pgs.cpp CXX src/output/p_realaudio.cpp CXX src/output/p_textsubs.cpp CXX src/output/p_theora.cpp CXX src/output/p_truehd.cpp CXX src/output/p_tta.cpp CXX src/output/p_vc1.cpp CXX src/output/p_video.cpp CXX src/output/p_vobbtn.cpp CXX src/output/p_vobsub.cpp CXX src/output/p_vorbis.cpp CXX src/output/p_vp8.cpp CXX src/output/p_wavpack.cpp CXX src/common/aac.cpp CXX src/common/ac3.cpp AR src/output/libmtxoutput.a RANLIB src/output/libmtxoutput.a CXX src/common/base64.cpp CXX src/common/bitvalue.cpp CXX src/common/checksums.cpp CXX src/common/cli_parser.cpp CXX src/common/command_line.cpp CXX src/common/common.cpp CXX src/common/compression.cpp CXX src/common/debugging.cpp CXX src/common/dirac.cpp CXX src/common/dts.cpp CXX src/common/ebml.cpp CXX src/common/endian.cpp CXX src/common/extern_data.cpp CXX src/common/file_types.cpp CXX src/common/fs_sys_helpers.cpp CXX src/common/hacks.cpp CXX src/common/id3.cpp CXX src/common/iso639.cpp CXX src/common/ivf.cpp CXX src/common/kate.cpp CXX src/common/kax_analyzer.cpp CXX src/common/kax_file.cpp CXX src/common/locale.cpp CXX src/common/locale_string.cpp CXX src/common/math.cpp CXX src/common/memory.cpp CXX src/common/mm_io.cpp CXX src/common/mm_io_win.cpp CXX src/common/mm_multi_file_io.cpp CXX src/common/mm_write_cache_io.cpp CXX src/common/mp3.cpp CXX src/common/mpeg1_2.cpp CXX src/common/mpeg4_p10.cpp CXX src/common/mpeg4_p2.cpp CXX src/common/output.cpp CXX src/common/property_element.cpp CXX src/common/random.cpp CXX src/common/segment_tracks.cpp CXX src/common/segmentinfo.cpp CXX src/common/segmentinfo_parser.cpp CXX src/common/terminal.cpp CXX src/common/theora.cpp CXX src/common/translation.cpp CXX src/common/truehd.cpp CXX src/common/unique_numbers.cpp CXX src/common/vc1.cpp CXX src/common/version.cpp CXX src/common/vint.cpp CXX src/common/wavpack.cpp CXX src/common/webm.cpp CXX src/common/win_itaskbarlist3.cpp CXX src/common/chapters/chapters.cpp CXX src/common/chapters/cue_parser.cpp CXX src/common/chapters/writer.cpp CXX src/common/chapters/xml_parser.cpp CXX src/common/strings/editing.cpp CXX src/common/strings/formatting.cpp CXX src/common/strings/parsing.cpp CXX src/common/strings/utf8.cpp CXX src/common/tags/parser.cpp CXX src/common/tags/tags.cpp CXX src/common/tags/writer.cpp CXX src/common/xml/element_mapping.cpp CXX src/common/xml/element_parser.cpp CXX src/common/xml/element_writer.cpp CXX src/common/xml/xml.cpp CC lib/avilib-0.6.10/avidump.c CC lib/avilib-0.6.10/avilib.c AR src/common/libmtxcommon.a /usr/bin/ranlib: file: src/common/libmtxcommon.a(mm_io_win.o) has no symbols /usr/bin/ranlib: file: src/common/libmtxcommon.a(win_itaskbarlist3.o) has no symbols RANLIB src/common/libmtxcommon.a ranlib: file: src/common/libmtxcommon.a(mm_io_win.o) has no symbols ranlib: file: src/common/libmtxcommon.a(win_itaskbarlist3.o) has no symbols CC lib/avilib-0.6.10/avimisc.c CXX lib/avilib-0.6.10/xio.cpp CC lib/librmff/mb_file_io.c CC lib/librmff/rmff.c AR lib/avilib-0.6.10/libavi.a RANLIB lib/avilib-0.6.10/libavi.a CXX src/mpegparser/CircBuffer.cpp CXX src/mpegparser/M2VParser.cpp AR lib/librmff/librmff.a RANLIB lib/librmff/librmff.a CXX src/mpegparser/MPEGVideoBuffer.cpp CXX src/info/console_ui.cpp AR src/mpegparser/libmpegparser.a RANLIB src/mpegparser/libmpegparser.a LINK src/mkvmerge ld: warning: in /usr/local/lib/libz.dylib, file was built for i386 which is not the architecture being linked (x86_64) Undefined symbols: "inflateInit", referenced from: qtmp4_reader_c::handle_cmvd_atom(qt_atom_t, int) in libmtxinput.a(r_qtmp4.o) zlib_compressor_c::decompress(counted_ptr&) in libmtxcommon.a(compression.o) "_deflateEnd", referenced from: zlib_compressor_c::compress(counted_ptr&) in libmtxcommon.a(compression.o) "_inflateEnd", referenced from: qtmp4_reader_c::handle_cmvd_atom(qt_atom_t, int) in libmtxinput.a(r_qtmp4.o) zlib_compressor_c::decompress(counted_ptr&) in libmtxcommon.a(compression.o) "_deflate", referenced from: zlib_compressor_c::compress(counted_ptr&) in libmtxcommon.a(compression.o) "_inflate", referenced from: qtmp4_reader_c::handle_cmvd_atom(qt_atom_t, int) in libmtxinput.a(r_qtmp4.o) zlib_compressor_c::decompress(counted_ptr&) in libmtxcommon.a(compression.o) "deflateInit", referenced from: zlib_compressor_c::compress(counted_ptr&) in libmtxcommon.a(compression.o) ld: symbol(s) not found collect2: ld returned 1 exit status Exit status: 1

http://github.com/mxcl/homebrew/blob/master/Library/Formula/mkvtoolnix.rb#L25

==> Environment HOMEBREW_VERSION: 0.7.1 HEAD: a24fdd8e9487168873b671e12573be3db09a4cd5 HOMEBREW_PREFIX: /usr/local HOMEBREW_CELLAR: /usr/local/Cellar HOMEBREW_REPOSITORY: /usr/local HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew Hardware: dual-core 64-bit penryn OS X: 10.6.4 Kernel Architecture: x86_64 Ruby: 1.8.7-174 /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby Xcode: 3.2.4 GCC-4.0: build 5494 GCC-4.2: build 5664 LLVM: build 2326 MacPorts or Fink? false X11 installed? true

==> Build Flags CC: /usr/bin/cc => /usr/bin/gcc-4.2 CXX: /usr/bin/c++ => /usr/bin/c++-4.2 LD: /usr/bin/cc => /usr/bin/gcc-4.2 CFLAGS: -O3 -march=core2 -msse4.1 -w -pipe CXXFLAGS: -O3 -march=core2 -msse4.1 -w -pipe MAKEFLAGS: -j2 Error: Failure while executing: ./drake -j2 Please report this bug at http://github.com/mxcl/homebrew/issues

Also try: brew doctor to check your setup for common problems. brew missing to check installed packages for missing deps.

adamv commented 13 years ago

Please edit this to put the build output in a gist, so GitHub doesn't try to auto-format it.

adamv commented 13 years ago

Problem is: ld: warning: in /usr/local/lib/libz.dylib, file was built for i386 which is not the architecture being linked (x86_64)

What does "brew doctor" say?

rawsyntax commented 13 years ago

sorry, jumped the gun here, my issue was that libz wasn't compiled for x86_64 (instead it was i386)

MikeMcQuaid commented 13 years ago

You shouldn't have libz compiled at all, you have a system version. You'll continue to break brews if you compile them with that file existing.