Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-2881

Linker error when building Mesos with unbundled dependencies

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.23.0
    • None
    • None

    Description

      When configuring mesos with unbundled dependencies (for use with Mesos Modules), the build breaks due to a link error for the mesos-docker-executor target.

      bin/bash ../libtool  --tag=CXX   --mode=link g++ -pthread -O2 -Wno-unused-local-typedefs -Wno-maybe-uninitialized -std=c++11 -Wl,--as-needed -L/usr/lib -L/usr/local/lib -o mesos-docker-executor docker/mesos_docker_executor-executor.o libmesos.la -lsasl2 -lsvn_delta-1 -lsvn_subr-1 -lapr-1 -lcurl -lz  -lrt
      libtool: link: g++ -pthread -O2 -Wno-unused-local-typedefs -Wno-maybe-uninitialized -std=c++11 -Wl,--as-needed -o .libs/mesos-docker-executor docker/mesos_docker_executor-executor.o  -L/usr/lib -L/usr/local/lib ./.libs/libmesos.so -lsasl2 /usr/lib/x86_64-linux-gnu/libsvn_delta-1.so /usr/lib/x86_64-linux-gnu/libsvn_subr-1.so /usr/lib/x86_64-linux-gnu/libapr-1.so /usr/lib/x86_64-linux-gnu/libcurl-nss.so -lz -lrt -pthread
      /usr/bin/ld: docker/mesos_docker_executor-executor.o: undefined reference to symbol '_ZN6google4base21CheckOpMessageBuilderD1Ev'
      //usr/lib/x86_64-linux-gnu/libglog.so.0: error adding symbols: DSO missing from command line
      collect2: error: ld returned 1 exit status
      make[2]: *** [mesos-docker-executor] Error 1
      make[2]: Leaving directory `/home/niklas/mesos/build/src'
      make[1]: *** [check] Error 2
      make[1]: Leaving directory `/home/niklas/mesos/build/src'
      make: *** [check-recursive] Error 1
      
      -lglog -lprotobuf
      

      are missing from the above and works fine, if done manually:

      $ /bin/bash ../libtool  --tag=CXX   --mode=link g++ -pthread -O2 -Wno-unused-local-typedefs -Wno-maybe-uninitialized -std=c++11 -Wl,--as-needed -L/usr/lib -L/usr/local/lib -o mesos-docker-executor docker/mesos_docker_executor-executor.o libmesos.la -lsasl2 -lsvn_delta-1 -lsvn_subr-1 -lapr-1 -lcurl -lz  -lrt -lglog -lprotobuf
      libtool: link: g++ -pthread -O2 -Wno-unused-local-typedefs -Wno-maybe-uninitialized -std=c++11 -Wl,--as-needed -o .libs/mesos-docker-executor docker/mesos_docker_executor-executor.o  -L/usr/lib -L/usr/local/lib ./.libs/libmesos.so -lsasl2 /usr/lib/x86_64-linux-gnu/libsvn_delta-1.so /usr/lib/x86_64-linux-gnu/libsvn_subr-1.so /usr/lib/x86_64-linux-gnu/libapr-1.so /usr/lib/x86_64-linux-gnu/libcurl-nss.so -lz -lrt -lglog -lprotobuf -pthread
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            nnielsen Niklas Quarfot Nielsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: