Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-940

'make check' fails if boost is not in the std include and link paths

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.5, 0.6
    • 0.6
    • None
    • None
    • Mac OS X 10.6; g++
      gcc version 4.2.1 (Apple Inc. build 5664)
      MacPorts 1.9.1
      boost @1.44.0 (devel)

    • Patch Available

    Description

      Without this patch, make check fails thusly:

      g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../lib/cpp/src -I/opt/local/include   -g -O2 -MT UnitTestMain.o -MD -MP -MF .deps/UnitTestMain.Tpo -c -o UnitTestMain.o UnitTestMain.cpp
      mv -f .deps/UnitTestMain.Tpo .deps/UnitTestMain.Po
      g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../lib/cpp/src -I/opt/local/include   -g -O2 -MT TMemoryBufferTest.o -MD -MP -MF .deps/TMemoryBufferTest.Tpo -c -o TMemoryBufferTest.o TMemoryBufferTest.cpp
      mv -f .deps/TMemoryBufferTest.Tpo .deps/TMemoryBufferTest.Po
      g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../lib/cpp/src -I/opt/local/include   -g -O2 -MT TBufferBaseTest.o -MD -MP -MF .deps/TBufferBaseTest.Tpo -c -o TBufferBaseTest.o TBufferBaseTest.cpp
      mv -f .deps/TBufferBaseTest.Tpo .deps/TBufferBaseTest.Po
      /bin/sh ../../../libtool --tag=CXX   --mode=link g++  -g -O2   -o UnitTests UnitTestMain.o TMemoryBufferTest.o TBufferBaseTest.o libtestgencpp.la -lboost_unit_test_framework -lpthread 
      libtool: link: g++ -g -O2 -o .libs/UnitTests UnitTestMain.o TMemoryBufferTest.o TBufferBaseTest.o -Wl,-bind_at_load  ./.libs/libtestgencpp.a /Users/moosefish/ports/src/thrift-svn-1/lib/cpp/.libs/libthrift.dylib -lboost_unit_test_framework -lpthread
      ld: library not found for -lboost_unit_test_framework
      collect2: ld returned 1 exit status
      make[4]: *** [UnitTests] Error 1
      make[3]: *** [check-am] Error 2
      make[2]: *** [check-recursive] Error 1
      make[1]: *** [check-recursive] Error 1
      make: *** [check-recursive] Error 1
      

      Attachments

        1. v1-thrift-fix-boost-unittests.patch
          0.4 kB
          Christian Lavoie

        Activity

          People

            clavoie Christian Lavoie
            clavoie Christian Lavoie
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: