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

make check fails in TransportTest.cpp

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.6, 0.7
    • None
    • None
    • Darwin – 10.4.0 Darwin Kernel Version 10.4.0: Fri Apr 23 18:28:53 PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386 i386
      i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5664)

    Description

      make -j2 check fails on my box with the following:

      g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../lib/cpp/src -I/opt/local/include   -g -O2 -MT TransportTest.o -MD -MP -MF .deps/TransportTest.Tpo -c -o TransportTest.o TransportTest.cpp
      TransportTest.cpp: In function 'void set_alarm()':
      TransportTest.cpp:381: error: 'SA_ONESHOT' was not declared in this scope
      TransportTest.cpp: In function 'void parse_args(int, char**, Options*)':
      TransportTest.cpp:1028: error: 'CLOCK_REALTIME' was not declared in this scope
      TransportTest.cpp:1028: error: 'clock_gettime' was not declared in this scope
      mv -f .deps/AllProtocolTests.Tpo .deps/AllProtocolTests.Po
      g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../lib/cpp/src -I/opt/local/include   -g -O2 -MT ZlibTest.o -MD -MP -MF .deps/ZlibTest.Tpo -c -o ZlibTest.o ZlibTest.cpp
      make[4]: *** [TransportTest.o] Error 1
      make[4]: *** Waiting for unfinished jobs....
      mv -f .deps/ZlibTest.Tpo .deps/ZlibTest.Po
      make[3]: *** [check-am] Error 2
      make[2]: *** [check-recursive] Error 1
      make[1]: *** [check-recursive] Error 1
      make: *** [check-recursive] Error 1
      

      Only affects HEAD, not 0.5.0; seems related to latest facebook changes.

      Attachments

        1. v1-fix-usage-of-linux-only-functions.patch
          0.8 kB
          Christian Lavoie
        2. v1-make-transportest-compile.patch
          4 kB
          Christian Lavoie
        3. v2-fix-usage-of-linux-only-functions.patch
          0.7 kB
          Christian Lavoie
        4. v3-fix-usage-of-linux-only-functions.patch
          0.8 kB
          Christian Lavoie

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: