[
https://issues.apache.org/jira/browse/THRIFT-953?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12922158#action_12922158
]
David Reiss commented on THRIFT-953:
------------------------------------
The gettimeofday change is fine, though that function has been deprecated in
favor of clock_gettime. :)
I'd prefer if we could come up with a solution that wouldn't require further
forking of ax_boost_base. Is it possible to get this changed pushed back
upstream, or even use the autoconf macro archive's test for boost unit test?
> make check fails in TransportTest.cpp
> -------------------------------------
>
> Key: THRIFT-953
> URL: https://issues.apache.org/jira/browse/THRIFT-953
> Project: Thrift
> Issue Type: Bug
> Components: C++ - Compiler, C++ - Library
> Affects Versions: 0.6, 0.7
> Environment: 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)
> Reporter: Christian Lavoie
> Assignee: David Reiss
> Attachments: v1-fix-usage-of-linux-only-functions.patch,
> v1-make-transportest-compile.patch,
> v2-fix-usage-of-linux-only-functions.patch,
> v3-fix-usage-of-linux-only-functions.patch
>
>
> {{make -j2 check}} fails on my box with the following:
> {noformat}
> 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
> {noformat}
> Only affects HEAD, not 0.5.0; seems related to latest facebook changes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.