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

Build Error with gcc 4.7.3

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 0.19.1
    • 0.20.0
    • build
    • None

    Description

          • Warning: Linking the shared library libmesos.la against the
          • static library ../3rdparty/leveldb/libleveldb.a is not portable!
            libtool: link: g++ fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../lib64/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/crtbeginS.o -Wl,whole-archive ./.libs/libmesos_no_3rdparty.a ../3rdparty/libprocess/.libs/libprocess.a ./.libs/libjava.a -Wl,-no-whole-archive ../3rdparty/libprocess/3rdparty/protobuf-2.5.0/src/.libs/libprotobuf.a ../3rdparty/libprocess/3rdparty/glog-0.3.3/.libs/libglog.a ../3rdparty/leveldb/libleveldb.a ../3rdparty/zookeeper-3.4.5/src/c/.libs/libzookeeper_mt.a /temp1/mesos-0.19.1/build/3rdparty/libprocess/3rdparty/glog-0.3.3/.libs/libglog.a -lpthread /temp1/mesos-0.19.1/build/3rdparty/libprocess/3rdparty/libev-4.15/.libs/libev.a /usr/lib64/libsasl2.so -ldl -lresolv -lcurl -lz -lrt -lunwind -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../lib64/crtn.o -pthread -Wl,-soname -Wl,libmesos-0.19.1.so -o .libs/libmesos-0.19.1.so
            libtool: link: (cd ".libs" && rm -f "libmesos.so" && ln -s "libmesos-0.19.1.so" "libmesos.so")
            libtool: link: ( cd ".libs" && rm -f "libmesos.la" && ln -s "../libmesos.la" "libmesos.la" )
            g++ -DPACKAGE_NAME=\"mesos\" -DPACKAGE_TARNAME=\"mesos\" -DPACKAGE_VERSION=\"0.19.1\" -DPACKAGE_STRING=\"mesos\ 0.19.1\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"mesos\" -DVERSION=\"0.19.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_PTHREAD=1 -DMESOS_HAS_JAVA=1 -DHAVE_PYTHON=\"2.7\" -DMESOS_HAS_PYTHON=1 -DHAVE_LIBZ=1 -DHAVE_LIBCURL=1 -DHAVE_LIBSASL2=1 -I. -I../../src -Wall -Werror -DLIBDIR=\"/usr/local/lib\" -DPKGLIBEXECDIR=\"/usr/local/libexec/mesos\" -DPKGDATADIR=\"/usr/local/share/mesos\" -I../../include -I../../3rdparty/libprocess/include -I../../3rdparty/libprocess/3rdparty/stout/include -I../include -I../3rdparty/libprocess/3rdparty/boost-1.53.0 -I../3rdparty/libprocess/3rdparty/protobuf-2.5.0/src -I../3rdparty/libprocess/3rdparty/picojson-4f93734 -I../3rdparty/libprocess/3rdparty/glog-0.3.3/src -I../3rdparty/leveldb/include -I../3rdparty/zookeeper-3.4.5/src/c/include -I../3rdparty/zookeeper-3.4.5/src/c/generated -pthread -g -g2 -O2 -MT local/mesos_local-main.o -MD -MP -MF local/.deps/mesos_local-main.Tpo -c -o local/mesos_local-main.o `test -f 'local/main.cpp' || echo '../../src/'`local/main.cpp
            mv -f local/.deps/mesos_local-main.Tpo local/.deps/mesos_local-main.Po
            /bin/sh ../libtool --tag=CXX --mode=link g++ -pthread -g -g2 -O2 -o mesos-local local/mesos_local-main.o libmesos.la -lsasl2 -lcurl -lz -lrt -lunwind
            libtool: link: g++ -pthread -g -g2 -O2 -o .libs/mesos-local local/mesos_local-main.o ./.libs/libmesos.so -lpthread /usr/lib64/libsasl2.so -ldl -lresolv -lcurl -lz -lrt -lunwind -pthread
            ./.libs/libmesos.so: undefined reference to `snappy::RawCompress(char const*, unsigned long, char*, unsigned long*)'
            ./.libs/libmesos.so: undefined reference to `snappy::RawUncompress(char const*, unsigned long, char*)'
            ./.libs/libmesos.so: undefined reference to `snappy::GetUncompressedLength(char const*, unsigned long, unsigned long*)'
            ./.libs/libmesos.so: undefined reference to `snappy::MaxCompressedLength(unsigned long)'
            collect2: error: ld returned 1 exit status
            make[2]: *** [mesos-local] Error 1
            make[2]: Leaving directory `/temp1/mesos-0.19.1/build/src'
            make[1]: *** [all] Error 2
            make[1]: Leaving directory `/temp1/mesos-0.19.1/build/src'
            make: *** [all-recursive] Error 1

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              thomas Thomas Bennett
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: