Cargo build throws Undefined symbols for architecture x86_64


#1

os: OSX 10.11.1
rust: rustc 1.5.0-nightly (1210fb9bc 2015-10-23)

I am a rust newbie and trying to build rust-media. I had to update rust-media to work on latest nightly . But running ‘cargo build’ on rust-media/example gives the following error

The full error is at http://pastebin.com/HmKnL1Ti

Any pointers on how to solve this and build rust-media.


Undefined symbols for architecture x86_64:
“std::__1::basic_iostream<char, std::__1::char_traits >::~basic_iostream()”, referenced from:
construction vtable for std::__1::basic_iostream<char, std::__1::char_traits >-in-std::__1::basic_fstream<char, std::__1::char_traits > in libmp4v2.a(File_posix.o)
“non-virtual thunk to std::__1::basic_iostream<char, std::__1::char_traits >::~basic_iostream()”, referenced from:
construction vtable for std::__1::basic_iostream<char, std::__1::char_traits >-in-std::__1::basic_fstream<char, std::__1::char_traits > in libmp4v2.a(File_posix.o)
“non-virtual thunk to std::__1::basic_iostream<char, std::__1::char_traits >::~basic_iostream()”, referenced from:
construction vtable for std::__1::basic_iostream<char, std::__1::char_traits >-in-std::__1::basic_fstream<char, std::__1::char_traits > in libmp4v2.a(File_posix.o)
“non-virtual thunk to std::__1::basic_iostream<char, std::__1::char_traits >::~basic_iostream()”, referenced from:
construction vtable for std::__1::basic_iostream<char, std::__1::char_traits >-in-std::__1::basic_fstream<char, std::__1::char_traits > in libmp4v2.a(File_posix.o)
“std::__1::locale::has_facet(std::__1::locale::id&) const”, referenced from:
std::__1::basic_filebuf<char, std::__1::char_traits >::basic_filebuf() in libmp4v2.a(File_posix.o)
“std::__1::locale::locale(std::__1::locale const&)”, referenced from:
std::__1::basic_filebuf<char, std::__1::char_traits >::basic_filebuf() in libmp4v2.a(File_posix.o)


#2

This looks like an issue with building a C++ library that rust-media depends on. You should file an issue in rust-media’s repository regarding this.