Skip to content

Instantly share code, notes, and snippets.

@ulope
Created April 19, 2014 03:57
Show Gist options
  • Save ulope/11073620 to your computer and use it in GitHub Desktop.
Save ulope/11073620 to your computer and use it in GitHub Desktop.
mosh build error OS X 10.9
Making install in src
Making install in protobufs
GEN userinput.pb.cc
GEN hostinput.pb.cc
GEN transportinstruction.pb.cc
/Applications/Xcode.app/Contents/Developer/usr/bin/make install-am
CXX hostinput.pb.o
CXX transportinstruction.pb.o
CXX userinput.pb.o
AR libmoshprotos.a
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
Making install in util
CXX select.o
CXX locale_utils.o
CXX swrite.o
CXX timestamp.o
CXX pty_compat.o
AR libmoshutil.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libmoshutil.a(pty_compat.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libmoshutil.a(pty_compat.o) has no symbols
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
Making install in crypto
CXX ocb.o
CXX base64.o
CXX crypto.o
AR libmoshcrypto.a
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
Making install in terminal
CXX parseraction.o
CXX parser.o
CXX parserstate.o
CXX terminal.o
CXX terminaldisplay.o
CXX terminaldispatcher.o
CXX terminaldisplayinit.o
CXX terminalframebuffer.o
CXX terminalfunctions.o
CXX terminaluserinput.o
AR libmoshterminal.a
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
Making install in network
CXX network.o
CXX networktransport.o
CXX transportfragment.o
CXX transportsender.o
CXX compressor.o
AR libmoshnetwork.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libmoshnetwork.a(networktransport.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libmoshnetwork.a(transportsender.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libmoshnetwork.a(networktransport.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libmoshnetwork.a(transportsender.o) has no symbols
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
Making install in statesync
CXX completeterminal.o
CXX user.o
AR libmoshstatesync.a
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
Making install in frontend
CXX mosh-client.o
CXX stmclient.o
CXX terminaloverlay.o
CXX mosh-server.o
CXXLD mosh-client
Undefined symbols for architecture x86_64:
"google::protobuf::MessageLite::ParseFromString(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
Network::FragmentAssembly::get_assembly() in libmoshnetwork.a(transportfragment.o)
Network::UserStream::apply_string(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) in libmoshstatesync.a(user.o)
Terminal::Complete::apply_string(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) in libmoshstatesync.a(completeterminal.o)
"google::protobuf::internal::WireFormatLite::WriteBytes(int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, google::protobuf::io::CodedOutputStream*)", referenced from:
TransportBuffers::Instruction::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream*) const in libmoshprotos.a(transportinstruction.pb.o)
HostBuffers::HostBytes::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream*) const in libmoshprotos.a(hostinput.pb.o)
ClientBuffers::Keystroke::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream*) const in libmoshprotos.a(userinput.pb.o)
"google::protobuf::internal::WireFormatLite::ReadBytes(google::protobuf::io::CodedInputStream*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*)", referenced from:
TransportBuffers::Instruction::MergePartialFromCodedStream(google::protobuf::io::CodedInputStream*) in libmoshprotos.a(transportinstruction.pb.o)
HostBuffers::HostBytes::MergePartialFromCodedStream(google::protobuf::io::CodedInputStream*) in libmoshprotos.a(hostinput.pb.o)
ClientBuffers::Keystroke::MergePartialFromCodedStream(google::protobuf::io::CodedInputStream*) in libmoshprotos.a(userinput.pb.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[2]: *** [mosh-client] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1
HOMEBREW_VERSION: 0.9.5
HEAD: 08c1bb897b755bc24330152badeddf16234495db
CPU: 8-core 64-bit ivybridge
OS X: 10.9.2-x86_64
Xcode: 5.1.1
CLT: 5.1.0.0.1.1396320587
X11: 2.7.4 => /opt/X11
$~ brew install -v mosh
==> Downloading http://mosh.mit.edu/mosh-1.2.4.tar.gz
Already downloaded: /Library/Caches/Homebrew/mobile-shell-1.2.4.tar.gz
==> Verifying mobile-shell-1.2.4.tar.gz checksum
tar xf /Library/Caches/Homebrew/mobile-shell-1.2.4.tar.gz
==> ./configure --prefix=/usr/local/Cellar/mobile-shell/1.2.4 --enable-completion
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of clang... gcc3
checking whether we are using the GNU C++ compiler... yes
checking whether clang++ accepts -g... yes
checking dependency style of clang++... gcc3
checking for ranlib... ranlib
checking for protoc... /usr/local/opt/protobuf/bin/protoc
checking for ar... ar
checking the archiver (ar) interface... ar
checking whether C compiler accepts -fno-strict-overflow... yes
checking whether C++ compiler accepts -fno-strict-overflow... yes
checking whether C compiler accepts -D_FORTIFY_SOURCE=2... yes
checking whether C++ compiler accepts -D_FORTIFY_SOURCE=2... yes
checking whether C compiler accepts -fstack-protector-all... yes
checking whether C++ compiler accepts -fstack-protector-all... yes
checking whether C compiler accepts -Wstack-protector... yes
checking whether C++ compiler accepts -Wstack-protector... yes
checking whether C compiler accepts --param ssp-buffer-size=1... yes
checking whether C++ compiler accepts --param ssp-buffer-size=1... yes
checking whether C compiler accepts -fPIE... yes
checking whether C++ compiler accepts -fPIE... yes
checking whether the linker accepts -fPIE -pie... no
checking whether the linker accepts -fPIE -Wl,-pie... yes
checking whether the linker accepts -Wl,-z,relro... no
checking whether C++ compiler accepts -fno-default-inline... no
checking whether C++ compiler accepts -pipe... yes
checking for library containing utempter_remove_record... no
configure: WARNING: Unable to find libutempter; utmp entries will not be made.
checking for library containing compress... -lz
checking for library containing socket... none required
checking for library containing inet_addr... none required
checking how to run the C preprocessor... clang -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for sys/stat.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for unistd.h... (cached) yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking wctype.h usability... yes
checking wctype.h presence... yes
checking for wctype.h... yes
checking pty.h usability... no
checking pty.h presence... no
checking for pty.h... no
checking util.h usability... yes
checking util.h presence... yes
checking for util.h... yes
checking libutil.h usability... no
checking libutil.h presence... no
checking for libutil.h... no
checking paths.h usability... yes
checking paths.h presence... yes
checking for paths.h... yes
checking endian.h usability... no
checking endian.h presence... no
checking for endian.h... no
checking sys/endian.h usability... no
checking sys/endian.h presence... no
checking for sys/endian.h... no
checking utmpx.h usability... yes
checking utmpx.h presence... yes
checking for utmpx.h... yes
checking termio.h usability... no
checking termio.h presence... no
checking for termio.h... no
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for inline... inline
checking for int64_t... yes
checking for pid_t... yes
checking for C/C++ restrict keyword... __restrict
checking for size_t... yes
checking for ssize_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint8_t... yes
checking for uintptr_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking whether mbrtowc and mbstate_t are properly declared... yes
checking for gettimeofday... yes
checking for setrlimit... yes
checking for inet_ntoa... yes
checking for iswprint... yes
checking for memchr... yes
checking for memset... yes
checking for nl_langinfo... yes
checking for posix_memalign... yes
checking for setenv... yes
checking for setlocale... yes
checking for sigaction... yes
checking for socket... yes
checking for strchr... yes
checking for strdup... yes
checking for strncasecmp... yes
checking for strtok... yes
checking for strerror... yes
checking for strtol... yes
checking for wcwidth... yes
checking for cfmakeraw... yes
checking for library containing clock_gettime... no
checking for pkg-config... /usr/local/opt/pkg-config/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for OPENSSL... yes
checking for TINFO... no
checking for TINFO... no
checking curses.h usability... yes
checking curses.h presence... yes
checking for curses.h... yes
checking for main in -ltinfo... no
checking for NcursesW wide-character library... no
checking for Ncurses library... yes
checking for working ncurses/curses.h... no
checking for working ncurses.h... yes
checking whether forkpty is declared... no
checking for forkpty in -lutil... yes
checking whether pipe2(..., O_CLOEXEC) is supported... no
checking whether FD_ISSET() argument is const... yes
checking whether __builtin_bswap64 is declared... no
checking whether __builtin_ctz is declared... no
checking whether mach_absolute_time is declared... yes
checking whether htobe64 is declared... no
checking whether OSSwapHostToBigInt64 is declared... yes
checking whether IP_MTU_DISCOVER is declared... no
checking whether IP_RECVTOS is declared... no
checking whether __STDC_ISO_10646__ is declared... no
configure: WARNING: C library doesn't advertise wchar_t is Unicode (OS X works anyway with workaround).
checking whether IUTF8 is declared... yes
checking for protobuf... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/crypto/Makefile
config.status: creating src/frontend/Makefile
config.status: creating src/network/Makefile
config.status: creating src/protobufs/Makefile
config.status: creating src/statesync/Makefile
config.status: creating src/terminal/Makefile
config.status: creating src/util/Makefile
config.status: creating scripts/Makefile
config.status: creating src/examples/Makefile
config.status: creating src/tests/Makefile
config.status: creating man/Makefile
config.status: creating conf/Makefile
config.status: creating config.h
config.status: executing depfiles commands
configure: === Configuration results ===
configure: Version: 1.2.4
configure: c++ compiler: clang++
configure: Warning CXXFLAGS: -Wall
configure: Picky CXXFLAGS:
configure: Harden CFLAGS: -fno-strict-overflow -D_FORTIFY_SOURCE=2 -fstack-protector-all -Wstack-protector --param ssp-buffer-size=1 -fPIE
configure: =============================
==> make install
Making install in src
Making install in protobufs
GEN userinput.pb.cc
GEN hostinput.pb.cc
GEN transportinstruction.pb.cc
/Applications/Xcode.app/Contents/Developer/usr/bin/make install-am
CXX hostinput.pb.o
CXX transportinstruction.pb.o
CXX userinput.pb.o
AR libmoshprotos.a
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
Making install in util
CXX select.o
CXX locale_utils.o
CXX swrite.o
CXX timestamp.o
CXX pty_compat.o
AR libmoshutil.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libmoshutil.a(pty_compat.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libmoshutil.a(pty_compat.o) has no symbols
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
Making install in crypto
CXX ocb.o
CXX base64.o
CXX crypto.o
AR libmoshcrypto.a
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
Making install in terminal
CXX parseraction.o
CXX parser.o
CXX parserstate.o
CXX terminal.o
CXX terminaldisplay.o
CXX terminaldispatcher.o
CXX terminaldisplayinit.o
CXX terminalframebuffer.o
CXX terminalfunctions.o
CXX terminaluserinput.o
AR libmoshterminal.a
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
Making install in network
CXX network.o
CXX networktransport.o
CXX transportfragment.o
CXX transportsender.o
CXX compressor.o
AR libmoshnetwork.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libmoshnetwork.a(networktransport.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libmoshnetwork.a(transportsender.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libmoshnetwork.a(networktransport.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libmoshnetwork.a(transportsender.o) has no symbols
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
Making install in statesync
CXX completeterminal.o
CXX user.o
AR libmoshstatesync.a
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
Making install in frontend
CXX mosh-client.o
CXX stmclient.o
CXX terminaloverlay.o
CXX mosh-server.o
CXXLD mosh-client
Undefined symbols for architecture x86_64:
"google::protobuf::MessageLite::ParseFromString(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
Network::FragmentAssembly::get_assembly() in libmoshnetwork.a(transportfragment.o)
Network::UserStream::apply_string(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) in libmoshstatesync.a(user.o)
Terminal::Complete::apply_string(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) in libmoshstatesync.a(completeterminal.o)
"google::protobuf::internal::WireFormatLite::WriteBytes(int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, google::protobuf::io::CodedOutputStream*)", referenced from:
TransportBuffers::Instruction::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream*) const in libmoshprotos.a(transportinstruction.pb.o)
HostBuffers::HostBytes::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream*) const in libmoshprotos.a(hostinput.pb.o)
ClientBuffers::Keystroke::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream*) const in libmoshprotos.a(userinput.pb.o)
"google::protobuf::internal::WireFormatLite::ReadBytes(google::protobuf::io::CodedInputStream*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*)", referenced from:
TransportBuffers::Instruction::MergePartialFromCodedStream(google::protobuf::io::CodedInputStream*) in libmoshprotos.a(transportinstruction.pb.o)
HostBuffers::HostBytes::MergePartialFromCodedStream(google::protobuf::io::CodedInputStream*) in libmoshprotos.a(hostinput.pb.o)
ClientBuffers::Keystroke::MergePartialFromCodedStream(google::protobuf::io::CodedInputStream*) in libmoshprotos.a(userinput.pb.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[2]: *** [mosh-client] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1
==> Configuration
HOMEBREW_VERSION: 0.9.5
HEAD: 08c1bb897b755bc24330152badeddf16234495db
CPU: 8-core 64-bit ivybridge
OS X: 10.9.2-x86_64
Xcode: 5.1.1
CLT: 5.1.0.0.1.1396320587
X11: 2.7.4 => /opt/X11
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j8
CMAKE_PREFIX_PATH: /usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_PATH: /usr/local/opt/protobuf/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.9
ACLOCAL_PATH: /usr/local/share/aclocal
PATH: /usr/local/Library/ENV/4.3:/usr/local/opt/pkg-config/bin:/usr/local/opt/protobuf/bin:/usr/bin:/bin:/usr/sbin:/sbin
Error: mobile-shell 1.2.4 did not build
Logs:
/Users/<user>/Library/Logs/Homebrew/mobile-shell/01.configure
/Users/<user>/Library/Logs/Homebrew/mobile-shell/01.configure.cc
/Users/<user>/Library/Logs/Homebrew/mobile-shell/02.make
/Users/<user>/Library/Logs/Homebrew/mobile-shell/02.make.cc
/Users/<user>/Library/Logs/Homebrew/mobile-shell/config.log
These open issues may also help:
mobile-shell fails to build (https://github.com/Homebrew/homebrew/issues/28047)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment