[ https://issues.apache.org/jira/browse/THRIFT-953?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Lavoie updated THRIFT-953: ------------------------------------ Attachment: v1-make-transportest-compile.patch This gets {{TransportTest}} to compile and run successfully (with no failures) on my box: {noformat} $ port version ; echo ; port list | grep -i boost ; echo ; uname -a ; echo ; g++ --version Version: 1.9.1 boost @1.44.0 devel/boost boost-build @2.0-m12 devel/boost-build boost-gil-numeric @1.0 devel/boost-gil-numeric boost-jam @3.1.18 devel/boost-jam 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) {noformat} This patch depends on {{v3-fix-usage-of-linux-only-functions.patch}} -- David, can you test this one on a linux machine? Shouldn't break anything -- but without it my version of {{libtool}} barfs, specifically, it rejects {{-l:libboost_unit_test_framework.a}}: {noformat} $ libtool -V Apple Computer, Inc. version cctools-782 {noformat} > 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.