[
https://issues.apache.org/jira/browse/THRIFT-5776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17842154#comment-17842154
]
Volodymyr Panivko commented on THRIFT-5776:
-------------------------------------------
[~cjcombrink] thanks for helping.
I applied your fix, than run build/docker/scripts/autotools.sh and get such
result:
{code:java}
g++ -std=c++11 -DHAVE_CONFIG_H -I../../cpp/src -I/usr/include -I./gen-cpp
-I../src -I./gen-c_glib -I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -g -Wall -Wextra -pedantic
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -g -O2
-MT testthrifttestclient-testthrifttestclient.o -MD -MP -MF
.deps/testthrifttestclient-testthrifttestclient.Tpo -c -o
testthrifttestclient-testthrifttestclient.o `test -f 'testthrifttestclient.cpp'
|| echo './'`testthrifttestclient.cpp
g++ -std=c++11 -DHAVE_CONFIG_H -I../../cpp/src -I/usr/include -I./gen-cpp
-I../src -I./gen-c_glib -I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -g -Wall -Wextra -pedantic
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -g -O2
-MT testthrifttestzlibclient-testthrifttestzlibclient.o -MD -MP -MF
.deps/testthrifttestzlibclient-testthrifttestzlibclient.Tpo -c -o
testthrifttestzlibclient-testthrifttestzlibclient.o `test -f
'testthrifttestzlibclient.cpp' || echo './'`testthrifttestzlibclient.cpp
testthrifttestzlibclient.cpp:295:5: warning: dynamic exception specifications
are deprecated in C++11 [-Wdeprecated]
295 | throw(Xception, apache::thrift::TException) override
| ^~~~~
testthrifttestzlibclient.cpp:313:93: warning: dynamic exception specifications
are deprecated in C++11 [-Wdeprecated]
313 | void testMultiException(Xtruct &result, const std::string &arg0,
const std::string &arg1) throw(Xception, Xception2) override {
|
^~~~~
testthrifttestclient.cpp: In function 'int main()':
testthrifttestclient.cpp:628:62: error: invalid new-expression of abstract
class type 'TestHandler'
628 | std::shared_ptr<TestHandler> testHandler(new TestHandler());
| ^
testthrifttestclient.cpp:74:7: note: because the following virtual functions
are pure within 'TestHandler':
74 | class TestHandler : public ThriftTestIf {
| ^~~~~~~~~~~
In file included from testthrifttestclient.cpp:36:
./gen-cpp/ThriftTest.h:102:23: note: 'virtual std::string
thrift::test::ThriftTestIf::testUuid(std::string)'
102 | virtual std::string testUuid(const std::string thing) = 0;
| ^~~~~~~~
testthrifttestzlibclient.cpp: In function 'int main()':
testthrifttestzlibclient.cpp:627:62: error: invalid new-expression of abstract
class type 'TestHandler'
627 | std::shared_ptr<TestHandler> testHandler(new TestHandler());
| ^
testthrifttestzlibclient.cpp:69:7: note: because the following virtual
functions are pure within 'TestHandler':
69 | class TestHandler : public ThriftTestIf {
| ^~~~~~~~~~~
In file included from testthrifttestzlibclient.cpp:31:
./gen-cpp/ThriftTest.h:102:23: note: 'virtual std::string
thrift::test::ThriftTestIf::testUuid(std::string)'
102 | virtual std::string testUuid(const std::string thing) = 0;
| ^~~~~~~~
make[6]: *** [Makefile:1620: testthrifttestclient-testthrifttestclient.o] Error
1
make[6]: *** Waiting for unfinished jobs....
make[6]: *** [Makefile:1634:
testthrifttestzlibclient-testthrifttestzlibclient.o] Error 1
mv -f gen-c_glib/.deps/libtestgenc_la-t_test_thrift_test_types.Tpo
gen-c_glib/.deps/libtestgenc_la-t_test_thrift_test_types.Plo
make[6]: Leaving directory '/thrift/src/lib/c_glib/test'
make[5]: *** [Makefile:1904: check-am] Error 2
make[5]: Leaving directory '/thrift/src/lib/c_glib/test'
make[4]: *** [Makefile:1662: check-recursive] Error 1
make[4]: Leaving directory '/thrift/src/lib/c_glib/test'
make[3]: *** [Makefile:1907: check] Error 2
make[3]: Leaving directory '/thrift/src/lib/c_glib/test'
make[2]: *** [Makefile:1373: check-recursive] Error 1
make[2]: Leaving directory '/thrift/src/lib/c_glib'
make[1]: *** [Makefile:572: check-recursive] Error 1
make[1]: Leaving directory '/thrift/src/lib'
make: *** [Makefile:692: check-recursive] Error 1
{code}
> Cpp cross test fail
> -------------------
>
> Key: THRIFT-5776
> URL: https://issues.apache.org/jira/browse/THRIFT-5776
> Project: Thrift
> Issue Type: Bug
> Components: C++ - Library
> Reporter: Volodymyr Panivko
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> When running cross test in docker I'm getting an error
> {code:java}
> ibs/ThriftTest_extras.o
> Benchmark.cpp: In function 'int main()':
> Benchmark.cpp:69:7: error: 'class thrift::test::debug::OneOfEach' has no
> member named 'rfc4122_uuid'
> 69 | ooe.rfc4122_uuid = "{5e2ab188-1726-4e75-a04f-1ed9a6a89c4c}";
> | ^~~~~~~~~~~~
> make[5]: *** [Makefile:1408: Benchmark.o] Error 1
> {code}
> if i comment 69 line in Benchmark.cpp this error doe not appear but i'm
> getting a new one THRIFT-5775
--
This message was sent by Atlassian Jira
(v8.20.10#820010)