{"action":"created","issue":{"url":"https://api.github.com/repos/msharov/ustl/issues/24","labels_url":"https://api.github.com/repos/msharov/ustl/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/msharov/ustl/issues/24/comments","events_url":"https://api.github.com/repos/msharov/ustl/issues/24/events","html_url":"https://github.com/msharov/ustl/issues/24","id":125058938,"number":24,"title":"Can't build ustl on OS X Yosemite","user":{"login":"mingodad","id":462618,"avatar_url":"https://avatars.githubusercontent.com/u/462618?v=3","gravatar_id":"","url":"https://api.github.com/users/mingodad","html_url":"https://github.com/mingodad","followers_url":"https://api.github.com/users/mingodad/followers","following_url":"https://api.github.com/users/mingodad/following{/other_user}","gists_url":"https://api.github.com/users/mingodad/gists{/gist_id}","starred_url":"https://api.github.com/users/mingodad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mingodad/subscriptions","organizations_url":"https://api.github.com/users/mingodad/orgs","repos_url":"https://api.github.com/users/mingodad/repos","events_url":"https://api.github.com/users/mingodad/events{/privacy}","received_events_url":"https://api.github.com/users/mingodad/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-01-05T21:48:57Z","updated_at":"2016-01-06T17:58:59Z","closed_at":"2016-01-06T16:25:06Z","body":"Hello !\r\nI'm trying to build ustl on OS X Yosemite and the configure script do not give any error but the generated files are not completely transformed and it doesn't compile:\r\n```\r\n################ Build options #######################################\r\n\r\nNAME\t\t:= ustl\r\nMAJOR\t\t:= 2\r\nMINOR\t\t:= 2\r\n\r\n#DEBUG\t\t:= 1\r\nBUILD_SHARED\t:= 1\r\n#BUILD_STATIC\t:= 1\r\nNOLIBSTDCPP\t:= 1\r\n\r\n################ Programs ############################################\r\n\r\nCXX\t\t:= g++\r\nLD\t\t:= g++\r\nAR\t\t:= ar\r\nRANLIB\t\t:= ranlib\r\nDOXYGEN\t\t:= doxygen\r\nINSTALL\t\t:= install\r\n\r\nINSTALLDATA\t:= ${INSTALL} -D -p -m 644\r\nINSTALLLIB\t:= ${INSTALLDATA}\r\nRMPATH\t\t:= rmdir -p --ignore-fail-on-non-empty\r\n\r\n################ Destination #########################################\r\n\r\nINCDIR\t\t:= /usr/local/include\r\nLIBDIR\t\t:= /usr/local/lib\r\n\r\n################ Compiler options ####################################\r\n\r\nWARNOPTS\t:= -Wall -Wextra -Woverloaded-virtual -Wpointer-arith\\\r\n\t\t-Wshadow -Wredundant-decls -Wcast-qual -Wno-long-double\r\nTGTOPTS\t\t:= @PROCESSOR_OPTS@ @CUSTOMINCDIR@\r\nINLINEOPTS\t:= @INLINE_OPTS@\r\n\r\nCXXFLAGS\t:= ${WARNOPTS} ${TGTOPTS} -fPIC\r\nLDFLAGS\t\t:= @CUSTOMLIBDIR@\r\nLIBS\t\t:=\r\nifdef DEBUG\r\n    CXXFLAGS\t+= -O0 -g\r\n    LDFLAGS\t+= -rdynamic\r\nelse\r\n    CXXFLAGS\t+= -Os -g0 -DNDEBUG=1 -fomit-frame-pointer ${INLINEOPTS}\r\n    LDFLAGS\t+= -s -Wl,-gc-sections\r\nendif\r\nifdef NOLIBSTDCPP\r\n    LD\t\t:= /usr/bin/gcc\r\n    STAL_LIBS\t:= @libsupc++@ @libgcc_eh@ @libSystemStubs@\r\n    LIBS\t:= ${STAL_LIBS}\r\nendif\r\nBUILDDIR\t:= /tmp/xxxx/make/${NAME}\r\nO\t\t:= .o/\r\n\r\nslib_lnk\t= lib$1.dylib\r\nslib_son\t= lib$1.dylib.${MAJOR}\r\nslib_tgt\t= lib$1.dylib.${MAJOR}.${MINOR}\r\nslib_flags\t= -Wl,-single_module -compatibility_version 1 -current_version 1 -install_name $1 -Wl,-Y,1455 -dynamiclib -mmacosx-version-min=10.4\r\n\r\n```\r\nOutput of config.sed:\r\n```\r\ncat config.sed \r\ns/ \\?@INLINE_OPTS@//g\r\ns/ \\?@libgcc_eh@//g\r\ns/#undef \\(HAVE_LONG_LONG\\)/#define \\1 1/g\r\ns/#undef \\(SIZE_OF_LONG_LONG\\)/#define \\1 8/g\r\ns/#undef \\(SIZE_T_IS_LONG\\)/#define \\1 1/g\r\ns/#undef \\(HAVE_VECTOR_EXTENSIONS\\)/#define \\1 1/g\r\ns/@BYTE_ORDER@/LITTLE_ENDIAN/g\r\ns/#undef \\(RETSIGTYPE\\)/#define \\1 void/g\r\ns/#undef const/\\/\\* #define const \\*\\//g\r\ns/#undef inline/\\/\\* #define inline __inline \\*\\//g\r\ns/#undef off_t/\\/\\* typedef long off_t; \\*\\//g\r\ns/#undef size_t/\\/\\* typedef long size_t; \\*\\//g\r\ns/#undef \\(SIZE_OF_CHAR\\)/#define \\1 1/g\r\ns/#undef \\(SIZE_OF_SHORT\\)/#define \\1 2/g\r\ns/#undef \\(SIZE_OF_INT\\)/#define \\1 4/g\r\ns/#undef \\(SIZE_OF_LONG\\)/#define \\1 8/g\r\ns/#undef \\(SIZE_OF_POINTER\\)/#define \\1 8/g\r\ns/#undef \\(SIZE_OF_SIZE_T\\)/#define \\1 8/g\r\ns/#undef \\(LSTAT_FOLLOWS_SLASHED_SYMLINK\\)/#define \\1 1/g\r\ns/ \\?@PROCESSOR_OPTS@/ -std=c++11 -march=native/g\r\ns/#undef \\(HAVE_THREE_CHAR_TYPES\\)/#define \\1 1/g\r\ns/ \\?@libgcc_eh@//g\r\n\ts/@SYSWARNS@/-Wno-long-double/g\r\n\ts/lib$1.so/lib$1.dylib/g\r\n\ts/lib$1.so.${MAJOR}.${MINOR}.${BUILD}/lib$1.${MAJOR}.${MINOR}.${BUILD}.dylib/g\r\n\ts/lib$1.so.${MAJOR}.${MINOR}/lib$1.${MAJOR}.${MINOR}.dylib/g\r\n\ts/lib$1.so.${MAJOR}/lib$1.${MAJOR}.dylib/g\r\n\ts/@SHBLDFL@/-Wl,-single_module -compatibility_version 1 -current_version 1 -install_name $1 -Wl,-Y,1455 -dynamiclib -mmacosx-version-min=10.4/g\r\ns/#undef \\(SIZE_OF_BOOL\\)/#define \\1 SIZE_OF_LONG/g\r\ns/ \\?-mfpmath=sse//g\r\ns/#define \\(HAVE_STRSIGNAL\\) 1/#undef \\1/g\r\ns/@prefix@/\\/usr\\/local/g\r\ns/@bindir@/\\/usr\\/local\\/bin/g\r\ns/@datadir@/\\/usr\\/local\\/share/g\r\ns/@sysconfdir@/\\/usr\\/local\\/etc/g\r\ns/@localstatedir@/\\/usr\\/local\\/var/g\r\ns/@includedir@/\\/usr\\/local\\/include/g\r\ns/@oldincludedir@/\\/usr\\/include/g\r\ns/@docdir@/\\/usr\\/local\\/share\\/doc\\/ustl/g\r\ns/@libdir@/\\/usr\\/local\\/lib/g\r\ns/@localedir@/\\/locale/g\r\ns/@mandir@/\\/man/g\r\ns/@builddir@/\\/tmp\\/mingo\\/make/g\r\ns/@gccincludedir@/\\/Applications\\/Xcode.app\\/Contents\\/Developer\\/Toolchains\\/XcodeDefault.xctoolchain\\/usr\\/bin\\/..\\/lib\\/clang\\/6.1.0\\/include/g\r\ns/@gcclibdir@/\\/Applications\\/Xcode.app\\/Contents\\/Developer\\/Toolchains\\/XcodeDefault.xctoolchain\\/usr\\/bin\\/..\\/lib\\/clang\\/6.1.0\\/lib/g\r\ns/@customincdir@/\\/usr\\/local\\/include/g\r\ns/@customlibdir@/\\/usr\\/local\\/lib/g\r\ns/ \\?@CUSTOMINCDIR@//g;s/ \\?@CUSTOMLIBDIR@//g\r\ns/#undef \\(HAVE_ASSERT_H\\)/#define \\1 1/\r\ns/#undef \\(HAVE_CTYPE_H\\)/#define \\1 1/\r\ns/#undef \\(HAVE_ERRNO_H\\)/#define \\1 1/\r\ns/#undef \\(HAVE_FCNTL_H\\)/#define \\1 1/\r\ns/#undef \\(HAVE_FLOAT_H\\)/#define \\1 1/\r\ns/#undef \\(HAVE_INTTYPES_H\\)/#define \\1 1/\r\ns/#undef \\(HAVE_LIMITS_H\\)/#define \\1 1/\r\ns/#undef \\(HAVE_STDIO_H\\)/#define \\1 1/\r\ns/#undef \\(HAVE_LOCALE_H\\)/#define \\1 1/\r\ns/#undef \\(HAVE_ALLOCA_H\\)/#define \\1 1/\r\ns/#undef \\(HAVE_SIGNAL_H\\)/#define \\1 1/\r\ns/#undef \\(HAVE_STDARG_H\\)/#define \\1 1/\r\ns/#undef \\(HAVE_STDDEF_H\\)/#define \\1 1/\r\ns/#undef \\(HAVE_SYS_STAT_H\\)/#define \\1 1/\r\ns/#undef \\(HAVE_SYS_TYPES_H\\)/#define \\1 1/\r\ns/#undef \\(HAVE_STDINT_H\\)/#define \\1 1/\r\ns/#undef \\(HAVE_STDLIB_H\\)/#define \\1 1/\r\ns/#undef \\(HAVE_STRING_H\\)/#define \\1 1/\r\ns/#undef \\(HAVE_TIME_H\\)/#define \\1 1/\r\ns/#undef \\(HAVE_UNISTD_H\\)/#define \\1 1/\r\ns/#undef \\(HAVE_MATH_H\\)/#define \\1 1/\r\ns/#undef \\(HAVE_STDLIB_H\\)/#define \\1 1/\r\ns/#undef \\(HAVE_SYS_MMAN_H\\)/#define \\1 1/\r\ns/#undef \\(HAVE_EXECINFO_H\\)/#define \\1 1/\r\ns/ \\?@libsupc++@//g\r\ns/ \\?@libgcc_eh@//g\r\ns/ \\?@libSystemStubs@//g\r\ns/@CC@/\\/usr\\/bin\\/gcc/g\r\ns/@CC@/gcc/g\r\ns/@CC@/\\/usr\\/bin\\/gcc/g\r\ns/@CC@/clang/g\r\ns/@CC@/\\/usr\\/bin\\/gcc/g\r\ns/@CC@/cc/g\r\ns/@CXX@/g++/g\r\ns/@CXX@/clang++/g\r\ns/@CXX@/c++/g\r\ns/@DOXYGEN@/doxygen/g\r\ns/@LD@/ld/g\r\ns/@AR@/ar/g\r\ns/@RANLIB@/ranlib/g\r\ns/@RANLIB@/touch/g\r\ns/@INSTALL@/install/g\r\ns/@CC@/gcc/g\r\ns/@CC@/clang/g\r\ns/@CC@/cc/g\r\ns/@CXX@/g++/g\r\ns/@CXX@/clang++/g\r\ns/@CXX@/c++/g\r\ns/@DOXYGEN@/doxygen/g\r\ns/@LD@/ld/g\r\ns/@AR@/ar/g\r\ns/@RANLIB@/ranlib/g\r\ns/@RANLIB@/touch/g\r\ns/@INSTALL@/install/g\r\ns/ \\?@CXXFLAGS@//g\r\ns/ \\?@LDFLAGS@//g\r\ns/@PKG_NAME@/ustl/g\r\ns/@PKG_VERSION@/0x220/g\r\ns/@PKG_VERSTR@/v2.2-20-ge808197/g\r\ns/@PKG_STRING@/ustl v2.2-20-ge808197/g\r\ns/@PKG_UNAME@/USTL/g\r\ns/@PKG_BUGREPORT@/Mike Sharov <msharov@users.sourceforge.net>/g\r\ns/@PKG_MAJOR@/2/g\r\ns/@PKG_MINOR@/2/g\r\n```\r\nThe compiler:\r\n```\r\ngcc -v\r\nConfigured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1\r\nApple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)\r\nTarget: x86_64-apple-darwin14.5.0\r\nThread model: posix\r\n```\r\nCheers !"},"comment":{"url":"https://api.github.com/repos/msharov/ustl/issues/comments/169404722","html_url":"https://github.com/msharov/ustl/issues/24#issuecomment-169404722","issue_url":"https://api.github.com/repos/msharov/ustl/issues/24","id":169404722,"user":{"login":"mingodad","id":462618,"avatar_url":"https://avatars.githubusercontent.com/u/462618?v=3","gravatar_id":"","url":"https://api.github.com/users/mingodad","html_url":"https://github.com/mingodad","followers_url":"https://api.github.com/users/mingodad/followers","following_url":"https://api.github.com/users/mingodad/following{/other_user}","gists_url":"https://api.github.com/users/mingodad/gists{/gist_id}","starred_url":"https://api.github.com/users/mingodad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mingodad/subscriptions","organizations_url":"https://api.github.com/users/mingodad/orgs","repos_url":"https://api.github.com/users/mingodad/repos","events_url":"https://api.github.com/users/mingodad/events{/privacy}","received_events_url":"https://api.github.com/users/mingodad/received_events","type":"User","site_admin":false},"created_at":"2016-01-06T17:58:59Z","updated_at":"2016-01-06T17:58:59Z","body":"After some manual edits:\r\n```\r\nmake\r\n    Compiling bktrace.cc ...\r\n    Compiling cmemlink.cc ...\r\n    Compiling fstream.cc ...\r\n    Compiling memblock.cc ...\r\n    Compiling memlink.cc ...\r\n    Compiling mistream.cc ...\r\n    Compiling ofstream.cc ...\r\n    Compiling sistream.cc ...\r\n    Compiling sostream.cc ...\r\n    Compiling ualgobase.cc ...\r\nualgobase.cc:43:25: warning: unused function 'stosv' [-Wunused-function]\r\ntemplate <> inline void stosv (uint8_t*& p, size_t n, uint8_t v)\r\n                        ^\r\n1 warning generated.\r\n    Compiling ubitset.cc ...\r\n    Compiling uexception.cc ...\r\n    Compiling unew.cc ...\r\n    Compiling ustdxept.cc ...\r\n    Compiling ustring.cc ...\r\nLinking libustl.dylib.2.2 ...\r\nUndefined symbols for architecture x86_64:\r\n  \"__Unwind_Resume\", referenced from:\r\n      ustl::cmemlink::write_file(char const*, int) const in cmemlink.o\r\n      ustl::fstream::fstream(char const*, unsigned int) in fstream.o\r\n      ustl::fstream::fstream(int, char const*) in fstream.o\r\n      ustl::memblock::memblock(void const*, unsigned long) in memblock.o\r\n      ustl::memblock::memblock(unsigned long) in memblock.o\r\n      ustl::memblock::memblock(unsigned long) in memblock.o\r\n      ustl::memblock::memblock(ustl::cmemlink const&) in memblock.o\r\n      ...\r\n  \"std::terminate()\", referenced from:\r\n      ___clang_call_terminate in bktrace.o\r\n      ___clang_call_terminate in fstream.o\r\n      ___clang_call_terminate in memblock.o\r\n      ___clang_call_terminate in ofstream.o\r\n      ___clang_call_terminate in sostream.o\r\n      ___clang_call_terminate in uexception.o\r\n      ___clang_call_terminate in ustdxept.o\r\n      ...\r\n  \"typeinfo for char const*\", referenced from:\r\n      ustl::stream_bounds_exception::read(ustl::istream&) in ustdxept.o\r\n      ustl::stream_bounds_exception::write(ustl::ostream&) const in ustdxept.o\r\n  \"typeinfo for char\", referenced from:\r\n      ustl::istringstream::skip_delimiters() in sistream.o\r\n      ustl::istringstream::iread(bool&) in sistream.o\r\n      ustl::istringstream::iread(ustl::string&) in sistream.o\r\n      ustl::string::read(ustl::istream&) in ustring.o\r\n  \"typeinfo for unsigned char\", referenced from:\r\n      ustl::ostringstream::iwrite(unsigned char) in sostream.o\r\n  \"typeinfo for int\", referenced from:\r\n      ustl::system_error::read(ustl::istream&) in ustdxept.o\r\n      ustl::system_error::write(ustl::ostream&) const in ustdxept.o\r\n  \"typeinfo for unsigned int\", referenced from:\r\n      ustl::CBacktrace::read(ustl::istream&) in bktrace.o\r\n      ustl::CBacktrace::write(ustl::ostream&) const in bktrace.o\r\n      ustl::cmemlink::write(ustl::ostream&) const in cmemlink.o\r\n      ustl::memblock::read(ustl::istream&) in memblock.o\r\n      ustl::memlink::read(ustl::istream&) in memlink.o\r\n      ustl::exception::read(ustl::istream&) in uexception.o\r\n      ustl::exception::write(ustl::ostream&) const in uexception.o\r\n      ...\r\n  \"typeinfo for unsigned long\", referenced from:\r\n      std::bad_alloc::read(ustl::istream&) in uexception.o\r\n      std::bad_alloc::write(ustl::ostream&) const in uexception.o\r\n      ustl::stream_bounds_exception::read(ustl::istream&) in ustdxept.o\r\n      ustl::stream_bounds_exception::write(ustl::ostream&) const in ustdxept.o\r\n  \"vtable for __cxxabiv1::__class_type_info\", referenced from:\r\n      typeinfo for ustl::cmemlink in fstream.o\r\n      typeinfo for ustl::cmemlink in memblock.o\r\n      typeinfo for ustl::cmemlink in mistream.o\r\n      typeinfo for ustl::ios_base in mistream.o\r\n      typeinfo for ustl::exception in uexception.o\r\n  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.\r\n  \"vtable for __cxxabiv1::__si_class_type_info\", referenced from:\r\n      typeinfo for ustl::memlink in fstream.o\r\n      typeinfo for ustl::memblock in memblock.o\r\n      typeinfo for ustl::memlink in memblock.o\r\n      typeinfo for ustl::logic_error in memlink.o\r\n      typeinfo for ustl::length_error in memlink.o\r\n      typeinfo for ustl::memlink in mistream.o\r\n      typeinfo for ustl::ifstream in ofstream.o\r\n      ...\r\n  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.\r\n  \"vtable for __cxxabiv1::__vmi_class_type_info\", referenced from:\r\n      typeinfo for ustl::istream in mistream.o\r\n      typeinfo for ustl::ostream in mistream.o\r\n  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.\r\n  \"___cxa_allocate_exception\", referenced from:\r\n      ustl::cmemlink::link(void const*, unsigned long) in cmemlink.o\r\n      ustl::fstream::set_and_throw(unsigned int, char const*) in fstream.o\r\n      ustl::fstream::readsome(void*, long long) in fstream.o\r\n      ustl::fstream::write(void const*, long long) in fstream.o\r\n      ustl::fstream::stat(stat&) const in fstream.o\r\n      ustl::memblock::reserve(unsigned long, bool) in memblock.o\r\n      ustl::memblock::shrink_to_fit() in memblock.o\r\n      ...\r\n  \"___cxa_begin_catch\", referenced from:\r\n      ___clang_call_terminate in bktrace.o\r\n      ___clang_call_terminate in fstream.o\r\n      ___clang_call_terminate in memblock.o\r\n      ustl::ofstream::~ofstream() in ofstream.o\r\n      ___clang_call_terminate in ofstream.o\r\n      ___clang_call_terminate in sostream.o\r\n      ustl::exception::info(ustl::string&, char const*) const in uexception.o\r\n      ...\r\n  \"___cxa_end_catch\", referenced from:\r\n      ustl::ofstream::~ofstream() in ofstream.o\r\n      ustl::exception::info(ustl::string&, char const*) const in uexception.o\r\n      ustl::exception::text_write(ustl::ostringstream&) const in uexception.o\r\n      std::bad_alloc::info(ustl::string&, char const*) const in uexception.o\r\n      ustl::error_message::error_message(char const*) in ustdxept.o\r\n      ustl::error_message::info(ustl::string&, char const*) const in ustdxept.o\r\n      ustl::file_exception::info(ustl::string&, char const*) const in ustdxept.o\r\n      ...\r\n  \"___cxa_throw\", referenced from:\r\n      ustl::cmemlink::link(void const*, unsigned long) in cmemlink.o\r\n      ustl::fstream::set_and_throw(unsigned int, char const*) in fstream.o\r\n      ustl::fstream::readsome(void*, long long) in fstream.o\r\n      ustl::fstream::write(void const*, long long) in fstream.o\r\n      ustl::fstream::stat(stat&) const in fstream.o\r\n      ustl::memblock::reserve(unsigned long, bool) in memblock.o\r\n      ustl::memblock::shrink_to_fit() in memblock.o\r\n      ...\r\n  \"___gxx_personality_v0\", referenced from:\r\n      ustl::CBacktrace::CBacktrace() in bktrace.o\r\n      ustl::CBacktrace::GetSymbols() in bktrace.o\r\n      Dwarf Exception Unwind Info (__eh_frame) in bktrace.o\r\n      ustl::cmemlink::write_file(char const*, int) const in cmemlink.o\r\n      Dwarf Exception Unwind Info (__eh_frame) in cmemlink.o\r\n      ustl::fstream::set_nonblock(bool) in fstream.o\r\n      Dwarf Exception Unwind Info (__eh_frame) in fstream.o\r\n      ...\r\nld: symbol(s) not found for architecture x86_64\r\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\r\nmake: *** [.o/libustl.dylib.2.2] Error 1\r\n```"}}