[vlc-devel] link failure on OSX

DC Udacity dcudacity at gmail.com
Sat Jun 27 19:57:08 CEST 2015


Hi there

Build fails on OSX. Updated local checkout.

Built using both single command and steps mentioned in
https://wiki.videolan.org/OSXCompile/

I get this linker error. Possibly building for wrong architectures I
suppose?

Undefined symbols for architecture x86_64:

  "std::basic_ios<char, std::char_traits<char> >::bad() const", referenced
from:

      SidTune::loadFile(char const*, Buffer_sidtt<unsigned char const>&) in
libsidplay2.a(SidTune.o)

      SidTune::saveToOpenFile(std::basic_ofstream<char,
std::char_traits<char> >&, unsigned char const*, unsigned int) in
libsidplay2.a(SidTune.o)

  "std::basic_ios<char, std::char_traits<char> >::operator void*() const",
referenced from:

      SidTune::getFromStdIn() in libsidplay2.a(SidTune.o)

      SidTuneTools::readHex(std::basic_istringstream<char,
std::char_traits<char>, std::allocator<char> >&) in
libsidplay2.a(SidTuneTools.o)

      SidTuneTools::readDec(std::basic_istringstream<char,
std::char_traits<char>, std::allocator<char> >&) in
libsidplay2.a(SidTuneTools.o)

      SidTune::SID_fileSupport(Buffer_sidtt<unsigned char const>&,
Buffer_sidtt<unsigned char const>&) in libsidplay2.a(InfoFile.o)

      SidTune::INFO_fileSupport(Buffer_sidtt<unsigned char const>&,
Buffer_sidtt<unsigned char const>&) in libsidplay2.a(IconInfo.o)

  "std::basic_ios<char, std::char_traits<char> >::operator!() const",
referenced from:

      SidTune::saveC64dataFile(char const*, bool) in
libsidplay2.a(SidTune.o)

      SidTune::saveSIDfile(char const*, bool) in libsidplay2.a(SidTune.o)

      SidTune::savePSIDfile(char const*, bool) in libsidplay2.a(SidTune.o)

      SidTuneTools::readHex(std::basic_istringstream<char,
std::char_traits<char>, std::allocator<char> >&) in
libsidplay2.a(SidTuneTools.o)

      SidTuneTools::readDec(std::basic_istringstream<char,
std::char_traits<char>, std::allocator<char> >&) in
libsidplay2.a(SidTuneTools.o)

      SidTune::SID_fileSupport(Buffer_sidtt<unsigned char const>&,
Buffer_sidtt<unsigned char const>&) in libsidplay2.a(InfoFile.o)

      SidTune::SID_fileSupportSave(std::basic_ofstream<char,
std::char_traits<char> >&) in libsidplay2.a(InfoFile.o)

      ...

  "std::allocator<char>::allocator()", referenced from:

      SidTune::SID_fileSupport(Buffer_sidtt<unsigned char const>&,
Buffer_sidtt<unsigned char const>&) in libsidplay2.a(InfoFile.o)

      SidTune::INFO_fileSupport(Buffer_sidtt<unsigned char const>&,
Buffer_sidtt<unsigned char const>&) in libsidplay2.a(IconInfo.o)

  "std::allocator<char>::~allocator()", referenced from:

      SidTune::SID_fileSupport(Buffer_sidtt<unsigned char const>&,
Buffer_sidtt<unsigned char const>&) in libsidplay2.a(InfoFile.o)

      SidTune::INFO_fileSupport(Buffer_sidtt<unsigned char const>&,
Buffer_sidtt<unsigned char const>&) in libsidplay2.a(IconInfo.o)

  "std::istream::get(char&)", referenced from:

      SidTune::getFromStdIn() in libsidplay2.a(SidTune.o)

  "std::istream::read(char*, long)", referenced from:

      SidTune::loadFile(char const*, Buffer_sidtt<unsigned char const>&) in
libsidplay2.a(SidTune.o)

  "std::istream::seekg(long long, std::_Ios_Seekdir)", referenced from:

      SidTune::loadFile(char const*, Buffer_sidtt<unsigned char const>&) in
libsidplay2.a(SidTune.o)

  "std::istream::tellg()", referenced from:

      SidTune::loadFile(char const*, Buffer_sidtt<unsigned char const>&) in
libsidplay2.a(SidTune.o)

  "std::istream::putback(char)", referenced from:

      SidTuneTools::readHex(std::basic_istringstream<char,
std::char_traits<char>, std::allocator<char> >&) in
libsidplay2.a(SidTuneTools.o)

      SidTuneTools::readDec(std::basic_istringstream<char,
std::char_traits<char>, std::allocator<char> >&) in
libsidplay2.a(SidTuneTools.o)

  "std::ostream::tellp()", referenced from:

      SidTune::saveC64dataFile(char const*, bool) in
libsidplay2.a(SidTune.o)

      SidTune::saveSIDfile(char const*, bool) in libsidplay2.a(SidTune.o)

      SidTune::savePSIDfile(char const*, bool) in libsidplay2.a(SidTune.o)

  "std::ostream::write(char const*, long)", referenced from:

      SidTune::saveToOpenFile(std::basic_ofstream<char,
std::char_traits<char> >&, unsigned char const*, unsigned int) in
libsidplay2.a(SidTune.o)

      SidTune::saveC64dataFile(char const*, bool) in
libsidplay2.a(SidTune.o)

      SidTune::PSID_fileSupportSave(std::basic_ofstream<char,
std::char_traits<char> >&, unsigned char const*) in libsidplay2.a(PSID.o)

  "std::ostream::operator<<(std::ostream& (*)(std::ostream&))", referenced
from:

      SidTune::SID_fileSupportSave(std::basic_ofstream<char,
std::char_traits<char> >&) in libsidplay2.a(InfoFile.o)

  "std::ostream::operator<<(std::ios_base& (*)(std::ios_base&))",
referenced from:

      SidTune::SID_fileSupportSave(std::basic_ofstream<char,
std::char_traits<char> >&) in libsidplay2.a(InfoFile.o)

  "std::ostream::operator<<(int)", referenced from:

      SidTune::SID_fileSupportSave(std::basic_ofstream<char,
std::char_traits<char> >&) in libsidplay2.a(InfoFile.o)

  "std::ostream::operator<<(unsigned int)", referenced from:

      SidTune::SID_fileSupportSave(std::basic_ofstream<char,
std::char_traits<char> >&) in libsidplay2.a(InfoFile.o)

  "std::ostream::operator<<(unsigned short)", referenced from:

      SidTune::SID_fileSupportSave(std::basic_ofstream<char,
std::char_traits<char> >&) in libsidplay2.a(InfoFile.o)

  "std::basic_string<char, std::char_traits<char>, std::allocator<char>
>::basic_string(char const*, unsigned long, std::allocator<char> const&)",
referenced from:

      SidTune::SID_fileSupport(Buffer_sidtt<unsigned char const>&,
Buffer_sidtt<unsigned char const>&) in libsidplay2.a(InfoFile.o)

      SidTune::INFO_fileSupport(Buffer_sidtt<unsigned char const>&,
Buffer_sidtt<unsigned char const>&) in libsidplay2.a(IconInfo.o)

  "std::basic_string<char, std::char_traits<char>, std::allocator<char>
>::~basic_string()", referenced from:

      SidTune::SID_fileSupport(Buffer_sidtt<unsigned char const>&,
Buffer_sidtt<unsigned char const>&) in libsidplay2.a(InfoFile.o)

      SidTune::INFO_fileSupport(Buffer_sidtt<unsigned char const>&,
Buffer_sidtt<unsigned char const>&) in libsidplay2.a(IconInfo.o)

  "std::basic_fstream<char, std::char_traits<char> >::close()", referenced
from:

      SidTune::loadFile(char const*, Buffer_sidtt<unsigned char const>&) in
libsidplay2.a(SidTune.o)

  "std::basic_fstream<char, std::char_traits<char> >::is_open()",
referenced from:

      SidTune::loadFile(char const*, Buffer_sidtt<unsigned char const>&) in
libsidplay2.a(SidTune.o)

  "std::basic_fstream<char, std::char_traits<char> >::basic_fstream(char
const*, std::_Ios_Openmode)", referenced from:

      SidTune::loadFile(char const*, Buffer_sidtt<unsigned char const>&) in
libsidplay2.a(SidTune.o)

  "std::basic_fstream<char, std::char_traits<char> >::~basic_fstream()",
referenced from:

      SidTune::loadFile(char const*, Buffer_sidtt<unsigned char const>&) in
libsidplay2.a(SidTune.o)

  "std::basic_ofstream<char, std::char_traits<char> >::close()", referenced
from:

      SidTune::saveC64dataFile(char const*, bool) in
libsidplay2.a(SidTune.o)

      SidTune::saveSIDfile(char const*, bool) in libsidplay2.a(SidTune.o)

      SidTune::savePSIDfile(char const*, bool) in libsidplay2.a(SidTune.o)

  "std::basic_ofstream<char, std::char_traits<char> >::basic_ofstream(char
const*, std::_Ios_Openmode)", referenced from:

      SidTune::saveC64dataFile(char const*, bool) in
libsidplay2.a(SidTune.o)

      SidTune::saveSIDfile(char const*, bool) in libsidplay2.a(SidTune.o)

      SidTune::savePSIDfile(char const*, bool) in libsidplay2.a(SidTune.o)

  "std::basic_ofstream<char, std::char_traits<char> >::~basic_ofstream()",
referenced from:

      SidTune::saveC64dataFile(char const*, bool) in
libsidplay2.a(SidTune.o)

      SidTune::saveSIDfile(char const*, bool) in libsidplay2.a(SidTune.o)

      SidTune::savePSIDfile(char const*, bool) in libsidplay2.a(SidTune.o)

  "std::basic_istringstream<char, std::char_traits<char>,
std::allocator<char> >::basic_istringstream(std::string const&,
std::_Ios_Openmode)", referenced from:

      SidTune::SID_fileSupport(Buffer_sidtt<unsigned char const>&,
Buffer_sidtt<unsigned char const>&) in libsidplay2.a(InfoFile.o)

      SidTune::INFO_fileSupport(Buffer_sidtt<unsigned char const>&,
Buffer_sidtt<unsigned char const>&) in libsidplay2.a(IconInfo.o)

  "std::basic_istringstream<char, std::char_traits<char>,
std::allocator<char> >::~basic_istringstream()", referenced from:

      SidTune::SID_fileSupport(Buffer_sidtt<unsigned char const>&,
Buffer_sidtt<unsigned char const>&) in libsidplay2.a(InfoFile.o)

      SidTune::INFO_fileSupport(Buffer_sidtt<unsigned char const>&,
Buffer_sidtt<unsigned char const>&) in libsidplay2.a(IconInfo.o)

  "std::ios_base::Init::Init()", referenced from:

      ___cxx_global_var_init in libsidplay2.a(SidTune.o)

      ___cxx_global_var_init in libsidplay2.a(InfoFile.o)

  "std::ios_base::Init::~Init()", referenced from:

      ___cxx_global_var_init in libsidplay2.a(SidTune.o)

      ___cxx_global_var_init in libsidplay2.a(InfoFile.o)

  "std::__throw_length_error(char const*)", referenced from:

      std::vector<sidemu*, std::allocator<sidemu*>
>::_M_insert_aux(__gnu_cxx::__normal_iterator<sidemu**,
std::vector<sidemu*, std::allocator<sidemu*> > >, sidemu* const&) in
libresid-builder.a(resid-builder.o)

  "std::cin", referenced from:

      SidTune::getFromStdIn() in libsidplay2.a(SidTune.o)

  "std::basic_ostream<char, std::char_traits<char> >& std::endl<char,
std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char>
>&)", referenced from:

      SidTune::SID_fileSupportSave(std::basic_ofstream<char,
std::char_traits<char> >&) in libsidplay2.a(InfoFile.o)

  "std::basic_ostream<char, std::char_traits<char> >&
std::operator<<<std::char_traits<char> >(std::basic_ostream<char,
std::char_traits<char> >&, char const*)", referenced from:

      SidTune::SID_fileSupportSave(std::basic_ofstream<char,
std::char_traits<char> >&) in libsidplay2.a(InfoFile.o)

  "std::basic_ostream<char, std::char_traits<char> >&
std::operator<<<std::char_traits<char> >(std::basic_ostream<char,
std::char_traits<char> >&, char)", referenced from:

      SidTune::SID_fileSupportSave(std::basic_ofstream<char,
std::char_traits<char> >&) in libsidplay2.a(InfoFile.o)

  "std::basic_ostream<char, std::char_traits<char> >& std::operator<<<char,
std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char>
>&, std::_Setw)", referenced from:

      SidTune::SID_fileSupportSave(std::basic_ofstream<char,
std::char_traits<char> >&) in libsidplay2.a(InfoFile.o)

  "std::basic_ostream<char, std::char_traits<char> >& std::operator<<<char,
std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char>
>&, std::_Setfill<char>)", referenced from:

      SidTune::SID_fileSupportSave(std::basic_ofstream<char,
std::char_traits<char> >&) in libsidplay2.a(InfoFile.o)

  CCLD     libavi_plugin.la

  "std::basic_istream<char, std::char_traits<char> >& std::operator>><char,
std::char_traits<char> >(std::basic_istream<char, std::char_traits<char>
>&, char&)", referenced from:

      SidTuneTools::readHex(std::basic_istringstream<char,
std::char_traits<char>, std::allocator<char> >&) in
libsidplay2.a(SidTuneTools.o)

      SidTuneTools::readDec(std::basic_istringstream<char,
std::char_traits<char>, std::allocator<char> >&) in
libsidplay2.a(SidTuneTools.o)

      SidTuneTools::skipToEqu(std::basic_istringstream<char,
std::char_traits<char>, std::allocator<char> >&) in
libsidplay2.a(SidTuneTools.o)

      SidTune::SID_fileSupport(Buffer_sidtt<unsigned char const>&,
Buffer_sidtt<unsigned char const>&) in libsidplay2.a(InfoFile.o)

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see
invocation)

make[4]: *** [libsid_plugin.la] Error 1

make[4]: *** Waiting for unfinished jobs....

make[3]: *** [all-recursive] Error 1

make[2]: *** [all] Error 2

make[1]: *** [all-recursive] Error 1

make: *** [all] Error 2


Any help is appreciated.


Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20150627/3d7cfa41/attachment.html>


More information about the vlc-devel mailing list