Skip to content

Compile fails on Ubuntu 14.04 #13

Closed

Description

@lixiangnlp

/usr/bin/ld: warning: libboost_thread.so.1.59.0, needed by /usr/local/lib/../lib/libfolly.so, may conflict with libboost_thread.so.1.54.0
/usr/bin/ld: warning: libboost_system.so.1.59.0, needed by /usr/local/lib/../lib/libfolly.so, may conflict with libboost_system.so.1.54.0
/usr/bin/ld: ../gmock/src/gmock-build/libgmock.a(gtest-all.cc.o): undefined reference to symbol 'pthread_key_delete@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [bin/AcceptorTest] error 1
make[1]: *** [CMakeFiles/AcceptorTest.dir/all] error 2
make: *** [all] error 2

I can not find the solution for the error.

uname -a:

Linux lixiang-ubuntu 3.16.0-50-generic #67~14.04.1-Ubuntu SMP Fri Oct 2 22:07:51 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Activity

  1. js7222 commented on Nov 10, 2015

    @js7222

    I have the same issue on ubuntu 15.10

  2. js7222 commented on Nov 10, 2015

    @js7222

    I have the same issue on ubuntu 15.04

  3. renanbs commented on Nov 24, 2015

    @renanbs

    Any ideas? I have the same issue with Arch Linux

  4. lixiangnlp commented on Nov 24, 2015

    @lixiangnlp
    Author

    put the option -lpthread at the end of the cxxflags

  5. djwatson commented on Dec 1, 2015

    @djwatson

    should be fixed in recent versions

  6. ghost added a commit that references this issue on Aug 17, 2016
  7. mmlac commented on Dec 9, 2016

    @mmlac

    FYI, it's still an issue when compiling with examples on arch:

    Scanning dependencies of target BroadcastProxy
    [ 33%] Building CXX object CMakeFiles/BroadcastProxy.dir/example/broadcast/BroadcastProxy.cpp.o
    [ 34%] Linking CXX executable bin/BroadcastProxy
    /usr/bin/ld: CMakeFiles/BroadcastProxy.dir/example/broadcast/BroadcastProxy.cpp.o: undefined reference to symbol 'pthread_setname_np@@GLIBC_2.12'
    /usr/lib/libpthread.so.0: error adding symbols: DSO missing from command line
    collect2: error: ld returned 1 exit status
    make[2]: *** [CMakeFiles/BroadcastProxy.dir/build.make:107: bin/BroadcastProxy] Error 1
    make[1]: *** [CMakeFiles/Makefile2:68: CMakeFiles/BroadcastProxy.dir/all] Error 2
    make: *** [Makefile:139: all] Error 2
    

    Builds fine without expamles though, still thought it's worth mentioning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions